Re: [Flashcoders] Class inheritance and scope

2006-08-30 Thread John Grden
"Just because compiler allows you to be lazy doesn't mean you should be. Code right, or don't code at all." You say this too much. And you use the word "you" when you use it. Makes people think you're talking about the pronoun of the subject, not the general object of the predicate. It's not t

Re: [Flashcoders] Class inheritance and scope

2006-08-30 Thread Alias™
If the compiler was strict about enforcing semicolons I wouldn't have to reformat all my text strings not to have any line breaks. Joy. Alias On 8/29/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: And one more thing - if the compiler complained to him to call super(), then he wouldn't have

Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Helmut Granda
Thanks! I found the book and going to give it a good read, I read twice Mook's book in essentials of AS2 but still I havent been able to grasp the consept as you can tell by my question. Anyhow, how do you go by decompiling some one else's code when there are items you dont understand? I have goo

Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Johannes Nel
f the compiler required him to call super(), he would have had more information to figure out what was wrong no. there is nothing more in that as all classes extend at least object. anyway this is pedantic. helmut: i advise you to download thinking in java by bruce eckels and read about OO, it

RE: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Steven Sacks | BLITZ
You are being far too defensive. I was not attacking you, I was attacking lazy coding practices. I didn't say YOU are a lazy coder, I said taking advantage of a compiler's shortcoming is lazy coding. If the compiler required him to call super(), he would have had more information to figure out w

Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Helmut Granda
On 8/29/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: > > > > > > You should make sure to call super(); in your subclass constructors, > > > too. > > > > > > > > > BLITZ | Steven Sacks - 310-551-0200 x209 > > > > > &g

Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Hans Wichman
structors, > > too. > > > > > > BLITZ | Steven Sacks - 310-551-0200 x209 > > > > > > > -Original Message- > > > From: [EMAIL PROTECTED] [mailto:flashcoders- > > > [EMAIL PROTECTED] On Behalf Of Chris Allen > >

Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Johannes Nel
without being nasty now, don't be prescriptive. i was pointing something out, nothing more nothing less. before attacking my code or my habits i would advise you to know what they are and how it looks. have a nice day:) On 8/29/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: And one more t

Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Helmut Granda
constructors, > too. > > > BLITZ | Steven Sacks - 310-551-0200 x209 > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:flashcoders- > > [EMAIL PROTECTED] On Behalf Of Chris Allen > > Sent: Tuesday, August 29, 2006 2:56 PM > > To: Fl

RE: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Steven Sacks | BLITZ
And one more thing - if the compiler complained to him to call super(), then he wouldn't have had this problem would he? I'll take a strict compiler any day. Don't encourage lazy coding; it only opens the door for bugs and confusing results. ___ Flashco

RE: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Steven Sacks | BLITZ
And a browser tries to fix unclosed div and font tags, too. Just because compiler allows you to be lazy doesn't mean you should be. Code right, or don't code at all. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Johannes Nel
ailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Chris Allen > Sent: Tuesday, August 29, 2006 2:56 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Class inheritance and scope > > Hi Helmut, > > They don't need to be static at all. In fact if you want to

RE: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Steven Sacks | BLITZ
To: Flashcoders mailing list > Subject: Re: [Flashcoders] Class inheritance and scope > > Hi Helmut, > > They don't need to be static at all. In fact if you want to access the > parent class you can use the key word super. super.myMethodName() for > example. Take a look a

Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Chris Allen
Hi Helmut, They don't need to be static at all. In fact if you want to access the parent class you can use the key word super. super.myMethodName() for example. Take a look at the documentation on that and hopefully that gets you pointed in the right direction. Good Luck. -Chris On 8/29/06, He

[Flashcoders] Class inheritance and scope

2006-08-29 Thread Helmut Granda
Hi, I have a class with 3 subclasses. in order for me to access a method from any of the subClasses they have to be static (or at least that is the error that the compiler gives me) so i have made my methods static and now when i try to access somethig out of those methods flash tells me that Ins