RE: [Flashcoders] prevent superclass from being instanced directly

2009-12-08 Thread Mendelsohn, Michael
Great link, Dave. I am doing that with a singleton anyway and I'm sure your link will confirm what I did there is OK. Much appreciated, - MM > http://joshblog.net/2007/08/19/enforcing-abstract-classes-at-runtime-in-actionscript-3/ ___ Flashcoders mai

Re: [Flashcoders] prevent superclass from being instanced directly

2009-12-08 Thread Dave Watts
> I have a superclass, let's say it's Dog.  Then, I have some extensions of > Dog, like so: > Schnauzer extends Dog > Poodle extends Dog > > In the Dog constructor, I want to prevent a Dog from being instanced > directly, but when I include this line in the > superclass constructor: > throw new I

[Flashcoders] prevent superclass from being instanced directly

2009-12-08 Thread Mendelsohn, Michael
Hi list... I have a superclass, let's say it's Dog. Then, I have some extensions of Dog, like so: Schnauzer extends Dog Poodle extends Dog In the Dog constructor, I want to prevent a Dog from being instanced directly, but when I include this line in the superclass constructor: throw new Illeg