Welcome to my actionscript snippet library!

Actionscript Snips is a small repository of actionscript code that aims to save developers and designers time when developing a website.  

Create Empty MovieClip

Here is a snippet that creates an empty movieclip. This is useful when you want to load external images or swfs into it.

var emptyMovieClip:MovieClip = new MovieClip();
emptyMovieClip.name = "emptymc";
addChild(emptyMovieClip);

0 comments:

Post a Comment