check for null maybe. If something doesn't exist it would throw a null.

B.

On Wed, Nov 4, 2009 at 4:08 PM, Alexander Farber <alexander.far...@gmail.com
> wrote:

> How do you test (without warnings and errors) if a
>
>   var vars:URLVariables
>
> contains something on an Event.COMPLETE?
>
> For example if there is a vars.myname set?
> (I.e. otherwise vars.myname would be undefined - according to
> http://help.adobe.com/en_US/AS3LCR/Flash_10.0/package.html#undefined )
>
> Is the following correct:
>
>  if (vars.myname != undefined)
>
> Can you compare undefined to undefined?
>
> Thank you
> Alex
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to