toString() is a method of the Object class and it doesn't have any
arguments. So while every object in Flash has a toString method, by
default it returns "[object Object]". From your code it looks like
what you're actually doing is calling this.toString(), you probably
want to do something like myStr:String  =  aArray[i].toString(); but
that still might not give you what you're looking for. If the items in
the array are references to movieclips and you want the instance names
of those clips, you should try aArray[i]._name (AS2) or aArray[i].name
(AS3)

Jamie

On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Quick question, can I toString an array element.
> ie:   var  myStr:String  =  toString(aArray[i]);    // where 'i' is the 
> increment.
>
> I am having an issue with this.  when I trace myStr it traces [object object]
> instead of what I intended/expected "mcMovieClipName14" as a string.
>
> Any insite would be appreciated.
>
> Thanks in advance,
>
> Paul V.
> _______________________________________________
> [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