Skip to main content
Known Participant
March 15, 2013
Answered

Loading External .SWFs into Flash

  • March 15, 2013
  • 1 reply
  • 1328 views

OK, so I asked this question earlier :

http://forums.adobe.com/message/5135410#5135410

I didn't seem to get into much detail. My first question is, did Ishkur somehow make a transparent background for his external .swfs, or did he make a regular one, and used some sort of code or setting to make it so it appears into the bottom-right? And my second question is, where do I apply this code / where does it go? Does it get paired with the buttons which signal the flash to load the external .swfs? I sincerely apologize for my non-stop customer support ._.

myMovieClipInstance.loadMovie("myExternalMovie.swf");  // here only the filename is given, indicating the SWF file is in the same folder as the parent swf

This topic has been closed for replies.
Correct answer Ned Murphy

You don't have to do anything to get a transparent background.  When you load an swf into another swf, the loaded file has no background, only the primary file does.

You place your code based on what you intend to trigger the loading.  If it is a button that will trigger the loading then you place the code in the button's code.  If it will occur when you enter a particular frame then you place the code in that frame.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
March 15, 2013

You don't have to do anything to get a transparent background.  When you load an swf into another swf, the loaded file has no background, only the primary file does.

You place your code based on what you intend to trigger the loading.  If it is a button that will trigger the loading then you place the code in the button's code.  If it will occur when you enter a particular frame then you place the code in that frame.

Known Participant
March 15, 2013

I shall try it!