Did you find the problem?
duplicateMovieClip() returns a reference to the newly duped clip, you can
store this as you wish.
myDupe =
dupeMePleaseSomebodyDupeME.duplicateMovieClip("youCanAlsoUseThisNameHereButI
TendNotTo", someDepth);
Ade
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dominic
Fee
Sent: 08 December 2005 15:26
To: 'Flashcoders mailing list'
Subject: [Flashcoders] targeting duplicateMovieClip
Hi guys im having trouble targeting duplicated movie clips
I am using the following code to produce them:
mycount = 30;
dom = 40;
//function to create multiple movieclips from single movie clip
function createFlyingMC() {
if (mycount<dom) {
_root.flying_mc.duplicateMovieClip("flying_mc"+mycount,_root.getNextHighestD
epth());
randomX = 500*Math.random();
randomY = 500*Math.random();
eval("flying_mc"+mycount)._x = randomX;
eval("flying_mc"+mycount)._y = randomY;
mycount++;
} else {
clearInterval(ID);
for (var i = 0; i<1000; i++) {
//removeMovieClip(eval("flying_mc"+i));
}
}
}
//function to periodically call another function
ID = setInterval(createFlyingMC, 50);
flying_mc.setupDrag();
now what I want to do is control the 10 "flying_mc" ive created
I thought it would be as simple as using flying_mc2.setupDrag(); or
flying_mc3.setupDrag(); but this seems not to be the case
Any help would be much appreciated
Thanks dudes
Dom
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders