Vish
June 1st, 2005, 02:09 PM
Hey,
I am having some trouble customizing the scripting on this button http://www.kirupa.com/developer/mx2004/button_effect.htm
If you look at the code there, you'll notice that it, when clicked it goes to www.kirupa.com (http://www.kirupa.com/), hence the code:
this.onRelease = function(){
getURL("http://www.kirupa.com","_blank");
}
Now I want this button, when clicked to go to for example a certain frame in my movie instead of a webpage... So I tried:
this.onRelease = function(){
gotoAndPlay(100);
}
But it does not work like that, nothing happens when I test the movie and click it. For your info, I do have something on frame 100, a motion tween.
What have I done wrong? How can I fix this?
I'm relatively new to Flash so please bear with my limited knowledge.
Thanks in advance,
Vish
I am having some trouble customizing the scripting on this button http://www.kirupa.com/developer/mx2004/button_effect.htm
If you look at the code there, you'll notice that it, when clicked it goes to www.kirupa.com (http://www.kirupa.com/), hence the code:
this.onRelease = function(){
getURL("http://www.kirupa.com","_blank");
}
Now I want this button, when clicked to go to for example a certain frame in my movie instead of a webpage... So I tried:
this.onRelease = function(){
gotoAndPlay(100);
}
But it does not work like that, nothing happens when I test the movie and click it. For your info, I do have something on frame 100, a motion tween.
What have I done wrong? How can I fix this?
I'm relatively new to Flash so please bear with my limited knowledge.
Thanks in advance,
Vish