Actionscript 3.0: everything with the new operator

Thursday, January 31, 2008

Also with a view to "standardize", as happened with the events (see The new management of the events of Flash CS3 and Flash CS3: The new management of events), one of the many innovations in Actionscript 3.0 is the disappearance of all those ad hoc methods dedicated to the creation of specific items such as: createEmptyMovieClip() the famous attachMovie() Actionscript 3.0 with new new operator is sufficient to carry out all operations of creation. A new MovieClip, for example, is created (runtime) with the following code:

Actionscript:
  1. = new MovieClip ( ) ; var mioClip: MovieClip = new MovieClip ();
  2. ; addChild (mioClip);

image But to come then! If I have a symbol in the library and I want to add runtime proceed as if attachMovie() has disappeared? The solution is not very dissimilar from what happened in Actionscript 2.0. First you need to go to the library panel, select the symbol and open the property. Then check the box concatenation Export for ActionScript - as happened in Flash 8. A symbol library has always Class basis flash.display.MovieClip but that 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 name of the symbol. What is important to note 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 forced to create a strength for our Class (extended by flash.display.MovieClip even if we could do it. ... Continue reading "

Related Post

Goodbye IE7, followed by Sage: Read RSS feeds on Windows

Wednesday, 30 January, 2008

I sincerely try them all! I am not going to use an external application to read RSS feeds! I thought (and I taught), which has already had an open scomodo browser bind to a different application.

So I started with the RSS reader in Internet Explorer 7. But since I installed Windows Vista I see is denied feeds ... security issues. If "unlock" IE7, in due course, I start to appear "alert" around (a po 'from Windows and some' good Norton 360) which I invite you to restore your security settings in the browser correctly, punishment be "laundry" from half the world. So with IE7 - at least on Windows Vista - it is not possible to read in peace holy RSS feeds.

IE7 abandonment (it was now!) And promote good FireFox as the default browser (it was high time!). image Then install Sage, an extension for Firefox. Simple ... Perhaps too! image We say pure "limited". However, today, I downloaded FeedReader, version 3.12, one of the best known, at least giving a look around the Web. Fantastico! A new world indeed. I report this player, also for Windows, FreeDeamon, in my opinion done very well ... although in some ways I prefer FeedReader.

image

Related Post

Classes, Objects and Instances

Tuesday, January 29, 2008

I noticed often confusion when it comes to classes, objects and Instances. Who is not particularly educated on the programming object often confuse the true meaning of these terms. I knew, however, that there are two schools of thought regarding the definition of Class and Object. I like the "school" that indicates the class as a possible definition of Purpose and, therefore, as the Object Request Class.

It seems trivial, but I happened - talking with others - to be in "conflict" (so to speak) and then falling into doubt, when you use these words, casomai starting from the premise that "the other" intends them exactly like us .

I see in this way, a class is a definition! It is precisely defined a class of possible objects. The class is the set of methods and properties (if you want to add events - what else not only that special methods ...) that own the item.

For example, when writing in Actionscript, or any other language object:

Actionscript:
  1. (class MiaClasse
  2. MiaClass function () ()
  3. MioMetodo function () ()
  4. )

We have defined a class, not an Object. At most we have "called" a "possible" object. We could be argued, and not wrongly, that there Subject to runtime while the Class no (in truth there are dynamic classes that can be defined - and then used to create objects - even at runtime). Exclude classes static, of course, which - at the end - others are just sub-bodies (or bodies hidden) and real objects.

When we have:

Actionscript:
  1. MiaClasse ( ) ; var mioOggetto: MiaClasse = new MiaClasse ();

So mioOggetto is an instance of MiaClasse() Namely mioOggetto is a Purpose - precisely - a MiaClasse()

Consequently, his philosophy of objects, objects of that type MiaClasse() they can have those who want, something that can not be - the very definition - of MiaClasse() For example, if true, and it makes sense to the report:

Actionscript:
  1. MiaClasse ( ) ; var mioOggetto_1: MiaClasse = new MiaClasse ();
  2. MiaClasse ( ) ; var mioOggetto_2: MiaClasse = new MiaClasse ();
  3. MiaClasse ( ) ; var mioOggetto_3: MiaClasse = new MiaClasse ();
  4. ...
  5. MiaClasse ( ) ; var mioOggetto_n: MiaClasse = new MiaClasse ();

It has no meaning:

Actionscript:
  1. (class MiaClasse
  2. MiaClass function () ()
  3. MioMetodo_2 function () ()
  4. )
  5. (class MiaClasse
  6. MiaClass function () ()
  7. MioMetodo_2 function () ()
  8. )
  9. (class MiaClasse
  10. MiaClass function () ()
  11. MioMetodo_3 function () ()
  12. )

Subject resort and, therefore, coincide and are used alternately for the same meaning in different contexts.

Probably not much care to anyone ... question needs to complete ... :)

