PDA

View Full Version : Bitmaps & Event Listeners?



michdd
March 4th, 2009, 05:06 PM
Can you put event listeners on bitmaps? Because the current project that I'm working on requires a lot of separate objects which are currently MovieClips, and because there can be several hundred, it causes the app to lag.

Krilnon
March 4th, 2009, 05:24 PM
Bitmap → DisplayObject → EventDispatcher → Object

So yes. However:
Note: The Bitmap class is not a subclass of the InteractiveObject class, so it cannot dispatch mouse events.