Skip to main content

Flash Version 9: Better

var circle:Sprite = new Sprite(); circle.graphics.beginFill(0xFF0000); circle.graphics.drawCircle(0, 0, 20); circle.graphics.endFill(); circle.x = stage.stageWidth / 2; circle.y = stage.stageHeight / 2; addChild(circle); Loading an external image var loader:Loader = new Loader(); loader.load(new URLRequest("image.jpg")); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded); addChild(loader); function onLoaded(e:Event):void trace("Image loaded");

If you need a specific workflow (e.g., compiling AS3 with free tools, converting old Flash 9 content, or running legacy SWFs safely), let me know and I can provide step-by-step instructions. flash version 9

circle.addEventListener(MouseEvent.CLICK, onClick); function onClick(e:MouseEvent):void circle.graphics.beginFill(0x00FF00); circle.graphics.drawCircle(0, 0, 20); var circle:Sprite = new Sprite(); circle