lws_dk
09-02-2005, 07:39 AM
Hi. I'm pretty new at flash, but I've managed to make some neat buttons with "over" and "out"-effects... I've gathered all my buttons (a menu) in a tween om my main-scene. Onto each button I've attached the following command:
onClipEvent(enterFrame){
this.txt.text ="trioen";
}
on(rollOver)
{
this.gotoAndPlay("RollOver");
}
on(rollOut)
{
this.gotoAndPlay("RollOut");
}
on(release)
{
gotoAndPlay("Scene 1", 5);
}
My problem is, that the last part
"
on(release)
{
gotoAndPlay("Scene 1", 5);
}
"
plays frame 5 in my button-tween (which is from the "Roll Over"-flag), and not frame 5 in my "main-scene"...
So somehow I need to make the release command exit the button tween and go to the frame in the "Scene 1", instead...
but how?
(I apologise for any incorrect use of the various terms - I'm, as mentioned, still rather new at this...)
Hope you understand what I'm asking about, and that you have a solution...
thanx
onClipEvent(enterFrame){
this.txt.text ="trioen";
}
on(rollOver)
{
this.gotoAndPlay("RollOver");
}
on(rollOut)
{
this.gotoAndPlay("RollOut");
}
on(release)
{
gotoAndPlay("Scene 1", 5);
}
My problem is, that the last part
"
on(release)
{
gotoAndPlay("Scene 1", 5);
}
"
plays frame 5 in my button-tween (which is from the "Roll Over"-flag), and not frame 5 in my "main-scene"...
So somehow I need to make the release command exit the button tween and go to the frame in the "Scene 1", instead...
but how?
(I apologise for any incorrect use of the various terms - I'm, as mentioned, still rather new at this...)
Hope you understand what I'm asking about, and that you have a solution...
thanx