Hi all,
I have one application which has Toll bar at top which contains some
Icons.
On dragging the icons into a panel creates Images in that panel and
following is the responsible code for creating an instance of that PNG
file into the panel.
package com.emergycalc.ui.icons
{
import mx.core.BitmapAsset;
[Embed(source="../../../../assets/icons/amplifier.png")]
public class IconAmp extends BitmapAsset
{
}
}
Now i want to create Instance of some Flash into the panel... for that
i have to Embed any SWF file
So it could be like
package com.emergycalc.ui.icons
{
import mx.core.BitmapAsset; // THIS WILL GIVE ERROR. PLACE # 1
[Embed(source="../../../../assets/icons/amplifier.png")]
public class IconAmp extends BitmapAsset // THIS WILL
GIVE ERROR. PLACE # 2
{
}
}
So what is the correct code at PLACE # 1 and PLACE # 2 so that i can
embed the flash file into AIR application ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---