RE: [Flashcoders] Abstract classes in AS3?

2006-07-14 Thread Nivesh Rajbhandari
Hi,

Regarding:
-
  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 classes are how this is currently
accomplished, but if we can't have private constructors, there's no way
to prevent someone from (pointlessly) instantiating a static class.

Can methods be attached to packages in AS3.0? If so, that might help.
-


Yes, this can be done in AS 3.0.  Note that the Flash IDE requires you
to name your .as file with the same name as the function so that the IDE
can find the definition.

// foo/bar/MyFunction.as
package foo.bar
{
public function MyFunction()
{
trace(MyFunction);
}
}

// test.fla
import foo.bar.*;

MyFunction();


You can also define functions in the unnamed package. That way, you can
use the function without the import statement as long as that function
is in your classpath:

// HelloWorld.as
package
{
public function HelloWorld()
{
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' flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain;   charset=US-ASCII

-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 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 ?
 http://haxe.org/ref#the_power_of_enum

Sure, something like that would be nice. But it's not in AS3.0.

  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 classes are how this is currently
accomplished, but if we can't have private constructors, there's no way
to prevent someone from (pointlessly) instantiating a static class.

Can methods be attached to packages in AS3.0? If so, that might help.

  3) Be able to create classes that cannot be instantiated themselves
but
  can be superclasses of concrete classes.

 Yes, I agree there. Removing the ability to create private
constructors
 seems completely pointless. The rational behind it seems a bit like
you
 don't need that, which is not a very strong point IMHO.

Exactly!

Replace the removed functionality with some other strategy, but don't
just get rid of it and pretend nothing's wrong.
--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] RE: AS3 faster ??

2006-07-07 Thread Nivesh Rajbhandari
Hi Patrick,

AS 3 code executes faster in the Player at runtime.  This devnet article
describes the goals of ActionScript 3.0 -
http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview
.html.

Currently, there hasn't been any improvement in SWF compilation speed
within the Flash IDE.  However, the compilation speed should be
comparable to AS 2 compilation speed.  (Note that the initial
compilation after launching Flash will be a bit slower than later
compilations because the Flash IDE initializes JVM hooks to call the
Java AS 3 compiler during that first compilation.)

-Nivesh
QA Lead, Flash | Adobe Systems



--

Message: 8
Date: Thu, 06 Jul 2006 11:47:02 -0400
From: Patrick Matte [EMAIL PROTECTED]
Subject: [Flashcoders] AS3 faster ??
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain;   charset=US-ASCII

Hi people, they say that AS3 is 10 times faster than AS2 but what does
that
really means ? Does that mean that my movies will play faster even if I
have
a few dozens movieclips with graphics flying all over the screen? Or
does it
just mean that my .swf will be compiling 10 times faster?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] RE: Telnet example of Flash 9 preview

2006-07-07 Thread Nivesh Rajbhandari
Hi,

I don't know a whole lot about telnets, but this worked for me when I
used port 23.  I think the telnet port is usually port 23.

-Nivesh
QA Lead, Flash | Adobe Systems

Message: 6
Date: Thu, 06 Jul 2006 17:25:49 +0200
From: Weyert de Boer [EMAIL PROTECTED]
Subject: [Flashcoders] Telnet example of Flash 9 preview
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I am curious did the telnet example included with Flash 9 Preview work 
for you guys? I didn't got it working, I changed the instructions to the

locla webserver running on port 80. Nothing only a blinking cursor.

I want to use it to make plugin for CodeSite to support messaging from 
outside a online flash website.

Yours,
Weyert de Boer
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AS3 - Missing

2006-07-06 Thread Nivesh Rajbhandari
Hi Marcos,

Class names need to be unique.  We will support the concept of a base class for 
library symbols in the Flash 9 timeframe.  These base classes can be non-unique.

I replied to a similar post in the Flash 9 ActionScript 3.0 Preview forum on 
Adobe Labs. 
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=612threadid=1168686enterthread=y

If you have issues specific to the AS 3 Preview, feel free to you're your 
questions at 
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=612entercat=y

Thanks,
Nivesh



On 7/5/06, Marcos Neves [EMAIL PROTECTED] wrote:
 I have a A world map where each country is a movieclip. And every one 
 will have the same behavior. Before flash 9, what I did is assign a 
 class called Country to each movie clip. This way, I can easy update 
 the behavior of all at the same time.

Did you do this in AS2 or via the library linkage properties?

 With Flash 9, I can´t assign a class with the same name and can´t 
 specify a base class to the Auto Generated extends.

I haven't used Flash 9 alpha so I don't know Auto Generated is. If you 
specified the class name via library linkage properties and Flash 9 doesn't 
allow it, it sounds like a bug.

 When ask for AutoGenerate, a check box would enable an different base 
 class, and I would write on the textbox. So a movieClip called Brazil, 
 would have a autoGenerated class called Brazil that extends the class 
 Country, witch would be my base class.

Does the Brazil class redefine any methods of Country?


Chris
-- 
Chris Velevitch
Manager - Sydney Flash Platform Developers Group www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com