
What is SimpleAS3?
SimpleAS3 offers a fresh approach to Flash scripting that helps regular users create interactive experiences with less code than standard AS3. Typical daily tasks are easier when the compiler is not as strict, and you can do your job without constantly searching for the meaning of a million obscure errors.
Example Task: Loading An External Image And Making it Link to a Website Upon Clicking It
Standard AS3 Code:
var imageLoader:Loader = new Loader(); this.addChild( imageLoader ); var request:URLRequest = new URLRequest( "images/button.png" ); imageLoader.load( request ); loader.addEventListener( MouseEvent.CLICK, imageClickHandler ); function imageClickHandler( event:MouseEvent ):void { var request:URLRequest = new URLRequest( "http://www.example.com/" ); navigateToURL( request, "_self" ); }
Using SimpleAS3 Syntax:
var loader = this.loadChild( "images/button.png" ); loader.onClick(function() { getURL( "http://www.example.com/", "_self" ); });
Understanding the Difference:
There obviously a lot less code when using SimpleAS3 and that’s all in a nutshell. If you are a non-developer or simply don’t have time to learn AS3 from scratch, I think SimpleAS3 will benefit you. However, if you are a Flash developer, I’d recommend stick to learning AS3 from scratch.
Additional Resources:
- Download the SimpleAS3 Component
- Learn more on SimpleAS3
- SimpleAS3 Documentation





November 27th, 2008 at 6:20 pm
Simple AS3 is super simple…………as a novice Flash developer it has helped me so much.