Adobe Flex project recovery
Save Flex Project... Recovers the Flex project from the selected input SWF. The program will create a new folder (named "FlexProject_" plus the source SWF filename - "MyFlex.swf" would lead to a folder named "FlexProject_MyFlex") within the selected destination folder. After recovering a Flex project you have to import it with Adobe Flex.
-------------------------------------------------------------------------
In Adobe Flex Builder 2, choose "Import..." from the File menu, select "Existing Projects into Workspace" in the Import dialog, press the "Next >" button, select the "Select root directory:" option and press the "Browse..." button to the right. In the Browse For Folder dialog select the created "FlexProject_(SWFNAME)" folder as root directory and press the "OK" button. Press the "Finish" button in the Import dialog.
In Adobe Flex Builder 3, choose "Import -> Flex Project..." from the File menu, select the "Project folder:" option and press the "Browse..." button to the right. In the Browse For Folder dialog select the created "FlexProject_(SWFNAME)" folder and press the "OK" button. If you don't want to create an extra copy of the recovered files in your Flex default location, uncheck the "Use default location" checkbox in the Import Flex Project dialog. Press the "Finish" button in the Import Flex Project dialog.
In Adobe Flash Builder 4 / 4.5, choose "Import -> Flash Builder Project..." from the File menu, select the "Project folder:" option and press the "Browse..." button to the right. In the Browse For Folder dialog select the created "FlexProject_(SWFNAME)" folder and press the "OK" button. Press the "Finish" button in the Import Flash Builder Project dialog.
-------------------------------------------------------------------------
After importing the project, Adobe Flex will display the compiler error
Cannot create HTML wrapper. Right-click here to recreate folder html-template.
Right-click and select Recreate HTML Templates from the popup menu.
Flex Project Settings
Flex Project Version decides the file format of the recovered documents.
Make sure to select the correct option as a false framework version may cause compiler errors and warnings
(for example, a newer framework interface version might require you to create additional function implementations).
Create FLA Document allows you to create a FLA document (named "OtherElements.fla") that stores the media files (sounds, pictures and videos) and graphical elements (such as MovieClips, Shapes and Morph Shapes) found. It also enables you to use Media-Extraction.
Include Dummies For Bindable Classes creates and includes an AS file containing all bindable classes. This ensures that all such classes are known to the compiler and it will not add any bytes to the (re-)compiled result.
Include Style Dummies adds Style metadata tags (commented away) for all possible style properties.
Style metadata tags do not leave a visible trace in the compiled SWF.
They are, however, necessary in Flex MXML projects. If a MXML class produces the error
Cannot resolve attribute 'somePROP' for component type abc.def.SomeClass,
open the document abc.def.SomeClass, then find the line with the somePROP Style metadata
//[Style(name="somePROP")]//, inherit="yes"
for AS classes,
<!--[Style(name="somePROP")]--><!--, inherit="yes"-->
for MXML classes
and remove the first comment tag(s) changing it to
[Style(name="somePROP")]//, inherit="yes"
for AS classes and
[Style(name="somePROP")]<!--, inherit="yes"-->
for MXML classes.
Save the class. In the rare case of a new compiler error
Declaration of style 'somePROP' conflicts with previous declaration in SomeOtherClass,
change the line to
[Style(name="somePROP", inherit="yes")]
for both AS and MXML classes.
Flex Compiler Options
Please refer to your Adobe Flex manual for further information.
|