loadMovie and go to specific frame - need help desperately!

Hi All,

I have a main.fla and in I have a holder_mc which holds thumbnails. Each thumbnail is a button and when clicked loads in wedding_large.swf. the problem is I need to go to frame 2 when wedding_large.swf is loaded. I have done alot of searching on vaious forums and found that easiest way seems to be to declare a global variable, trace it, call it in the newly loaded swf and if its the same gotoAndPlay(2);. I have it working one way…

wedding_large.swf:

back_btn.onRelease = function() {
 _global.xx = 1;
 trace(xx);
 loadMovieNum("main.swf",0); 
}

main.swf:

stop();
trace(xx);
if(xx == 1)
{
 gotoAndStop(2);
}

this code works perfectly for me but when I try it from the thumbnail in main.swf to the larger image preview in wedding_large.swf it just goes to the first frame…

mainf.swf (code on thumbnail button):

on (release) {
 _global.xx = 2;
 trace(xx);
 loadMovieNum("wedding_large.swf",0);
}

wedding_larger.swf:

stop();
trace(xx);
if(xx == 2)
{
 gotoAndStop(2);
}

the above code does not work. Is it because im declaring the global variable from a movie clip within a movie and not calling it from the main timeline? surely not if it is a global variable! I have tried to run from the main timeline in main.swf like this:

thumb1L.holder.onRelease = function(){ //where holder is the mc that holds the thumbnails
_global.xx = 2;
trace(xx);
loadMovieNum(“wedding_large.swf”,0);
}
but it still doesnt work. I cant understand it as works one way and not the other

Any help would be welcomed as the pressure is really on the get this finished.

thanks :slight_smile: