View Full Version : array() and removeMovieClip()
cardin
01-13-2003, 11:38 AM
If you set an array called "info" on the first frame, but then create another array called "info" on the same timeline, will the old array data be erased?
Also, does removeMovieClip() specifically removes only movieclips duplicated by duplicateMovieClip(), or does it remove any kind of movieclip on the stage?
jimburton
01-13-2003, 11:44 AM
1. yes it will!
2. removeMovieClip will only affect clips created with actionscript at runtime - not clips dragged onto stage at authortime.
:)
cardin
01-13-2003, 12:00 PM
So, does removeMovieClip remove movieclips dragged on stage at author time but was modified in terms of height, width, position(how about movieclips that are animated by actionscript) at runtime by actionscript, or to simple, remove movieclips that actionscript affected.
jimburton
01-13-2003, 12:05 PM
no it doesn't - just ones that have been created using duplicateMovieclip, createEmptyMovieclip or attachMovie
catbert303
01-14-2003, 12:50 PM
If you swap the depth of a movie clip created by being dragged onto the stage you can then remove it using removeMovieClip. eg,
instanceName.swapDepths(1);
instanceName.removeMovieClip();
jimburton
01-14-2003, 01:44 PM
really? thx catbert!:)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.