• flickr
  • linkedin
  • twitter
  • rss

Posts Tagged "AS3"

Switches (case) in AS3

Switches (case) in AS3

function topicNavHandler(event:MouseEvent):void { switch(event.type) { case MouseEvent.ROLL_OVER: trace("rollover!"); break; case MouseEvent.ROLL_OUT: trace("ROLLOUT!"); break; }
draw gradient dynamically with AS3

draw gradient dynamically with AS3

Found this gem of an example for drawing dynamic gradients: /**************************** Import Classes ****************************/ import flash.display.*; import flash.geom.*; /**************************** Define…
Popup code

Popup code

Should put this into a class for use later. Uses 'btn0' and 'pop0' as the instance names. // popup code.…
Duplicating an array

Duplicating an array

AS3: var array1:Array=[5,7,121,2434,5656,575]; var array2:Array = new Array(); array2=array1.concat(); trace(array2); AS2: little did you know, that you can't jsut go…
4 of 9
123456789