PDA

View Full Version : using _currentframe for 'back button' of external swf


marev
04-09-2002, 01:54 AM
heya,

I think I'm missing something absurdly simple.

I have a main swf loading an external swf (into a target labeled "target"), and want to navigate that externally loaded swf with buttons from the main one. The play button works just fine:

on (release){
target.play();
}

However, the 'back' button gets no response:

on(release){
target.gotoAndPlay(_currentframe-1);
}

Any suggestions?

Thanks,
Marev

zoomfreddy
04-09-2002, 05:03 AM
on(release){
target.gotoAndPlay(target._currentframe-1);
}

:cool:

marev
04-09-2002, 10:01 PM
Thanks Zoomfreddy, that was it.

I also found that using a 'gotoAndStop' command
had good results if I needed to go backwards
several frames at a time, ie, to span a tween
or somesuch.

Thanks again!

marev