Now you've got it! > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Rich Rodecker > Sent: Monday, November 06, 2006 4:28 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Freelancer Class > > you know you dont have to reference 'this' inside the class, > right? :D > > > > > On 11/6/06, JulianG <[EMAIL PROTECTED]> wrote: > > > > // ActionScript 2.0 > > > > class Freelancer extends Person { > > > > var available_time:Number; // hours per day > > > > // Constructor > > function Freelancer( hs:Number ){ > > this.available_time = hs; > > } > > > > function onIdle(){ > > if( this.available_time > 2 ){ > > this.workWithPixeltoys(); > > } > > } > > > > function workWithPixeltoys(){ > > getURL("mailto:[EMAIL PROTECTED]"); > > } > > > > } _______________________________________________ [email protected] 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

