I'm trying to migrate a Flex 4 project backwards to Flex 3, and I need to move stuff mapped in a <fx:Declarations>
block in MXML. Does Flex 3 have something similar to this? It's been a while since I've done Flex 3.
相关问题
- garbage collection best practices
- How to load flex swf from flash?
- How to load flex swf from flash?
- FlashDevelop Haxe (Flash) debugger
- Converting Date with Time in PST into UTC format
相关文章
- Are there any benefits when using final in AS3?
- Trace on Chrome/Browser console
- as3 ByteArray to Hex (binary hex representation)
- Is building separate .swc allow a faster loading o
- Assigning an array of objects to a DataGrid
- Libraries for text animation in Flex / Actionscrip
- About Collision detection alghorithms in AS3
- How to upload BitmapData to a server (ActionScript
Start with root application tag.There is no need for
<fx:declaration>
in flex3 just assign components inside the root tagThere is no need to define separately and off course not supported
in the Flex 3.
In the declaration tag you define non visual tags like Effects, services tags etc.But there is no exact tag in Flex 3 SDK for non visual tags.
There is none. The older version of the framework will assume any non-visual element is a "deceleration". The decelerations tag was added so that component factories could be defined using MXML in a spark skin.
edit
But if I remember correctly, they do need to go in the top level MXML tag. I could be wrong though...
There is no equivalent in Flex 3. You can declare things alongside your other components. The difference in Flex 4 makes the separation between visual and non-visual items (including things like effects, validators, formatters, data declarations, and RPC classes) clearer.
For example, in Flex 4 you would do this:
but in Flex 3, you would do this:
You can, however, define your variables and whatever other declarations (visual or not) within the
<mx:Script>
or<fx:Script>
tag in Flex 3 and 4 respectively.If you're stuck on other changes, search Adobe's website about migrating from flex 3 to flex 4 to see what other changes you may have to make.