Skip navigation

Author Archives:

The other day i was having an issue with a button which had a movie clip layered on top of it. I assumed that the movieclip on top of the button would disable the button mouse events but after running my application, the button was still firing an onRelease event (even though you could not see it on stage). After a bit of research, i discovered that setting the ‘visible’ property to false on a button/movieclip completely disables the mouse events for the button/movieclip, as well as hiding it from the stage. I’m finding this very useful for situations where i would like to dynamically enable or disable the mouse events of a button/movieclip.

I use the actionscript Tween class a lot for dynamically applying tweens to my Movie Clips at run time. I came across a problem, the other day, where a text field was not responding to a tween that I applied to it’s parent Movie Clip (in this case changing it’s alpha). After a bit of research, I found out that you HAVE to embed your fonts if you wish to apply a rotate or alpha tween on a Movie Clip that contains a text field. Simply select, the text field in question, click embed from the property menu and the text field will respond to all tweens applied to it’s parent.

Follow

Get every new post delivered to your Inbox.