Whichever way you want to do it, in flash 8 you need to instantiate "t"

Try adding:

var t= line.getNextHighestDepth(); 

To the begging of this

line._y += 4;
line.duplicateMovieClip("tope"+t, t);
if(line._y > 75) {
stop();
}

Or:

var t=0;

To the beginning of the original

Cheers

M

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Ricardo Portilho
> Sent: 27 November 2006 09:01
> To: [email protected]
> Subject: [Flashcoders] Flash8: Duplicate Movie problem
> 
> Hello,
> 
> I am trying to use a simple duplicate movie in Flash8 AS2, it 
> works fine in FlashMX, but I can“t to "translate it" into AS2, Flah8:
> 
> movie clip Duplicate Line
> 
> Frame 1:
> //obs: line is the mc instance name
> 
> setProperty("line", _y, getProperty("line", _y)+4); 
> duplicateMovieClip("line", "tope", t); t = t+1; if 
> (getProperty("line", _y)>75) {  stop(); }
> 
> Frame 2 :
> 
> gotoAndPlay(1);
> 
> //end
> 
> thank you in advance,
> Ricardo
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to