Have you tried
strEMail = String(GlobalVars.instance.acUser.getItemAt(0));
Do not have my machine in front of me to test but pretty sure you can cast
something that way. I know that's the way I do it to cast MovieClip names.
Regards,
Peter
On 7/17/08, Scott <[EMAIL PROTECTED]> wrote:
>
> I'm trying to pull a variable from an arrayCollection which I know is
> type String.
>
>
>
> Here's the code:
>
>
>
> *public* *var* strEMail:String;
>
> …
>
> Private function …
>
> {
>
> strEMail = GlobalVars.instance.acUser.getItemAt(0);
>
> }
>
>
>
> That above line of course throws an error because it's not sure that the
> variable at (0) is actually a string even though I know it is. In C++ I
> would just tell it using a typecast that it is a string.
>
>
>
> How can I copy that element into a variable?
>
>
>
> Thanks!
>
>
>
--
Peter Witham
http://www.evolutiondata.com
Internet and Multimedia developer
Certified Flash Designer.