all groups > flash actionscript > january 2005 >
You're in the

flash actionscript

group:

Simple question from a newbie on(rollOver)


Simple question from a newbie on(rollOver) stillwaiting
1/23/2005 10:17:45 PM
flash actionscript:
I am trying to a apply an on(rollOver) to a movie clip and it is giving
me this error.

Mouse events are permitted only for button instances
on(rollOver){

I have the Flash AS Training from the Source book and it says it can be
done. Could someone enlighten me.
I want a rollover to send the mc to a specific frame.
Thanks

Re: Simple question from a newbie on(rollOver) rlc5611
1/24/2005 7:06:59 AM
To do that you need to give the MC button behavior in the properties dialog.
In the timeline, you can put: mymovieclipinstancename.onRollOver = function()
{ //your actions here such as: this.gotoAndPlay(framenumber);//'this' now
referring to the movieclip to which this function is applied }
Re: Simple question from a newbie on(rollOver) stillwaiting
1/24/2005 8:11:46 AM
Thank you. Now it works.

stillwaiting

[quoted text, click to view]
AddThis Social Bookmark Button