if name comes from an array, where is it being set?
var slotNumber:Number = "0"
var name:String = nameArray[slotNumber]
this.attachMovie("StreamViewer", name,
this.streamLevel++);
name._x = 200;
name._y = 275;
hth
On 10/12/07, Dave Williams <dave conferencevillage.com>
wrote:
>
> Hi there..
>
> I'm trying to correctly reference the instance created
with
> attachMovie to change the x/y coordinates.
>
> If I use the following nothing happens when the
variable "name" comes
> from an array
>
> this.attachMovie("StreamViewer", name,
this.streamLevel++);
> name._x = 200;
> name._y = 275;
>
> But the following works when I replace "name"
with an actual value is
> quotes
>
>
this.attachMovie("StreamViewer","dave",
this.streamLevel++);
> dave._x = 200;
> dave._y = 275;
>
> Can someone point me to the documentation that will
teach me the
> correct syntax to pass variables correctly?
>
> thanks for any assistance... dave
> --
> _______________________________________________
> Flashnewbie chattyfig.figleaf.com
> To change your subscription options or search the
archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.c
om
>
_______________________________________________
Flashnewbie chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om
|