Cheryl Lander
asked on
External swf keeps looping.
I have main flash file which loads and external swf file.
The external swf has a preloader.
When I run the external file, it runs the preloader, then shows the content, so this works fine.
however when I load it via the main movie, the preloader constantly loops and never show the content.
here is the code I use to load the external swf.
The external swf has a preloader.
When I run the external file, it runs the preloader, then shows the content, so this works fine.
however when I load it via the main movie, the preloader constantly loops and never show the content.
here is the code I use to load the external swf.
_root.contentSpace.square1.loadMovie("1.swf");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
just worked it out.
Changed _root to _parent
Thanks
Changed _root to _parent
Thanks
Yep, but the preloader will be the bit causing the problem - it will probably be doing some check for the loaded file, using the root or parent or something, and it'll fail cos the reference will be different when it's loaded in.
Can you post the code behind the preloading, and then we'll help you to work this out...
Can you post the code behind the preloading, and then we'll help you to work this out...
Excellent, glad it worked out!
ASKER
This is the only code I have on the timeline fo the main movie.
_root.contentSpace.square1
I have a preloader on the external file.
The external file plays fine.