PDA

View Full Version : .duplicateMovieClip


Flash Gordon
03-22-2005, 06:02 AM
I know there are already 500 threads on this, but i dont quite get it....
I have a blue box on stage named box_mc. In my actions layer i have box_mc.duplicateMovieClip(newBox,1);
so where is the duplicated movie?
thanks and sorry for being dumb.

senocular
03-22-2005, 10:23 AM
is newBox a variable containing the name you want to use? If not, make sure it's in quotes: "newBox" so the name will actually be newBox.

Once duplicated, newBox will be created under the name newBox and will exist in the same timeline as box_mc. If box_mc was in _root, you can access newBox using _root.newBox

Flash Gordon
03-22-2005, 11:09 PM
Ok. i put "myBox" in quotes but i still can't see it. My book seems to suck at explaining things well. I attached the fla file if anyone would like to look.

Gibberish
03-23-2005, 12:00 AM
I would try to help but the file is not saved for MX.

Flash Gordon
03-23-2005, 12:07 AM
thanks Gibberish Here it is as MX

Flash Gordon
03-27-2005, 05:28 AM
I'm appologize for bumping the post. But i have been looking around i and still don't get the whole duplicateMovieClip thing.
Sorry.

Gibberish
03-27-2005, 06:44 AM
i'm sorry flash. THis must of fell down my subscribe list quick.

Your duplicated movie 'newBox' is directly on top of 'box_mc'. You have to move it to another location to see it.

Try this and you'll see it:

box_mc.duplicateMovieClip("newBox", 1);
newBox._y = 100;
newBox._x = 100;

Flash Gordon
03-27-2005, 07:22 AM
Duh! :D

Many thank yous.