View comments | RSS feed

Choosing a DisplayObject subclass

With several options to choose from, one of the important decisions you'll make when you're working with display objects is which display object to use for what purpose. Here are some guidelines to help you decide. These same suggestions apply whether you need an instance of a class or you're choosing a base class for a class you're creating:


Flash CS3


Comments


dr.hc.solo said on Oct 12, 2007 at 3:19 AM :
The above suggests using Sprite for less advanced DisplayObjects, but i have troubles doing so. I have a subclass of flash.display.Sprite and a MovieClip in the library. I have set the class to my class and baseclass to flash.display.Sprite via dialog, but flash throws an error 1046 looking for MovieClip . If i subclass MovieClip it works, even if the baseclass is set to Sprite.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00000152.html