Skip to main content
jasonjam
Inspiring
January 21, 2011
Question

Loading external SWF files into a FLA

  • January 21, 2011
  • 2 replies
  • 2098 views

Hello,

I'm having trouble importing an external .swf into my .fla. file. The only AS that is working gor me is-

loadMovie("panoSceneNoMarkers.swf", _root);

However, once the swf shows, it replaces the background interface. I assume I have to add a _level into the code but how?

I hope someone can help.

This topic has been closed for replies.

2 replies

jasonjam
jasonjamAuthor
Inspiring
January 24, 2011

Hey Everyone,

First off thanks for the help. I finally figured my issue. I'm using a program called Pano2VR to output my swf and what isn't specified anywhere except buried on one of their forums is that, there Flash 9/10 export only supports AS3 and their Flash 8 export only supports AS2.

I am using AS2 and exporting at 9/10... which doesn't work. I have to convert my entire project to AS3.

Again, thanks for help everyone.

Jason

Ned Murphy
Legend
January 21, 2011

When you use loadMovie, whatever you load replaces whatever it is loaded into.  So you should have an empty movieclip that you can load the swf into rather than loading it into the _root.

jasonjam
jasonjamAuthor
Inspiring
January 21, 2011

I am using a container MC on the stage. I guess my AS is wrong. This is what I've also used and the swf doesn't load. Can you see the error?

loadMovie("panoSceneNoMarkers.swf", panoNoMakers);

panoNoMakers.loadMovie("panoSceneNoMarkers.swf");

Ned Murphy
Legend
January 21, 2011

If you have a movieclip on the stage that you have assigned the instance name "panoNoMakers" then either of those two lines should load the swf into that movieclip.