I’m very new to AS3.
I’d like to give certain objects in a MC the “class” ( meaning css like class ) rollover. So I can automatically create a rollOver that fades up all objects declared as rollOver objects.
jQuery exmaple
$("#myObject .rollOverObject").animate(...);
What would be the best way to achieve something like that in AS3?
Thank you in advance and best regards.
There is no such thing as CSS classes in AS3. What you can do, however, is create an
EventListeneron the MC’s and do your animations within there. It’ll look like this.If you’re done using the
MovieClips, or don’t need theROLL_OVERlisteners anymore you can remove these listeners in a simular way.A quick Google search can help you further with your learning.