Search code examples
actionscript-3flex4

How to load swf in Flex 4 and extract its contents (i.e movie clips etc)


I am working on Flex Project using Flash Builder 4. I want to load swf (that has been made using flash CS5 and it contains about 150 movieclips in library, nothing on stage). Now I want to load its Movie Clips in flex?

How to do it?


Solution

  • Export the swf as a swc (checkbox option in the Publish Settings), and export the swc to the libs directory of your flex project. Anything in the library that has been classes is automagically available to you flex app at that point.