Related Post

The new management of the events of Flash CS3

Monday, January 28, 2008

I had already spoken in Flash CS3: The new management of events. I return the question sottolieare for the difference in this new approach compared to previous versions of ActionScript. Schematise general we have a situation like this:

addEventListener

Any object that supports events, ultimately, always exposes the method addEventListener (). In the documentation, among other things, read:

New to the listener of events in ActionScript 3.0

[...] To add event listener in ActionScript 2.0 is used sometimes addListener () and sometimes addEventListener (), while in ActionScript 3.0 is used addEventListener () in all situations.
[..]

The management of events, it is also a standardized level of real listener. All "functions" of listening, in fact, have the following structure:

Actionscript:
  1. eventObject:EventType ) : void { eventResponse function (eventObject: EventType): void (
  2. / / The action responses to events are defined here.
  3. )

EvenType is always an object of class Event or a subclass. This can always get information specific to the particular event in addition to handle property as a standard target or currentTarget

A major difference with previous versions of Actionscript, about the listener, is that:

In ActionScript 2.0, the listener of events may be functions, methods or objects while in ActionScript 3.0 can be listener of events only functions or methods.

So, having used a lot 'of time to structure the events of earlier versions of Flash, I must say that this new approach is really nice. It is a po 'that development with Actionscript 3.0 and, after a small initial loss (just to regain what was first granted) now do not understand precisely how did bear the "old" method of the events of the previous versions.

Related Post

Google Maps component for Flash

Friday 25 January, 2008

AFComponents Umapa

Google has made available APIs - in Javascript - to put its maps on any Web site. Vied how to implement the same thing with Flash!

image We start from a free component, Umapa (Universal ActionScript 3.0 Mapping API - integrated with Google Maps), developed by AFComponents, a vertical components for Flash / Flex very reasonable and affordable. On the site, where you have to register to take advantage of free downloads, there are also versions of Umapa for ActionScript 2.0: G MAP Ver.2.6.1. In this case we investigate the version 0.4 Beta of Umapa for ActionScript 3.0 (inside the package, there is also a component Flex). That we're going to see it - obviously - a beta, and missing, then, some features in version 2.0 Actionscript (G Ver.2.6.1 MAP). However, look to the future, it seems more interesting to focus on this release, I tried both and, despite the greater comprehensiveness of release for Actionscript 2.0, the beta version for Actionscript 3.0 is considerably more efficient.

Continue reading ... "

Related Post

The new tools of Adobe Photoshop CS3 Extended

Wednesday, 23 January, 2008

Adobe Photoshop CS3 Extended

Who's the lucky as me to have the new Adobe Photoshop CS3 - Extended version - it will be "grogiolato" to see all the novelty of this new release. Among the many innovations in version 10.0.1 two in particular I was struck by their extreme usefulness. The first is the speed dial:

image

This allows, for example, of "Isolated" an object in a simple and effective. Once selected, just click on the image we want to catch and the rest he thinks. It is possible during the selection, remove any selections that meet there, usually with the Alt key (on Windows - one used for selection elimnare shares with other tool). Also in the top toolbar, you can adjust the width of the "brush" selection until you come to work pixel for pixel.

This feature is a perfect coupling with the second new in Adobe Photoshop CS3: improves board menu selection (Ctrl + Alt + R).

Improve board

Given a choice, this tool allows you to perform a series of transactions really useful and interesting, with a preview in real time adjustable trmite those pictures you see at the bottom of the window above. Besides being useful for improving the edges during operations Isolated and selection, you can make re-elaboration of simple images, like the one shown below:

Improve board

From the rough and "square" image of the left, thanks to the use of Improves board has arrived at a figure of the moment right.

See Video

Related Post

Restyling and Rebloging

Wednesday, 23 January, 2008

Thin Thoughts

With the new year is always nice cool environments, including those of virtual Blog. I have reviewed the background graphic Undolog.com, which is now extremely more harmonious.

More complex was moved Thin Thoughts from Blogger to WordPress! But in the end the result was really rewarding!

Related Post

Fireftp: an FTP client for FireFox

Wednesday, January 9, 2008

logo128 The simple things, sometimes work better than complex but seemingly better. Personally often use FTP applications, both desktop client as real and as tools to other applications such as Adobe Dreamweaver CS3 or UltraEdit. As client-fledged I bought, from time-FTP Voyager, come now to version 14.1. Despite the excellent quality of the product, FTP Voyager-runs when you plant a folder with many files. I was, in fact, in the unfortunate situation of having to perform a backup for a client who had collected a nauseating amount of files within a folder. Fortunately I had the idea to install this extension for Firefox (formerly advised by Yuma), which has solved the problem, otherwise I would have had "zip" folder and pull it down as.

Fireftp configurations allows minimal but sufficient in maggiornza cases. Excellent able to run a confroto files and folders between remote, although in this version the comparison is done exclusively on the presence or otherwise of the file.

So fireftp will not be the final ftp client but it can be very useful, since that is free unlike FTP Voyager!

Related Post

EditArea: a rich Sourcecode Editor in Javascript

Tuesday, 8 January, 2008

EditArea is a different way of using the online editing functions permitted dall'HTML. This technique, used most often to create WYSIWYG editor, is exploited in this case to provide a proper code editor.

EditArea

A normal field TextArea becomes a real editor with the ability to format your text, find and replace words and get a color code in real time. Among its features note:

  • Integration through a simple script Javascript and only one call to a function patch.
  • The 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-indentation of new lines
  • Numbering lines Code
  • Multilanguage support: Croatian, Danish, English, French, German, Italian, Japanese, Polish, potoghese)
  • Support for gzip
  • Multiple instances
  • Fullscreen
  • Resizing the window in real time
  • Possibility of extending through the plugin
  • Save and Load callback
  • Work with prototype and mootools

