Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

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

0
Cheryl Lander
Asked:
Cheryl Lander
  • 3
  • 2
1 Solution
 
pepsichrisCommented:
How does the preloader determine when it's loaded? If it's something to do with _root then that'll probably be your problem...

If it's not immediately obvious then post your preloader code here so we can have a look through it.
0
 
Cheryl LanderAuthor Commented:
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.
0
 
Cheryl LanderAuthor Commented:
just worked it out.

Changed _root to _parent

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now