Prev | Current Page 615 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

A movie clip has virtually all the possibilities to become a desired
element on the stage; starting from a movie clip it is possible to implement simple user interface widgets,
such as buttons and checkboxes, to display images and video and whatever.
Creating a MovieClip in Flash 6 to 8
The MovieClip class is part of the flash package; it is not possible to directly create a MovieClip
instance using the new keyword, instead you must use one of the following three methods from an
already existing MovieClip instance: createEmptyMovieClip() , duplicateMovieClip() , or
attachMovie() . In every Flash movie at least one MovieClip instance is always available that can be
accessed using the static variable flash.Lib.current ; this variable points to the root clip of the current
movie. If a movie dynamically loads another one, the second also has its own root movie clip. The
flash.Lib.current variable points to one or the other based on the context in which it is called. To
refer to the very root MovieClip instance, use the variable flash.


Pages:
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627