Thinkerbug
03-21-2003, 01:36 AM
Is it possible to use duplicateMovieClip on a MC that was created using createEmptyMovieClip? I created a simple test and couldn't get it to work. It went like this:
First frame:
this.createEmptyMovieClip("test_mc",1);
test_mc.loadMovie("pic1.jpg");
In the third frame, I check the height to make sure the jpg is loaded. Then I duplicate it:
trace(test_mc._height);
_root.test_mc.duplicateMovieClip("test2_mc",2);
Finally, in the 7th frame, I check the results with:
trace(test2_mc);
trace(test_mc);
stop();
The output is "75" for the height of the jpg in "test_mc", "undefined" for tracing "test2_mc" and "_level0.test_mc" for "test_mc" .
Thanks for any help.
First frame:
this.createEmptyMovieClip("test_mc",1);
test_mc.loadMovie("pic1.jpg");
In the third frame, I check the height to make sure the jpg is loaded. Then I duplicate it:
trace(test_mc._height);
_root.test_mc.duplicateMovieClip("test2_mc",2);
Finally, in the 7th frame, I check the results with:
trace(test2_mc);
trace(test_mc);
stop();
The output is "75" for the height of the jpg in "test_mc", "undefined" for tracing "test2_mc" and "_level0.test_mc" for "test_mc" .
Thanks for any help.