Empty movieclip?

i’m a bit slow…can someone tell me what is empty movieclip are basically use for?

They’re used for anything you want to do with it. You can use it for it’s onEnterFrame, you can load stuff in it, you can make it a target for others to follow, you can use it to draw in with the Drawing API… tons of possibilities.

The most common use is to create one dynamically and Load stuff into it. Like pictures. That way you can get the filesize, the width and height and move them around. You can also delete them dynamically. That’s why I use them 80-90% od the time.

thanks Voetsjoeba and NoDude.
mmm…but can someone explain me with actionscript…please?

explain you actionScript?

//create the dynamic MC on the stage (_root level)
_root.createEmptyMovieClip(“dynamic1”, 91);

//begin loading a jpg (it has to be none interlaced)
dynamic1.loadMovie(“pic1.jpg”);

//now you can move it around, create a preloader or whatever
total = dynamic1.getBytesTotal/1024;
_root.onEnterFrame = function() {
loaded = _root.dynamic1.getBytesLoaded/1024;
loaded>=total ? delete this.onEnterFrame : null;

//now you have 2 variables you can use in your own preloader

};

Sorry if the code seems sloppy, I had to make it up just now, because all my data (and I mean all of it) was lost due to a lousy raid

1.are all the codes in one frame? i mean are they on the same frame in the timeline?

2.when you load a pic1.jpg, do it have to be in the flash or load it externally outside flash?

sorry if my language not so understandable. i’m not very good in english.