![]() ![]() You’re right to question that though, cause if it’s not a MovieClip (or descendant of MovieClip), you’ll get an error if you try to cast it to one. includes properties and methods for controlling its timeline MovieClip class includes methods such as play(), gotoandPlay(), gotoandStop(), stop(), etc. If the thing that root is pointing to is actually a MovieClip, casting it to a MovieClip will be fine. Working with Movie Clips ActionScript 3.0 provides a core MovieClip class, which extends the features of the display object, i.e. root property is just a reference to an object, so while the reference is of type DisplayObject, what its actually pointing to may be a descendant of DisplayObject. So root can actually be a number of different things, but whatever it is, it’ll be some descendant of DisplayObject. ![]() For the instance of the main class of the first SWF file loaded, the root property is the display object itself. ![]() For a Bitmap object representing a loaded image file, the root property is the Bitmap object itself. For a display object in a loaded SWF file, the root property is the top-most display object in the portion of the display list’s tree structure represented by that SWF file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |