()
{
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
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
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
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 ?
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
-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
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
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
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
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
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
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
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
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 :
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
: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
] 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
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
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
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
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)
{
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
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) ;
23 matches
Mail list logo