Hi guys,
i have followed the complex button tutorial today to design a websites buttons…
I wanted each button to link to a seperate frame for each seperate page of the site.
The roll out effect is all in one movieclip, with the actions on frame one (below)
[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]
i tried changing the last section to this:
[FONT=Arial][SIZE=2]this.onRelease = function(){ [/SIZE][/FONT]
{gotoAndStop(2);
}
I also tried removing the last section entirly and making the overall movieclip into a button and putting the following actionscript to the button:
on (release) {gotoAndStop(3);
}
but I have had no success, it works perfectly for URL’s typically!
Any ideas would be greatly appreciated.
Thanks.
Andy.
this is the tutorial i followed: http://www.kirupa.com/developer/mx2004/button_effect.htm