I think

null = explicity that the var points to nothing

and

undefined = never received any value or reference before

Perhaps before Flash 7 all the vars with no assignments were set to null by
default, I´m not sure....


2006/7/19, Rifled Cloaca <[EMAIL PROTECTED]>:

FlashCoders,

I've recently been upgrading some old Flash MX code to Flash 8, and have
been running into issues where properties return 'undefined' instead of
'null'.  I seem to recall that undefined was introduced in Flash 7.  I've
always been confused about when something is undefined versus null, so I
always check for both. { (var != undefined && var != null) }

Is there an explanation somewhere regarding the difference between
undefined
and null, and when to expect which?  If not, can someone who understands
explain it?

Thanks in advance!

-rc
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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




--
João Carlos
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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