0
votes

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!

1
You can use the [Embed] metadata tag to Embed FXG graphics in Flash Builder. I prefer pure actionscript 3 projects in Flash Builder and I use .swc libraries. It's just a matter of adding them to the build path(via project settings > Flex Build Path > Library Path > Add SWC), something like this. The nice thing about it this is the assets exported for Actionscript in the swc will appear in the autocomplete - George Profenza

1 Answers

1
votes

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}" />