all groups > flash (macromedia) > september 2005 >
You're in the

flash (macromedia)

group:

Linking animated buttons to scenes


Linking animated buttons to scenes Need_A_Solution
9/5/2005 3:05:35 PM
flash (macromedia): I have created a button which envolves when mouse is over the button 2 sliders
coming in from left/right on roll out sliders return. the 2 sliders are in
seperate masks, above the masked layer I have my invisable button. here is the
code I have used for the invisable button.

on (rollOver) {
gotoAndPlay(frame);
}
On (rollOut) {
gotoAndPlay(frame);
}

Everything works fine but the whole point of a button is to take the user
somewhere. Ive tried everything its been 4 days and I cant get it to work.

Please help.

thanx
Re: Linking animated buttons to scenes karin_h
9/6/2005 8:50:46 AM
Hi,
With the one button on the main timeline, this code works fine:

on(rollOver){
gotoAndPlay(5);
}

on(rollOut){
gotoAndStop(1);
}

on(release){
gotoAndStop("Second", 1);
}

The scene you want to go to has to be named according to what the script says,
in this case Second. You could easily change the gotoAndStop to gotoAndPlay if
that suits you better.

Hope it answered your questions!


AddThis Social Bookmark Button