function clickHandler(event:MouseEvent):void { fscommand(“quit”); }
Tag Archives: Flash
fscommand(“fullscreen”,”true”);” error AS3
import flash.display.StageDisplayState; stage.displayState = StageDisplayState.FULL_SCREEN;
AS3 – stage.scaleMode
stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT
Flash AS3 Typewriter Effect
1. Place a TextField on frame 1 and set the instance name to textbox 2. Enter the following code into frame 1
Load External Sound AS3
var audio:Sound = new Sound(); var req:URLRequest = new URLRequest(“Buzz.mp3”); audio.load(req); audio.play(); var channel:SoundChannel= new SoundChannel(); var audio:Sound = new Sound();var req:URLRequest = new URLRequest(“sound.mp3”); audio.load(req);audio.play(); var channel:SoundChannel= new SoundChannel();
AS3 getURL();
rootlink.addEventListener(MouseEvent.MOUSE_DOWN, rootLinkFun); function rootLinkFun(evt:MouseEvent):void{ var targetURL:URLRequest = new URLRequest(“http://www.prosoxi.gr”); navigateToURL(targetURL,”_blank”); }