PDA

View Full Version : problem with simple navigation


BenderMX
05-03-2006, 07:23 PM
this is how my flash is setup, on the root i have 2 frames, frame 1 is the opening home page of the site with an action layer with a stop(); frame 2 is another page, seperate from the homepage, this page also has its own stop();

the buttons that control this are in a mc called 'fruit buttons' and the button that should control the root to go from frame 1 to frame 2 has this code:
on(release){
_root.gotoAndStop(2);
}


this should work but doesnt, so when i run this swf the home page comes up perfect, but if i push the button to go to frame 2, it goes to frame 2 then switches back to frame 1, then 2, then 1, then 2. it is totally disregarding the stop actions I put on the root frames. any help? thanks

Paerez
05-03-2006, 07:37 PM
make sure there is a stop() on frame 2, and more importantly, there is no play() anywhere on frame 2.

BenderMX
05-03-2006, 08:10 PM
im putting the file here if anyone wants to take a look, i have no idea where the problem could be

sophistikat
05-03-2006, 08:34 PM
its your wait function inside each picture; change tofunction wait () {
this.gotoAndPlay (nextFrame ());
clearInterval (myInterval);
}
stop ();
myInterval = setInterval (wait, 18000);

sophistikat
05-03-2006, 08:54 PM
use the following; less code// first frame
stop ();
setTimeout (delay, 15000);

function delay () {
gotoAndPlay (_currentframe + 1);
}

// second, third and fourth picture
stop ();
setTimeout (delay, 15000);