Hi I’m working on the Complex Button Rollover/ Rollout Effects tutorial with Flash 8(here is the link: http://kirupa.com/developer/mx2004/button_effect.htm
In the tutorial the button opens a new window for a web page. I’m trying to get that button to go to a frame label within my flash movie, but the gotoAndPlay method doesn’t seem to be working for me.
This is the code from the tutorial:
[FONT=Arial][SIZE=2] //stop(); this.onEnterFrame = function(){ [/SIZE][/FONT][FONT=Arial][SIZE=2] if(rewind == true){ [/SIZE][/FONT][FONT=Arial][SIZE=2] prevFrame(); [/SIZE][/FONT][FONT=Arial][SIZE=2] } [/SIZE][/FONT][FONT=Arial][SIZE=2] } this.onRollOver = function(){ [/SIZE][/FONT][FONT=Arial][SIZE=2] rewind = false; play(); [/SIZE][/FONT][FONT=Arial][SIZE=2] } this.onRollOut = function(){ [/SIZE][/FONT][FONT=Arial][SIZE=2] rewind = true; [/SIZE][/FONT][FONT=Arial][SIZE=2] } this.onRelease = function(){ [/SIZE][/FONT][FONT=Arial][SIZE=2] getURL("http://www.kirupa.com","_blank"); [/SIZE][/FONT][FONT=Arial][SIZE=2] } [/SIZE][/FONT][FONT=Arial][SIZE=2] [/SIZE][/FONT]
And the following is how I edited the code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
gotoAndStop("Scene 1", "pgtwo");
}
Can someone tell me how to do this? Also here is a link to the actual .fla
http://www.patsanders.com/rollover.fla