Articles Tagged 'ECMA'
In Objective-C you can extend a class given in two ways: by running a classic subclassing (see also inheritance) or using the so-called categories .
Note: there is also a third way in Objective-C indicated by the name of Posing we might call a mix of subclass (because it defines a new name) and categories (for a given moment all classes of one type behave like new) .
Continued ...
Reading the article by Julius ActionScript 2 or ActionScript 3? Let's clear! I would like to make some considerations on the evolution "inverse" of some development tools for those who, like me, is the programming C / C + +.
Continued ...
For some developers just need to know that there is a new version of their preferred development package to run and buy the upgrade. Others, quite rightly, more calm and maintain a "pretend" to know the actual improvement in the new version before you change your habits. In the case of Adobe Flash CS3 is not much to wait, given the many changes that the package has undergone since Macromedia was acquired by Adobe.
Here, then, 10 simple, but important, reasons which, in my personal opinion, enough to convince you to upgrade to Adobe Flash CS3 . I will focus, of course, only on the things that struck me personally, this is not intended as an exhaustive list of all the many innovations introduced by the CS3 suite, only a fly to anticipate some features of CS3.
1. Installation
The installation is nice and fast, compared to previous versions. It includes, among other things, with all Adobe products (Dreamweaver CS3, Photoshop CS3 Extended, etc ...) which makes the installation / removal, and update a real pleasure.
2. Backward Compatibility
One issue often overlooked, but always taken into account in the history of Flash: The ability to manage previous versions of the product. In Flash CS3 has all the tools to manipulate it is to migrate the previous versions of our movies. We find this possibility in debugging (debugging a separate Actionscript 2.0 and Actionscript 3.0) is in the process of completing the movie. Write now Actionscript 3.0 Flash applications could be counterproductive in certain contexts. If your target site has a high traffic you may find that many users have not yet installed the latest versions of Flash Player for your browser and then would not see the movie. However, as noted above, Flash CS3 allows you to develop Flash applications mantendedo backward compatibility and therefore I do not see this as a big ostocalo nell'upgrade product.
3. GUI and IDE

The IDE Flash CS3 (like Dreamweaver CS3) has been revised to better. The panels (see picture left), often uncomfortable in previous versions, have been completely redesigned and now their use is much less invasive.
In addition, the ability to minimize panels (see figure at right) is found that makes a real attractive and functional interface. When a panel is in icon mode takes up much less space and with a simple click you can open the first main panel always visible.
All the IDE, in short, has been revised including the central area with the window for editing and graphic code. Do not you point out all the changes or you'll ruin the surprise ...

Continued ...
One of the strengths of Adobe Flash lies in the choice of the ECMAScript (ECMA-products - E uropean C omputer A ssociation anufacturers M) as the standard scripting. ActionScript and JavaScript, in fact, both stem from a higher standard as they are extremely similar. This is one of the reasons for which many ActionScript programmers develop very easily in JavaScript and vice versa.
ActionScript has always had a management "double" of events that often has confused some developers. In MovieClip, for example, you can set an event by simply declaring a function to the properties of the event, for example:
Method 1
1 2 3
| ( ) { mio_mc. onRelease = function () { "Click sul MovieClip" ) ; trace ("Click on the MovieClip"); } |
Other objects, in contrast, require a different handling of the event that you want to monitor, requiring the classical listener, an object designed for this task. For example, the Mouse object can be controlled in this way:
Method 2
1 2 3 4 5
| Object = new Obejct ( ) ; MouseListener var: Object = new Obejct (); ( ) { MouseListener. onMouseMove = function () { "Mouse in moto" ) ; trace ("Mouse in motion"); } addListener ( mouseListener ) ; Mouse . addListener (MouseListener); |
The components have a further variant, as the Loader component:
Method 3
1 2 3 4 5
| Object = new Object ( ) ; loaderListener var: Object = new Object (); = function ( evt : Object ) { loaderListener. complete = function (evt: Object ) { "Caricamento completato" ) ; trace ("Upload completed"); }; ( "complete" , loaderListener ) ; myLoader_ldr. addEventListener ("complete", loaderListener); |
Why these differences? The reason, indeed, is very simple. Method 1, the most immediate, is used when the event to "intercept" is unique, that is when it makes no sense to "take" several functions one after all ' other. Methods 2 and 3, however, create the "lists" of "listeners" and are extremely useful and powerful because they allow you to attach virtually infinite number of functions to a particular event.
The same thing happens in JavaScript and can be seen in libraries as a prototype . The convenient observe () method, available from the event, allows you to fit a function to an event object. For example:
1
| window , 'load' , function ( ) { alert ( "Finestra caricata" ) ; } ) ; Event. Observe (window, 'load', function () {alert ("Window loaded");}); |
In this case we have attached our function that displays an alert to the load event of the window object. We could only repeat the statement and attach additional event:
1 2
| window , 'load' , function ( ) { alert ( "Finestra caricata - 1" ) ; } ) ; Event. Observe (window, 'load', function () {alert ("Window loaded - 1");}); window , 'load' , function ( ) { alert ( "Finestra caricata - 2" ) ; } ) ; Event. Observe (window, 'load', function () {alert ("Window loaded - 2");}); |
This feature, also common in ActionScript, it is extremely versatile, especially in JavaScript, is the key to the creation of many "widgets" and extensions (see the classic snap ) now proliferating on the Web The ability to tag along, in fact , for events that are already controlled by other functions, can be non-intrusive (Unobtrusive) and then, in practice, to add functions to those already present.
Continued ...
Who is the programming C / C + + can not know the ternary operator, ECMA, and then used in PHP, Javascript and ActionScript. Hence a simpatca "line of code" (in this case PHP) useful, for example, to generate alternate rows in an HTML table, for example, but significant for many other applications:
1
| = $t == 0 ) ? "even" : "odd" ) (($ T = $ t == 0)? "Even" "odd") |
I remember seeing the first time this "magic" code on a Commodore 64 (year 1984) proposed by Compute! Gazette - Basic course in the form

