PDA

View Full Version : importing external movieclips?



themuffinman
March 17th, 2009, 12:38 AM
I'm making a game where I have a lot of movie clips that I need to load so I was wondering wheather ActionScript 3.0 allowed us to load external movieclips?

Can we import an external display object (movieclip) into a display object container?

Or do I have to load a .swf which contains the movieclip onto the stage?
What happens if I need to pull in multiple .swf files can the movieclips overlap or will one .swf file block the user from viewing the .swf in a lower depth?
Can I import the movieclip from the external .swf file from its library and add it to the main stage rather then adding the whole .swf to the main stage?

Thanks in advance.http://board.flashkit.com/board/images/smilies/smile.gif

senocular
March 17th, 2009, 11:46 AM
in terms of loading external (non-bitmap) Flash assets, then SWF is your format - the SWF file essentially becomes your movie clip. Use a Loader class for loading your SWFs. Loaders can be placed anywhere other movie clips or other display objects can. They're contents are the contents of the SWF they load. The SWF background will not be present in the loader and you'll get only the assets that were in that SWF's main timeline.

themuffinman
March 17th, 2009, 05:08 PM
Whats the best way to send variables to external .swf files? get and post methods? or is there an easier way?

P.S is there no way to access the library for an external .swf that I import? for example in the external .swf I create a"linkage" and class name for a specific movieclip. Then when i import the .swf can i reference the movieclip directly on the main timeline or will I have to send data work inside the external timeline?

Thanks