Link to home
Start Free TrialLog in
Avatar of Cheryl Lander
Cheryl LanderFlag for United States of America

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.
_root.contentSpace.square1.loadMovie("1.swf");

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of pepsichris
pepsichris
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cheryl Lander

ASKER

I have this code on line 1 of the main movie
This is the only code I have on the timeline fo the main movie.
_root.contentSpace.square1.loadMovie("1.swf");

I have a preloader on the external file.

The external file plays fine.
just worked it out.

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...
Excellent, glad it worked out!