Continued ...
It is now only a matter of time, Mozilla has opened the way with JavaScript 1.7 . However, it is clear that the current JavaScript has limitations. For example, you can not protect against a Reverse Engineering (see Reverse Engineering: the compressors of code ), we can make life difficult for those who want to scrutinize our code, but prevent it is very unlikely.
The ECMA is based on which the current Javascript is unsatisfactory. Coming from Java, C + + or ActioneScript 3.0, is significantly uncomfortable to deal with variables without specifying the type.
The structure is also primitive objects, with various differences in implementation (that will increase) in the different browser versions. Libraries like Prototype, are designed precisely to overcome some limitations of the DOM extension, as well as efficient implementation and cross-browser Ajax (XMLHttpRequest).
Council to keep informed, to follow the evolution of Mozilla / Adobe / ActionScript on: ECMAScript 4
See documentation on the JavaScript 1.7: New in JavaScript 1.7
NOTE: Firefox 2.0.0.3 Released
Continued ...
It is available online version of Firefox 3.0 Alpha 2 , code-named Gran Paradiso. Among the features announced (the final version is expected in late 2007) we can use the browser off-line mode. All this reminds Adobe Apollo, which, although not present it as your browser, it evokes the essential features.
Continued ...
It happened to turn the TV Net TV, as had happened to become a Radio Net Radio, not to mention the music! Now, as mentioned in other posts, it's official for the Software to transform short-term Net Software!
Adobe , which we know has recently acquired Macromedia, formalizes the Web Application - Web 2.0 - in real RIA (Rich Internet Applications) with the announcement of wanting to take on the popular Web editing software Photoshop. It is the latest ' agreement between Adobe and Photobucket to make available online a technology for editing and video remix. Thanks to new technology developed for Flash 9 with ActionScript 3.0 , Adobe aims high, anticipating that within six months will be available online version of Photoshop based precisely on Flash technology.
Indeed, the new possibilities of ActionScript 3.0 (involving projects such as Flex and Apollo - see also Web2.0: Adobe is trying to Apollo and Ajax Rich Internet Application ) makes it the perfect candidate for the implementation of true on the Web Ajax RIA , on the other hand, we see ousted from his throne in this new scenario. Despite the countless Ajax Framework, some excellent, produced during the last few years, Flash provides an environment most advanced and easy to manipulate. Also we talk about one of the world's most popular plugins: Flash has it behind a few years older than Ajax and derivatives.
Furthermore, it is obvious that the Adobe Flash chooses, he being the producer now. However there are technical issues that may be considered - to date - only to be resolved in a harmonious application of technologies such as Flash. Taking a look at the new ActionScript 3.0 we immediately realize the tremendous possibilities of development offered by this new platform. The ECMA standard language and new items made available by the framework allow you to reach a level of detail possible with previous versions of Flash: one of all, for example, the ability to access data from an uploaded image Bitmap hard!
The attack by Adobe seems to take place on two fronts so distinct that they have in common the Flash technology (which remember has always been the ability to actively interact with the browser and then with Javascript Client side and server-side scripting).
The first attack takes place outside, on the browser side, where the technology Apollo is really proposed as an alternative to the usual kernel of the different platforms, available today (Windows, Mac OS, Linux, etc. ...); use Adobe Apollo , then, instead browser for best performance and applications (RIAs real) unthinkable, thus bypassing the incompatibility between Internet Explorer, FireFox and companionship. In addition, Apollo provides a single development platform, JavaScript-like Ajax, but without compatibility issues. This last point is a significant setback to technologies like Ajax, which still suffer greatly with issues of browser compatibility, do not forget, moreover, made the whole issue (rendering) graphical CSS!
The other attack is from inside, hitting Ajax Framework with Flash card. The winning element in this strategy lies in the use of Flash, the Flash technology, which is applicable both in Flex , both in Apollo , both as a standalone version already are accustomed to seeing (simple SWF file for instance)! There is no doubt that this scenario is extremely attractive to developers, and Web. What becomes immediately realizable Flash reusable in various ways, without forcing me to change a single line of code and, moreover, without worrying about compatibility!
This, in my opinion, is an important step forward, a change of considerable proportions, which also involves the world of games and Marketing. We'll talk again soon, make no mistake!
Continued ...
Latest Comments
kainone : But how can you create the thumb and attach it to the post as imamgine out?
Mark : @ Mark: Thanks for the answer. For example, if you have a code to save / use the folder ...
Mark : Thanks for the answer. For example, if you have a code to save / use the folder ...
Giovambattista Fazioli : @ Mark: in principle, absolutely, a lot depends on how and what to download. La. ..
Mark : Hello, good guide! I wanted to ask, you can use the same code to run a sql database? Instead of ...