Personal tools

Views

Talk:ActionScript 3:overview

From Adobe Labs

If you intend to edit the 'Discussion' tab of this document, you must sign your comment. To do so, simply add four tilde characters as so:

~~~~

...on a new line at the end of your post to add your username and timestamp to the comment. Anonymous or off-topic comments will be removed by the Labs wiki administrators at their discretion.


Table of contents

1 Am confused now
2 When will AS stabilize??
3 about component dataProvider
4 AS3 hopes

[edit]

Access to Java classes?

When will ActionScript have a top-level object used to access Java classes from within ActionScript code similiar to JavaScript's Packages global object?

http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Packages

~~~~


[edit]

Basic Question

Sorry for the basic q. I know I cant use AS 3 with Flash 8. How can I start to learn AS 3 if I have Flash 8? Thanks

are you trying interact with database directly without using colfusion in AS 3.

[edit]

Re: Basic Question

In order to use new AS3 functionality you have to use Flex Builder 2 alpha, which is free alpha download off this site.

[edit]

Will AS 3 be as easy to hack?

I'm concerned about decompilers, will AS3 and the player offer any protection against those?

[James] Reverse engineering will still be possible but only after AS3 swfs have been available for a long period of time. Remember, swfs using AS2 could be decompiled simply because they were compiled down to AS1. This means that none of the current decompilers will work on AS3 swfs.

MM hasn't announced a built-in obfuscator, but there are third party tools available for AS2 which will be ported to AS3.

[edit]

Does AS 3.0 permit communication with the local file system?

[ permite A.S 3.0 comunicacion con el sistema? ]

Bueno la pregunta es A.S 3.0 permite abrir o guardar como, en la maquina local

Well, the question is does AS 3.0 allow opening from or saving to, say, the local machine?

[James] AS 3.0 tiene los mismos metodos para comunicar con javascript (externalinterface) y asi puede comunicar con el sistema. Pero, para mantener una seguridad mas simple, Macromedia ha decidido que la comunicacion debe ser limitado.

Sin embargo, podremos comunicar con otros programas que tienen aceso al sistema (AS3 hace esto a traves de zócalos binarios y órdenes de octeto).

[edit]

Am confused now

I have just recently taken an interest in computer programming and I thought I would start with action script.I have bought a large number of books to get me started on this and they are all on AS 2.0.Now with AS 3.0 coming out I would like to know if I wasted my time and money aquring all this material?

[JH]Yes. AS 2.0 and AS 3.0 both are implemations of ECMAScript. AS 3.0 promises a more strict implemation of the spec, but AS 2.0 is still a good language. Also, if you learn AS 2.0 JavaScript and AJAX will be easy to pick up, they are both very similar[/JH]

[edit]

When will AS stabilize??

I guess my question is, when will your language be stable enough to build large applications/systems on it? Since Flash 4 MM has "rearchitected" AS with every new release, and I don't have the resources to migrate our app(s) every 14 months. We're a small development shop with a large-ish product.

I avoided (wisely, it seems) using Flash MX 2004 altogether, because I had a sneaking suspicion that MM would re-invent AS once again in a subsequent release of the IDE, and besides, our corporate customers tend to take awhile to upgrade their client software anyway. There's a distinct difference between expanding and building on a language and altering its fundamental design.

Here's an interesting bit from your own developers when AS 2.0 came out: Introducing ActionScript 2.0

I'll quote an interesting bit from Page 3: "First, there may come a time when a version of Flash is released that no longer supports ActionScript 1.0. Time spent learning version 2.0 now will be time you might have to spend down the road anyway. And while we can't guarantee it, don't expect ActionScript to jump to version 3.0 any time soon (if ever), because version 2.0 is now built around professional programming language concepts that have stood the test of time. As a matter of fact, outside of a few syntactical differences, writing ActionScript 2.0 code is not much different from writing Java code."

--Jason Pomerleau 12:37, 14 Dec 2005 (PST) JP

[edit]

about component dataProvider

These code is ok.

var myArray:Array = [{label:"abc"},{labe:"def"}]; myList.dataProvider = myArray;

But why above code is not ok ?

var myXML:XML = <root><a label="abc"/><a label="def"/></root>; myList.dataProvider = myXML;

---Posted by [Fede]
Try the following:
XMLStr:String = "<root><a label="abc"/><a label="def"/></root>"
myXML:XML = new XML(XMLStr)
myList.dataProvider = myXML

[edit]

AS3 hopes

This is great that ActionScript is growing over time and with new AS version 3 many OOP concepts are now much easier to implement. Creating real encapsulation with new 'final', 'const', 'private' and 'protected' keywords or true polymorphism with 'override' are great features, it was however inconceivable that a modern programming language like ActionScript would not use modern OO model, design and technique.

I would like to share with you concepts that I think need to be resolved/added in a language like AS3 for real OO model:

-Ugly and high risk use of _global is still part of AS3, I don't understand why creators of ActionScript made access to language elements like global Functions and Constants by placing them all in _global object (and I don’t know what kind of object it is). Even worse, placing AS2/AS3 packages and classes as sub-objects of _global when compiled can ruin the whole programming model!

-Ain't inner classes play important role in modern languages like Java or C#? In fact they are part of AS language and *are* possible in AS1. I wonder why they have omitted inner classes as part of AS2/AS3? (it is only compile-time issue)

-I've always said that 'method signatures' and what is referred to as 'overloading resolution' should be part of the language so that we can get rid of ugly use of 'arguments' object or type checking within methods and I've bombarded macromedia wish-list with it, still no success;)

-Maybe generic programming (that were introduced in JDK 5.0 of Java Specification) should be added in the language as they play an important role in OO and are desirable because they let you write code that is safer and easier to read than code that is littered with Object variables and casts.

Can we hope to see that AS will eventually be a mature language?

Kamyar Nazeri

Retrieved from "http://labs.adobe.com/wiki/index.php/Talk:ActionScript_3:overview"