views:

91

answers:

1

I want to create a class that is interactive and can hold an image. I want it to be lighter then the Sprite class, so I was thinking about extending the bitMap class. If I extend the BitMap class. put a bitMap data in that class and at it to the stage. would it appear ???

+1  A: 

I greatly doubt that it will be much lighter than a Sprite, because if you are experiencing performance troubles, it probably has more to do with having a lot of display objects in your display list, rather than the type of those display objects.

But to answer your question, yes. Any object extending DisplayObject can be added to the display list. Bitmap inherits from DisplayObject, so if you extend Bitmap, so will your class.

richardolsson