Articles Tagged 'Development'
. Again in the "uniform", as happened with the events (see the new event handling of Flash CS3 and Flash CS3: The new event management ), one of the many new features in ActionScript 3.0 is the disappearance of all those ad hoc methods dedicated to the creation of special items, such as: createEmptyMovieClip() or the famous attachMovie() . With Actionscript 3.0 the operator new is sufficient to perform all the operations building. A new MovieClip, for example, is created (runtime) with the following code:
But let's go! If I want a symbol in the library and add it as a runtime happens if attachMovie() is gone? The solution is not very dissimilar from what happened in Actionscript 2.0. First you need to go into the library, select the symbol and open the Properties window. At this point, check the Export for ActionScript box chaining - as they did in Flash 8. A symbol library as a base class has always flash.display.MovieClip , but this does not interest us much. The interesting thing, however, is the parameter class that is set by default (when you check Export for ActionScript) with the symbol name. What is important to emphasize is that this is a new mode of Flash CS3 (and ActionScript 3.0). The symbol to be exported must have a Class reference. The curiosity is that we are not necessarily forced to create our own class (extended from flash.display.MovieClip ), even if we could do it.
Continued ...
I noticed often confusion when it comes to classes, objects and instances. Those who are not very educated on the object-oriented programming often confuses the true meaning of these terms. I knew, however, that there are two schools of thought regarding the definition of classes and objects. I like the "school" that indicates the class definition as a possible subject, and therefore, as an instance of the object.
It seems trivial, but I've - talking with others - to be in "conflict" (so to speak) and then fall into confusion, when using these terms, starting from the assumption that if anything the "other" just as we intend them .
I see it in this way, a class is a definition! It is precisely defines a class of possible objects. The class is the set of methods and properties (if you want we can also add events - what else ... not only that special methods) that will own the object.
For example, when we write in Actionscript, or any other object-oriented language:
1 2 3 4
| class MyClass { MiaClass function () {} function myMethod () {} } |
We have defined a class and not an object. In the limit we have "defined" a "possible" object. We could even argue, and rightly so, that the object exists at runtime while the Class not (in truth there are dynamic classes that can be defined - and then used to create objects - even at runtime). Exclude static classes, of course, that - eventually - are nothing more than sub-instances (or instances hidden) and then real objects.
But when we have:
1
| MiaClasse = new MiaClasse ( ) ; var MyObject: MyClass = new MyClass (); |
! Here mioOggetto is an instance of MiaClasse() ! . That mioOggetto is a subject - in fact - of type MiaClasse() .
. As a result, their philosophy to objects, objects of type MiaClasse() I can have as many as I want, which can not be - the very definition - of MiaClasse() . For example, if the report is true and it makes sense:
1 2 3 4 5
| MiaClasse = new MiaClasse ( ) ; var mioOggetto_1: MyClass = new MyClass (); MiaClasse = new MiaClasse ( ) ; var mioOggetto_2: MyClass = new MyClass (); MiaClasse = new MiaClasse ( ) ; var mioOggetto_3: MyClass = new MyClass (); ... MiaClasse = new MiaClasse ( ) ; var mioOggetto_n: MyClass = new MyClass (); |
It makes no sense:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| {class MyClass MiaClass function () {} MioMetodo_2 function () {} }
class MyClass { MiaClass function () {} MioMetodo_2 function () {} }
class MyClass { MiaClass function () {} MioMetodo_3 function () {} } |
Object Instance and, therefore, coincide and are used alternately for the same meaning in different contexts.
Probably not much anyone cares ... the question of completeness of requirements ... 
Continued ...
I had already spoken in Flash CS3: The new event handling . I'll be back on the issue sublists for the difference of this new approach compared to previous versions of ActionScript. Schematically we have a general situation of this type:

Any object that supports events, ultimately exposing itself the addEventListener (). In the documentation, among other things, we read:
What's new for event listeners in ActionScript 3.0
[...] To add event listeners in ActionScript 2.0 is sometimes uses addListener () and sometimes addEventListener (), whereas in ActionScript 3.0 using addEventListener () in all situations.
[..]
Event management, then, is standardized at the level of real listeners. All the "features" of listening, in fact, have the following structure:
1 2 3
| eventObject : EventType ) : void { eventResponse function (eventObject: EventType): void { / / The actions in response to the events are defined here. } |
o una sua sottoclasse. EvenType is always an object of class Event or a subclass. . This allows for more informations specific to the particular event in addition to handling standard properties such as target or currentTarget .
An important difference with previous versions of ActionScript, with respect to the listener, is that:
In ActionScript 2.0, event listeners can be either functions, methods or objects, whereas in ActionScript 3.0, event listeners can be only functions or methods.
In short, having used for some 'time to event structure from earlier versions of Flash, I must say that this new approach is really nice. It's a bit 'that development with Actionscript 3.0 and, after a small initial loss (just to regain what was taken for granted) now I can not understand how could I bear the "old" method of the events of the previous versions.
Continued ...
Google has APIs - Javascript - to put its maps in any web site . vied how to accomplish the same thing with Flash!
We start from a free component, UMAP (Universal ActionScript 3.0 Mapping API - Integrated with Google Maps), developed by AFComponents , a vertically organized companies of components for Flash / Flex really interesting and affordable. On the site, where you need to register to take advantage of free downloads, there are also versions of UMAP for ActionScript 2.0: MAP G Ver.2.6.1 . In this case we will analyze the version 0.4 Beta UMAP for ActionScript 3.0 (inside the package there is also a Flex component). That we're going to see is - obviously - a beta version and lacks, therefore, some features in version for Actionscript 2.0 ( G Ver.2.6.1 MAP ). However, watchman at the future, it seems more interesting to focus attention on this release, I tried both and, despite the release of more complete for Actionscript 2.0, Actionscript 3.0 beta version is considerably more powerful.
Continued ...
Simple things sometimes work better than those that appear best but complex. I personally use most often FTP applications, either as a desktop client like real tools that present the whole in some other applications such as Adobe Dreamweaver CS3 or UltraEdit. As a client I have bought real, long, FTP Voyager , now arrived at version 14.1. Despite the excellent product quality, FTP Voyager crashes when browsing a folder with many files. I have found, in fact, in the unfortunate position of having to make a backup for a client who had collected a nauseating amount of files within a folder. Luckily I had the idea of installing this extension for FireFox (Recommended already from Yuma) who solved the problem, otherwise I would have to "zip" folder as a file and pull it down.
FireFTP allows configurations of minimal but sufficient in maggiornza cases. Excellent ability to run a confroto remote files and folders, even if this version is the comparison solely on the presence or absence of the file.
In short, FireFTP FTP client will not be definitive, but it can be very useful, since then it is free unlike FTP Voyager !
Continued ...
EditArea is a different way to use HTML editing features allowed online. This technique, used most often to create WYSIWYG editor , in this case is used to provide a real code editor.
A regular textarea field is transformed into a real editor with the ability to format the text, searching and replacing words and get a color code in real time. Among its features we note:
- Simple integration through a single JavaScript script and a single call to a function of patch.
- Support tab
- Search and replace with regexp
- Support the color code for PHP, CSS, JavaScript, Python, HTML, XML, VB, C, CPP, Pascal, Basic, Brainf * ck
- Auto-indenting of new lines
- Numbering lines of code
- Multilanguage support: Croatian, Danish, English, French, German, Italian, Japanese, Polish, potoghese)
- Support for gzip
- Multiple instances
- Fullscreen
- Resize the window in real time
- Possibility to extend the features through plugins
- Save and Load callback
- Work with prototype and mootools
An example of how to use it:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| editAreaLoader. init ({ // id of the textarea to transform id: "exemple_3" / / id of the textarea to transform true , Start_highlight: true "8" , Font_size: "8" "verdana, monospace" , Font_family: 'verdana, monospace " "y" , Allow_resize: "y" false , Allow_toggle: false "fr" , Language: "fr" "css" , Syntax: "css" "new_document, save, load, |, charmap, |, search, go_to_line, |, undo, redo, |, select_font, |, change_smooth_selection, highlight, reset_highlight, |, help" , Toolbar: "new_document, save, load, |, charmap, |, search, go_to_line, |, undo, redo, |, select_font, |, change_smooth_selection, highlights, reset_highlight, |, help" "my_load" , Load_callback: "my_load" "my_save" , Save_callback: "my_save" "charmap" , Plugins: "charmap" "arrows" , Charmap_default: "arrows" }); |
Continued ...

A revolution, finally, in graphics editing. Wacom presents an interesting solution that combines a graphics tablet with a touch-screen. I had a tablet Wacom , which is now used daily in place of the Mosuo, really appreciate this step (which I will spend the next
). Currently I use an Intuos3 A5 is perfectly integrated in Windows Vista that I use in software development, such as Adobe Photoshop CS3 and Flash CS3. I have often also simply use it to write an email, thanks to the handwriting recognition software built into Windows Vista:

The new series Cintiq , interactive pen displays, shows very interesting features:

1,024 levels of pressure sensitivity
Sensitivity
Tilt your input device in any direction and create a pen, brush, and eraser natural.
Recognition of the rotation
Some input devices, such as the new Art Marker can be rotated around its axis of rotation due to the recognition, the Cintiq is able to detect this rotation and, in some applications (such as Painter 9) to transform it into rotating brush strokes.
Tool ID
With Tool ID (ID instrument) can be individually programmed and configured each Cintiq input device for each application. And these functions are automatically activated when the application starts.
ExpressKeys
The ExpressKeys are a set of buttons along the left side and right side of the tablet. Assign your your keystrokes or macros you prefer, start to forget your keyboard.
Touch Strip
The Touch Strip allows you to use your finger directly on the tablet, like the touchpad on a notebook computer: for example, enlarge and reduce the size of the images or scroll through documents or PDF editors simply by moving your finger.
Rubber
Correcting mistakes has never been easier: just tilt your pen!
Cord-/battery-less
All input devices operate cordless and battery: the necessary power is supplied from the tablet.
Plug & Play
The Cintiq pen tablet system installs easily and quickly and is compatible with all your software applications.
Wacom pen technology
The pen technology, cordless and battery stands for a reliable, high quality, which requires minimal maintenance. This technology guarantees a high level of product quality from the leading provider of solutions based input pen.

This solution could be the future of the interaction between man and computer, a great hybrid between a touchscreen and a tablet, which follows the right direction for the benefit of usability and accessibility. The mouse was really at sunset?
Continued ...
Santa Dear Adobe,
although it has already received two patches for Flash CS3 (version 9.0.2), some troubles in its use have appeared as all the software in the world, especially in this release that has undergone very many changes.
- The 'ActionScript editor, for example, is slow and jerky! Consider, dear Father Adobe, my car has 8Gbyte of RAM and an Intel quad core duo!
- During the automatic formatting, lines of code like this one below, are "misunderstood" and reformatted evil:
1
| ( MouseEvent . CLICK , function ( e ) { myfunc ( ) ; } ) ; mybtn. addEventListener ( MouseEvent . CLICK, function (e) {myfunc ();}); |
Adding braces where it should be:
1 2
| ( MouseEvent . CLICK , function ( e ) { myfunc ( ) ; } ) ; mybtn. addEventListener ( MouseEvent . CLICK, function (e) {myfunc ();}); // < -- chi te l'ha detto?! } / / <- Who told you?! |
So better use the syntax:
- The windows docket, at least in the implementation of Windows Vista, every now and then disappear under other panels ... The Help window, the guidance in short, creates a problem when you try a project. The latter, in fact, disappears behind the other panels ... mystery! However, this defect, like others, is not always reproducible.
- The components have strange behavior: sometimes are shown, in design-time, as white rectangles ... while continuing to operate at runtime!

- The 'anterprima scale9Grid, as indicated in the new documentation and be able to show the objects correctly resized at design-time, continues to be plagued by the same problems as the previous version! Too bad!

However, Christmas is all better ... so dear Santa Adobe, we look forward to future updates.
Continued ...
FreeTextBox is an HTML editor written in JavaScript, for ASP.NET. This version, 4.0 Beta 1 is compatible with IE, Mozilla and Firefox on all platforms. Like other editors (see: WYSIWYG editor for the Web ) allows you to set the appearance and instruments. Although for ASP.NET, untreated framework from me, I report for its pleasantness. However, sin, comes in two versions: a free and a paid version!
Continued ...
Finally with ActionScript 3.0 no longer have two different management of events as they did before ActionScript 2.0 (see: Event management: similarities between Flash and Javascript ). The method addEventListener() , ubiquitous in the new architecture allows to manage new and exceptionally clean all possible events, even personal ones. The new organization in the package allows you to import the events that we serve and treat everyone equally:
Continued ...
Latest Comments
Giovambattista Fazioli : @ Barbara: If you mean the bottom to start writing down what it depends on where ...
Barbara : Hello, is very interesting but how do you write at the bottom instead of the above? Thanks
Simon : It annoys disturbed again and use that space for these things ... however it does not work ...
Giovambattista Fazioli : @ Simon: what could be due to the syntax I used, specifically for PHP 5 +,...
Simon : I tried last night putting everything into functions.php, okay, jquery forms, and tabs jQueryUI them ...