Hi,
I used to do conditionals based on undefined all the time in AS 2. For
example I would do a data look up and then cast the results to a class
called foo. Then I could do a conditional if (foo == undefined) // go and
do whatever as the data ovbiously doesn't exist or has not been recieved.
N
if(foo) will give you the same result. basically if the instance is there
it'll work else it won't
On 10/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I used to do conditionals based on undefined all the time in AS 2. For
> example I would do a data look up and then cast the re
Nice - much more elegant - thanks alot
> if(foo) will give you the same result. basically if the instance is there
> it'll work else it won't
>
> On 10/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I used to do conditionals based on undefined all the time in AS 2. For
>> ex
Just to tie up the loose ends... if a variable has a type annotation then
undefined is an illegal value. Only untyped variables, or variables typed as
*, may be assigned with undefined. If they are uninitialized then they are
null, 0 or false, depending on the actual type. Your code probably works
:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Can't use an undefined conditional anymore?
Just to tie up the loose ends... if a variable has a type annotation
then undefined is an illegal value. Only untyped variables, or variables
typed as *, may be assigned with undefined.
5 matches
Mail list logo