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');
沒有留言:
張貼留言