TransitionManager in Actionscript 3, Flash, AIR and Flex

import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(some_mc, {type:Fade, direction:Transition.IN, duration:3, easing:Strong.easeOut});

Blinds La classe Blinds mostra l’oggetto clip filmato mediante rettangoli che scompaiono o compaiono.
Fade La classe Fade applica all’oggetto clip filmato una dissolvenza in entrata o in uscita.
Fly La classe Fly fa comparire l’oggetto clip filmato facendolo scorrere da una direzione particolare.
Iris La classe Iris rivela l’oggetto clip filmato utilizzando una maschera animata di forma quadrata o circolare che si ingrandisce o si riduce.
Photo Fa comparire o scomparire l’oggetto clip filmato con un effetto simile al flash fotografico.
PixelDissolve La classe PixelDissolve mostra l’oggetto clip filmato utilizzando dei rettangoli che scompaiono e compaiono in modo casuale ma secondo uno schema a scacchiera.
Rotate La classe Rotate ruota l’oggetto clip filmato.
Squeeze La classe Squeeze modifica in scala l’oggetto clip filmato in orizzontale o in verticale.
Wipe La classe Wipe mostra o nasconde l’oggetto clip filmato utilizzando la maschera animata di una forma che si sposta in senso orizzontale.
Zoom La classe Zoom ingrandisce o riduce l’oggetto clip filmato modificandone in scala le proporzioni.


Capture global keyboard events on Flex 2 and Actionscript 3

If you want to capture global keyboard events maybe you put this line of code in the constructor method of your actionscript 3 class:

addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);


this.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);

but maybe it doesn’t work?
Simple! because you have to add the listener to the stage object giving focus to it…

stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);

Torino Flash Festival 6 – 2007

6° Torino Falsh Festival - 2007The competition (registration is free) is intended for Italian and foreign artists and comprises two Theme-based Sections: Animations freed from the web, dedicated to vectorial Flash animations or graphic videos lasting not more than 5 minutes and on any subject, and 2007 interArt dedicated to interactive graphics and web sites: in previous editions, the aim was to free animations from the web, i.e. make the artistic dimension of Flash language accessible to everyone. However, now that the web no longer entangles, is more fluid, our points of view have also changed. In this edition we open the doors of the festival also at the interactive works introducing the InterART category. In fact, while the first category will embrace mixed technique (pixel-vectorial) Flash animations, without any restrictions on content (narrative, poetry, graphics), but without interactive contents, the second category will concern in particular non-narrative Flash production, experimental works with a high interactive content. Standalone videos and web sites can participate. A set of workstations, monitor-mouse-computer, that can be used by the public will be set up in order to create a collective, induced and casual performance. […]

More info and registration:

Flex Textarea – Create and Get a Selection

How to create a selection on a Textarea or TextInput:

myTextArea.setSelection(fromIndex, toIndex);

How to create a selection on a RichTextEditor:

myRTE.textArea.setSelection(0, 10);

How to get a selection from a TextArea or TextInput:

var mySelectedTextRange:TextRange = new TextRange(myTextArea, true);

How to get a selection from a RichTextEditor:

public var mySelectedTextRange:TextRange = myRTE.selection;