Its just a drag function with easing, physics going on Anyone Help?
Cheers, Dom -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith Reinfeld Sent: 08 December 2005 17:34 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] targeting duplicateMovieClip What is this 'setupDrag()' you speak of? -Keith -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dominic Fee Sent: Thursday, December 08, 2005 9:26 AM 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders