RE: [Flashcoders] targeting duplicateMovieClip

2006-02-02 Thread Adrian Lynch
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 (mycountdom) {


_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; i1000; 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


RE: [Flashcoders] targeting duplicateMovieClip

2005-12-09 Thread Dominic Fee
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 (mycountdom) {

 
_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; i1000; 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


RE: [Flashcoders] targeting duplicateMovieClip

2005-12-08 Thread Keith Reinfeld
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 (mycountdom) {

 
_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; i1000; 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