Daniel Brockman
Daniel Brockman

Reputation: 19290

What is the preferred way to embed an SWF graphic in a Flex 4 application?

In Flex 3, you just said

<mx:Image source="@Embed('foo.swf')"/>

What is the preferred way to do this with Flex 4? Should I just keep using Image?

Upvotes: 1

Views: 480

Answers (1)

Satish
Satish

Reputation: 6485

Image tag is for loading "Image" formats along with swf. You can go also go with SWFLoader. Flex 4 is still Beta. I would go with Image or SWFLoader, preferbaly the second one.

and I am sure this wont get changed in Flex 4 too.

Upvotes: 1

Related Questions