Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rollover animation

Status
Not open for further replies.

Datta

Programmer
Mar 29, 2002
2
US
Sorry for the very basic question, but I am not able to use rollovers to make Flash (ver 5) go to different frames. Press or release can make it happen, and I can use rollovers to change a graphic, but I can't make the rollover start the timeline rolling or make it go to a specific frame. I'm sure it's something simple.

Any hints?

Thanks,

Datta
 
Where are you trying to apply these actions?
Can you post an example of your coding on one button?

Regards,
new.gif
 
You can simply start the timeline with putting this action onto your button instance. It works for me.

on (rollOver) {
gotoAndPlay (5);
}

To start playing the main timeline at frame 5
or
on(rollOver){
with(_root.someMovie) {
GotoAndplay(5)
}
}

To start playing "someMovie" at frame 5.
 
THis fails to work even in the most simple circumstance: One button, with 3 states (whicih work fine), and all the clicks will make the timeline move, but not the rollover, though the trollover makes the buttoin change state normally.


THis is my code for the button:

on (rollOver) {
gotoAndPlay (10);
}

I'm wondering if there is some switch that needs to be turned on, or if the program version I have just has a bug?
 
myes, the rollover is in the mainmovie I hope otherwise do
on (rollOver) {
with(_root){
gotoAndPlay (10);
}
}

But the code certainly works for me.
If you want to, you can send the fla file and I'll fix it.

Bart.Moonen@pandora.be
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top