dimaninc
dimaninc

Reputation: 850

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!

Upvotes: 0

Views: 535

Answers (1)

user1901867
user1901867

Reputation:

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

Upvotes: 1

Related Questions