Perfect, thanks :) On Thu, Mar 6, 2008 at 1:37 PM, Beau Scott <[EMAIL PROTECTED]> wrote:
> delete o.foo; > > > > > > > > Beau > > > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Wednesday, March 05, 2008 8:27 PM > *To:* [email protected] > *Subject:* [flexcoders] AS3 Q: unset member? > > > > Is it possible to unset a variable? > > Say I have an object > > o = { foo : "Bar" } > > If I call > > o.foo = null > > then > > o.hasOwnProperty("foo") == true > > How do I make it return false (ie unset o.foo)? Can it be done without > copying the object? > > Thanks in advance, > -Josh > > -- > "Therefore, send not to know For whom the bell tolls, It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008 > 9:50 AM > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008 > 9:50 AM > > > -- "Therefore, send not to know For whom the bell tolls, It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

