Flex: fx:Script vs. fx:Declarations
What is the difference between <fx:Script>
and <fx:Declarations>
? Do I need both, or is one the 开发者_如何学Gonew replacement of the other?
Script is a place to put some AS3 code onto the MXML class. Declarations are a way to put public properties defined in MXML on a class.
精彩评论