PDA

Volledige versie bekijken : Mc duplicaten met als target een in een andere MC


divulge
%Europe/Berlin %490 %2006, 11:45
Hallo,

Ik wil dus een mc gaan duplicaten. DIt gaat wel met de volgende script:

aantal = 4;

for(i = 1; i <= aantal ; i++)
{
duplicateMovieClip ("categories", "categories" + i, i);
}


maar hoe kan ik deze gedupliceerde mc in een andere mc krijgen?

iemand een idee?

alvast bedankt.

denzione
%Europe/Berlin %502 %2006, 12:04
_root.createEmptyMovieClip("bg", this.getNextHighestDepth());

aantal = 4;

for(i = 1; i <= aantal ; i++)
{
bg.duplicateMovieClip ("categories", "categories" + i, i);
}

misschien?

divulge
%Europe/Berlin %504 %2006, 12:06
thanx, zal het eens proberen.

Laiverd
%Europe/Berlin %514 %2006, 12:21
Volgens mij kan dat niet. Maar als je nou toch al bedreven bent met createEmptyMovieclip, waarom gebruik je dat dan niet gewoon. Ik zie het probleem dus niet.

John

TheDutch
%Europe/Berlin %530 %2006, 12:43
Helemaal gelijk John, dit is niet mogelijk :).

Gerrit55
%Europe/Berlin %545 %2006, 13:05
???

myMovieClip.duplicateMovieClip(newname, depth [,initObject])

TheDutch
%Europe/Berlin %983 %2006, 23:36
Wat probeer je te zeggen ol55?

newname: A unique identifier for the duplicate movie clip.

depth: A unique number specifying the depth at which the SWF file specified is to be placed.

initObject: (Supported for Flash Player 6 and later.) An object containing properties with which to populate the duplicated movie clip. This parameter allows dynamically created movie clips to receive clip parameters. If initObject is not an object, it is ignored. All properties of initObject are copied into the new instance. The properties specified with initObject are available to the constructor function. This parameter is optional.