PDA

View Full Version : button ActionScript rollout problem



goingblank
November 25th, 2004, 04:28 PM
Hi all, I am new to the forums, and appologize if I do not word this correctly but...

I and am having a problem here that I hope someone can help me with.

I have a button in which contains a movie as a roll over. The movie is basically a box that scrolls/loops through various colours. What I want to happen is on the RollOut, for the movie to pause. Giving the user the chance to leave whatever colour they are currently on in the rollover, "on" or visible on the rollOut. And if the user rolls over the button again, the clours will continue to loop. I am not sure if it is best to have this a button, or just a movie clip. The buttons are only static objects and do not actually do anything asides from letting the user interact or change the design of the site. I have tried various scripts which do not seem to work with what I have.

any help would be much appreciated. I am using Flash MX

Thank you very much,
scott

dboers
November 26th, 2004, 01:31 AM
I think you should work with mc's all along the way instead of with buttons.Then you simply can work with stop(); and play();

Magnum_357
November 26th, 2004, 02:43 AM
The best way to make roll over buttons aside from just creating a button..is to make the whole button a movie clip ..in the time line for the movies clip you would have several layers''

actions: ...... stop .... stop .... stop
labels: ..... here you name the frames of the functions
text : .... here you add the text of the button
hit button : .... here you create a button symbol using only the hit frame
movie: .... over ... out ... hit

you create s functions in the time line .over .out .and hit ad an invisible button
telling what will happen when the mouse rolls over the button..
If your new to mx2004 this will probly not be easy to do but once the movie clip has been made go back to the main time line and add the functions to the
invisible button using the behaviors options...

on roll over goto and play ("over")
on roll out gotto and play ("out")
on press goto and play (hit")
on release is what ever you want the button to do when its been pressed and released.

Anyway I have some images of the rollover button timeline here so you can better understand what I am saying..Rollover button (http://mgamerz.com/rollover.htm) I also have the fla file there you can download to see a working model of the rollover button I have describled here..hope it helps ya its the best I can do.

goingblank
November 26th, 2004, 12:25 PM
that was perfect actually! thank you very much for the help.

cheers,
scott