RE: [Flashcoders] Abstract classes in AS3?

2006-07-14 Thread Nivesh Rajbhandari
() { trace(Hello, World!); } } // test.fla HelloWorld(); -Nivesh QE Lead, Flash | Adobe Systems -- Message: 5 Date: Wed, 12 Jul 2006 09:16:41 -0700 From: Mike [EMAIL PROTECTED] Subject: RE: [Flashcoders] Abstract classes in AS3? To: 'Flashcoders mailing list

Re: [Flashcoders] Abstract classes in AS3?

2006-07-14 Thread Nicolas Cannasse
2) Have methods which are not attached to specific class instances. That's a bit like static methods no ? I was incomplete. I should have said, Have *bundled* methods which are not attached to specific class instances. That is, I want to be able to have groups of static methods. Static

Re: [Flashcoders] Abstract classes in AS3?

2006-07-14 Thread Nicolas Cannasse
Where can I find the source code of HaXe written in HaXe itself. I think is one of the important milestones for a compiler, the possibility to compile the compiler with itselves :) Not always. The AS3 compiler is not written in AS3. Haxe is using OCaml which is IMHO the best language to

Re: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Nicolas Cannasse
I don't really care whether they allow private constructors or not, as long as they provide some way of accomplishing the same thing. Specifically, I want to be able to: 1) Limit the number of instances of certain classes (singletons, enumerations). Did you have a look at haXe enums ?

Re: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Weyert de Boer
Yeah, well I don't need the onion skinning tool either so let's remove it ;-) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by

RE: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Mike
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Cannasse Sent: Wednesday, July 12, 2006 1:16 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? Mike Keesey wrote: I don't really care whether they allow private

Re: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Weyert de Boer
Where can I find the source code of HaXe written in HaXe itself. I think is one of the important milestones for a compiler, the possibility to compile the compiler with itselves :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription

Re: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Chris Allen
For compile time checks, just use a private constructor. As ActionScript allows one to access a private (not really private) super constructor in a subclass this works perfectly. At least this is what I do when I need an Abstract class in ActionScript. E.G. class

RE: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Geoffrey Williams
AS3 doesn't support private constructors. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Allen Sent: Tuesday, July 11, 2006 2:06 PM To: Flashcoders mailing list Subject: Re: Re: [Flashcoders] Abstract classes in AS3? For compile time checks, just

Re: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
Hello ;) In AS3 the private keyword it's removed !! ;) You can't use this keyword for your constructor :) EKA+ :) 2006/7/11, Chris Allen [EMAIL PROTECTED]: For compile time checks, just use a private constructor. As ActionScript allows one to access a private (not really private) super

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Cédric Néhémie
Chris, from the latest AS3 Language Reference (http://livedocs.macromedia.com/flex/2/langref/index.html), in compile-time errors section : 1153 - A constructor can only be declared public I don't understand why Adobe do that ? If somebody have an idea, I'ld be buyer ? Chris Allen wrote: For

Re: Re: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Chris Allen
Yep, Just realized you guys were talking AS3. My bad. -Chris On 7/11/06, eka [EMAIL PROTECTED] wrote: Hello ;) In AS3 the private keyword it's removed !! ;) You can't use this keyword for your constructor :) EKA+ :) 2006/7/11, Chris Allen [EMAIL PROTECTED]: For compile time checks, just

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Mike
To: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? Chris, from the latest AS3 Language Reference (http://livedocs.macromedia.com/flex/2/langref/index.html), in compile-time errors section : 1153 - A constructor can only be declared public I don't understand why Adobe

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
private constructor is not ECMAScript ! to create a Singleton you can use a simple object inherit internal class, it's more clean :) links about this subject : http://blog.jasonnussbaum.com/?p=112 french discussion about this subject :

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cédric Néhémie Sent: Tuesday, July 11, 2006 11:30 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? Chris, from the latest AS3 Language Reference (http://livedocs.macromedia.com/flex/2

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Mike
:45 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? private constructor is not ECMAScript ! to create a Singleton you can use a simple object inherit internal class, it's more clean :) links about this subject : http://blog.jasonnussbaum.com/?p=112 french

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Cédric Néhémie
] Abstract classes in AS3? private constructor is not ECMAScript ! to create a Singleton you can use a simple object inherit internal class, it's more clean :) links about this subject : http://blog.jasonnussbaum.com/?p=112 french discussion about this subject : http://groups.google.com

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
Subject: Re: [Flashcoders] Abstract classes in AS3? private constructor is not ECMAScript ! to create a Singleton you can use a simple object inherit internal class, it's more clean :) links about this subject : http://blog.jasonnussbaum.com/?p=112 french discussion about this subject : http

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Francis Cheng
To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Abstract classes in AS3? That does seem stupid and completely pointless. I use private constructors all the time. Is there an official rationale for this? -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Mike
I don't really care whether they allow private constructors or not, as long as they provide some way of accomplishing the same thing. Specifically, I want to be able to: 1) Limit the number of instances of certain classes (singletons, enumerations). 2) Have methods which are not attached to

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread eka
Hello :) Try this method : package { import flash.utils.getQualifiedClassName; import flash.errors.IllegalOperationError; class AbstractClass { public function AbstractClass () { var path:String = getQualifiedClassName(this) ; if( path == AbstractClass) {

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread Weyert de Boer
Nice hack if you aks me. Thanks. Based on this hack I can be sure it's not supported. Sadly enough. Oh well, thanks for sharing the hack. Yours, Weyert Hello :) Try this method : package { import flash.utils.getQualifiedClassName; import flash.errors.IllegalOperationError; class

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread Cédric Néhémie
Eka you are the fastest :) eka wrote: Hello :) Try this method : package { import flash.utils.getQualifiedClassName; import flash.errors.IllegalOperationError; class AbstractClass { public function AbstractClass () { var path:String = getQualifiedClassName(this) ;