[Xerte] Re: accessing objects with sequential names

Dave Burnett d_b_burnett at hotmail.com
Wed Jan 4 10:56:07 GMT 2012


This worked in a loop:
pageid.attachMovie("tick", "mytick"+i, i+2);pageid['mytick'+i]._x = 30;pageid['mytick'+i]._y = 100+(offset*i);




From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 4 Jan 2012 09:36:40 +0000
Subject: [Xerte] Re: accessing objects with sequential names



Yes, object[‘string’].property is the same as object.string.property. Doesn’t attach movie have an initObject as the fourth param so you can do attachMovie(libItem, newName, depth, {_x: 30}); etc? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 03 January 2012 21:23
To: Xerte list
Subject: [Xerte] accessing objects with sequential names  Created by using attachMovie in a loop: pageid.attachMovie("clip", "myclip"+ i, i+2); How do I access those in a loop again?Julian posted it but I've gapped. I'm trying to set some _x values. engine["myclip" + i]._x = 30; Close?


This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120104/58384d20/attachment.html>


More information about the Xerte mailing list