Archive for the 'General' Category
The default property contents must be contiguous
The default property contents must be contiguous
When in Design View in Flex 4 you must keep the visual design MXML code together. Having a Script block right in the middle of it will create this error.
Incorrect:
-
<?xml version="1.0" encoding="utf-8"?>
-
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
-
xmlns:s="library://ns.adobe.com/flex/spark"
-
xmlns:mx="library://ns.adobe.com/flex/mx">
-
-
<!-- Visual markup code -->
-
<s:TextInput x="26" y="134" id="code1" width="302" text="Status of Mic"/>
-
-
<!-- Script tag interrupts and is located in the middle of visual markup code -->
-
<fx:Script>
-
<![CDATA[
-
private var swfpgno:int = 1;
-
]]>
-
</fx:Script>
-
-
<!-- Visual markup code -->
-
<s:TextInput x="26" y="77" id="mic1" width="302"/>
-
</s:Application>
Correct:
-
<?xml version="1.0" encoding="utf-8"?>
-
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
-
xmlns:s="library://ns.adobe.com/flex/spark"
-
xmlns:mx="library://ns.adobe.com/flex/mx">
-
-
<!-- Script tag does not interrupt flow of design view code -->
-
<fx:Script>
-
<![CDATA[
-
private var swfpgno:int = 1;
-
]]>
-
</fx:Script>
-
-
<!-- Design View visual markup is in a continuous block -->
-
<s:TextInput x="26" y="134" id="code1" width="302" text="Status of Mic"/>
-
<s:TextInput x="26" y="77" id="mic1" width="302"/>
-
-
</s:Application>
The compressed (zipped) folder is invalid or corrupt
Description
I exported a Flex Archive project to the desktop (Windows XP). When I tried to open it I received this message, "The compressed (zipped) folder is invalid or corrupt".
Cause
Possibly a bug in Flex Builder export feature. Tested other projects and they would export fine. Only occured on certain projects. Might be related to using "${DOCUMENTS}" variable in the Flex Build Path. The ${DOCUMENTS} token is a variable that points to the current workspace.
Solution
But you can use Flex > Export > Other > General > Archive Project to export your project. All options can be left at default. To import the file you can continue to use Flex > Import > Flex Archive Project.
NOTE! You may have to recreate the "libs" folder if it is not there.