An example of how to use it:

JavaScript:
  1. editAreaLoader. init ((
  2. id: "exemple_3" / / id of the textarea to transform
  3. , start_highlight: true
  4. , font_size: "8"
  5. , font_family: "verdana, monospace"
  6. , allow_resize: "y"
  7. , allow_toggle: false
  8. , language: "fr"
  9. , syntax: "css"
  10. , toolbar: "new_document, save, load, |, charmap, |, search, go_to_line, |, undo, redo, |, select_font, |, change_smooth_selection, highlight, reset_highlight, |, help"
  11. , load_callback: "my_load"
  12. , save_callback: "my_save"
  13. , plugins: "charmap"
  14. , charmap_default: "arrows"
  15. ));

Related Post

Wacom: graphic editing with the 2.0-display boards

Tuesday, 8 January, 2008

Cintiq

A revolution, finally, in dell'editing chart. Wacom presents an interesting solution that merges a tablet with a touch-screen system. Having also a tablet Wacom, which now use every day instead of mosue, I very much appreciate this step (the next spending that will do;)). I currently use a Intuos3 A5, is perfectly integrated in Windows Vista as well as software development that use, such as Adobe Photoshop CS3 and Flash CS3. I often happened also to use it simply to write a mail when combined with the handwriting recognition in Windows Vista:

Recognition calligraphic

The new series Cintiq Interactive Pen Display, shows very interesting features:


1,024 levels of pressure sensitivity

Sensitivity
Tilted the input device in any direction is to create pen, brush and natural rubber.

Recognition of rotation
Some input devices, such as the new Art Marker, is rotated around its own axis thanks to the recognition of the rotation, the Cintiq is able to detect this rotation and, in appropriate applications (eg Painter 9) to transform it into rotating brush.

Tool ID
With Tool ID (ID instrument) can be individually programmed and configured each device input Cintiq for any software. The functions can be activated automatically when it is started.

ExpressKeys
The ExpressKeys are a series of buttons along the left side and right side of the surface active. You can Assign your shortcuts or macros prefer to forget your keyboard.

Touch Strip
With the new Touch Strip can still move 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 editor simply by moving your finger.

Rubber
Correct mistakes has never been easier: just flip the pen and erase!

Without cable or battery
All input devices operate without cable and battery without the necessary power is supplied by the tablet.

Plug & Play
The Cintiq installs easily and quickly and is compatible with all your software.

Wacom pen technology
The technology of pens cordless battery synonymous with a reliable product with high quality, which requires minimal maintenance. The technology ensures high quality products of leading solutions based input pen.

Wacom Cintiq

This could represent the future of the interaction between man and computer, a fantastic hybrid between a touchscreen and a tablet, which follows the right direction for the benefit dell'usabilità and accessibility. The mouse was really at sunset?

Related Post