PDA

View Full Version : Random animation on mouseOver


mortalpoet
07-03-2003, 04:58 AM
OK, I have this symbol, and I want the symbol to change its animation when the movse goes over it. How could I do that? I appriciate the help. Thanks.

annexion
07-03-2003, 06:41 AM
What do you mean change it's animation?

mortalpoet
07-03-2003, 10:28 AM
OK, here's what I got so far:

Scene 1: There's a symbol called "Title" that plays over and over.

And here's what I want (or something similar):

Scene 1: Main symbol.

-But on mouse over, play one of the scenes at random-

Scene 2: Crrrrrazy title.

Scene 3: Cool title.

Scene 4: Funky title.

Scene 5: Boring title.


That probably made it more confusing...but if you have more questions about what I'm asking for, just post!

annexion
07-03-2003, 11:14 AM
In order to do that, you almost have to use frame labels instead of scenes.


sceneNames = new Array("One", "Two", "Three", "Four", "Five", "Six");
buttonName.onPress = function() {
_root.gotoAndPlay(sceneNames[Math.round(Math.random()*5)]);
};

That should help you with what you'd like to accomplish.

Good luck.