Sorry Jason, I was typing from memory, not copy / paste...

this[newName]._x = menu_ds.HorizontalPos;

Doesn't work for me, and the only reason I ended up using eval() is because
it's the only thing that worked!

This code doesn't work...

duplicateMovieClip(dupButton, newName, i);
        this[newName]._x = menu_ds.HorizontalPos;
        this[newName]._y = menu_ds.VerticalPos;

I scoured the net and eval() was the only answer I could find...

I'm publishing Flash 8, AS2

Thanks...



 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 16 January 2007 16:49
To: Flashcoders mailing list
Subject: RE: [Flashcoders] loadMovie in a duplicated movieclip

>>And could anyone explain why
>>
>>this.[newName]._x = menu_ds.HorizontalPos;
>>
>>doesn't work?

Improper syntax.  Try:

this[newName]._x = menu_ds.HorizontalPos;

Also, would recommend against using eval() in this case and use the []
operator instead.

Jason Merrill
Bank of America
Learning & Organizational Effectiveness
 
 
 
 
_______________________________________________
[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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.13/632 - Release Date: 16/01/2007
16:36
 

_______________________________________________
[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