Create movieclip dynamically

Create movieclip dynamically

Creating an empty movie clip:

To create a new, empty movie clip instance on the Stage, use the createEmptyMovieClip() method of the MovieClip class.
This method creates a movie clip as a child of the clip that calls the method.
The registration point for a newly created empty movie clip is the upper left corner.

For example,
the following code creates a new child movie clip named clip2 at a depth of 100 in the movie clip named clip1:

clip1.createEmptyMovieClip(”clip2″, 100);

We can create text field in clip2 Using createTextField method.

Example:

clip2.createTextField(”label”, 20, 0, 0, 100, 300);

Leave a Reply


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.