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
> 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
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
3 matches
Mail list logo