Infinite loop problem

Hi I’ve got a little problem with some flash movies. Basically I have a main root movie (which acts as a main product menu) on clicking the desired button it then loads another swf into level 1 (over the top)

on (release) {
loadMovieNum(“http://www.url.com/product_cakes.swf”, 1);
}

This loads up the next movie (product_cakes.swf) fine over the top, once the user is done he then clicks a button to take him back to the movie below, the action applied to the button is:

on (release) {
unloadMovieNum(1);
}

However, when you are then back in the root movie if you click on the button again that loads up the second movie (product_cakes.swf) for the 2nd time it loads it, but ignores all stop frames and just keeps looping infinitely!

I’ve tried different variations of as but no joy, there was also an error detected called a sandbox security issue or something similar.

Is anyone able to shed some light on why this might be happening and any possible solutions. I can supply the .fla at request.

Thanks

Here’s a workaround for you.
load the movie on start, hide it immidiately (_visible = false;) then when you click the corresponding button just reveal it and if it’s a movie clip that needs to be played say from the first frame just use a gotoAndPlay (1); tag
This system is better for the simple reason that you load your movie but then unload it. It means your users download the swf everytime over and again. that’s a waste of bandwidth.
Hope it helps you

It would but unfortunately I’m going to have about 6 of these, each at about 300K so loading them all at the start wouldn’t be feasible. I just need to find out what is causing the recursive error I am getting

Them being 300k is just another reason not to unload them.
Load them on mouse click but use a boolean to avoid loading them again and then hide them.
It’s the best approach.
As for what causes you problem, donno.
G’luck

that’s a rather large footer! way to work that in there while the mods are sleeping.

lol

Yeah the footer is indeed huge… Just installed it, I think i will shrink it a little :wink:
But are you trying to be sarcastic?

my footer size is the largest allowed on the site, so…uh…yours is giant! better fix it or you will go to kirupa jail.

shame about the footer…

anyway an update, I’ve tried many different solutions and still the **** thing is looping. I think the problem lies with the fact that when you go back to the base movie and then try to go back in to the product category .swf using loadMovie it has already loaded.

Is there a command that allows you to GotoAnd Play an already loaded movie clip? in the AS options it only seems to have option for GotoAndPlay scenes and frames in the movie you are in

this is turning in to an epic!

I guess you took care of me going to kirupa jail.
And this is when I was trying to help you.
I guess you have different ideas about shame… but as long as you like yourself…
lol

by the way. no more help to kirupa forum from me ;).
bye bye