There are different ways of using embed flash symbols. What’s the best way?
This entry is not bringing you any new knowledge, but is meant to ask you to give some thoughts about the design and the way you will create it, without forgetting your application performance and scalability.
To use the declared Flash Symbol for example, as a background image of a Panel, you have different ways of doing it: declare it inline:Embed(source="/nelson/examples/assets/ExampleFlash.swf#Logo");
Embed(source="/nelson/examples/assets/ExampleFlash.swf", symbol="Logo");
<mx:Panel... backgroundImage="@Embed(source='/nelson/examples/assets/ExampleFlash.swf', symbol='Logo')"/>embed it using AS3 and then use the created class in the MXML tag:
embed it and assign it to the object style in AS3:////Icons de Status
[Bindable]
[Embed(source="/nelson/examples/assets/ExampleFlash.swf", symbol="Logo")]
private var getLogo:Class;
... <mx:Panel... backgroundImage="{getLogo}"/>
myPanel.setStyle("backgroundImage", getLogo);use CSS: I hope this will help you to get a view of the different ways of using it. There is no "best way" it all depends on your application needs.///* CSS file */
.myImageCSS{
backgroundImage: Embed(source="/nelson/examples/assets/ExampleFlash.swf#Logo");
}