Search code examples
flashflash-builder

Import vector graphics from Flash to Flash Builder


I'm a new to mobile apps development, so sorry for such a silly question.

I have a scene made in Adobe Flash (saved as FLA). There is no Action Script, just a vector drawing.

So now, I'm developing an application for iOS/Android ("Mobile Flex Application" in Adobe Flash Builder) and I need to use that drawing.

I've been searching how to do that for a few hours, tried to export my drawing as SWC and FXG files - but nothing worked in Flash Builder.

So, how can I import it into Flash Builder?

Show me the way please!


Solution

  • You can embed swfs like so:

    [Embed(source="path/to/my.swf")]
    [Bindable]
    public var swfCls:Class;
    

    then in mxml, use a SWFLoader to display it:

    <s:SWFLoader source="{swfCls}" />