how can i load a movie clip using AS2 from library into my stage. and how to unload it. could u help me ? i appreciate it
Asked
Active
Viewed 1.0k times
2 Answers
2
In the library, you must to assign a Linkage (right click on th mc) and chech Export for Actionscript and set a name (for example myMovieClip). That name will be used by attachMovie method:
this.attachMovie('myMovieClip', 'myMovieClipNewName', depth);
and for remove;
this.removeMovieClip('myMovieClipNewName');
chaus

returnvoid
- 434
- 1
- 7
- 19
-1
depth = 1;
while(depth<100){
this.attachMovie('bullet','bullet' + depth,depth);
this["bullet" + depth]._x = random(550);
this["bullet" + depth]._y = random(400);
depth++;}
//to create 100 bullets randomly on the screen

satviksr
- 1