import mx.transitions.*; import mx.transitions.easing.*; TransitionManager.start(some_mc, {type:Fade, direction:Transition.IN, duration:3, easing:Strong.easeOut}); Legenda: 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 [...]
Archive for the ‘RIA’ Category
TransitionManager in Actionscript 3, Flash, AIR and Flex
Posted in Actionscript, Flash, Flex, tagged Actionscript, air, Flash, Flex on April 28, 2009 | Leave a Comment »
Actionscript 3 inline function call in addEventListener
Posted in Flex on February 6, 2009 | Leave a Comment »
_timer = new Timer(1000, 1); _timer.addEventListener(TimerEvent.TIMER, function(event:Event):void { // show the next panel showPanel(index++);});
How to set icon to a Button in Adobe Flex 2 and 3
Posted in Flex on December 5, 2007 | Leave a Comment »
First of all create a images directory in your flex project folder, then add your icons to it. After that remember to set properly the icon attribute of your mx:Button element: <mx:Button icon=”@Embed(‘/images/youricon.png’)” click=”makesomething()” toolTip=”This button does…”/>
Capture global keyboard events on Flex 2 and Actionscript 3
Posted in Actionscript, Flash, Flex, Languages, RIA on March 21, 2007 | Leave a Comment »
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); or 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
Posted in Arts, Flash, Media, News, Web Art on February 22, 2007 | Leave a Comment »
The 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 [...]
Flex Textarea – Create and Get a Selection
Posted in Actionscript, Flex on February 19, 2007 | Leave a Comment »
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;