Flash AS3 Tutorials Center | Interesting Flash Animation Tutorials | Valuing Flash Animation Tutorials | Flash ActionScript and Animation Home

AS3 Beginner Tutorials | AS3 Basic Lessons | AS3 Valuing Courses | AS3 Components Tutorials | AS3 and PHP Interaction Tutorials
AS3 Practical Tutorials | AS3 Animation Techniques | AS3 Transition Effects Tutorials | AS3 Download Upload Files | AS3 Particle Systems
Communication Between Flash Movies with AS3 | AS3 and JavaScript interaction | AS3 Matrix Transformation | AS3 Physics Simulation Tutorials

Another Flash Actionscript Example

Please update flash player to view this Flash ActionScript tutorial!

Flash Tutorial Content:

The above flash example illustrate another benefits of using Flash ActionScript. With just a few lines of codes, you can create a lot of objects (boats), for example, 100 or more objects, on the stage. This may take a lot of time if doing by traditional frame-by-frame animation.

Flash ActionScript Codes:

for(var i=0; i<8; i++) {
     var boat:Boat = new Boat();
     boat.x = 40*i + 100;
     boat.y = 100;
     boat.scaleX = 0.35;
     boat.scaleY = 0.35;
     addChild (boat);

var boat2:Boat = new Boat();
boat2.x = 60;
boat2.y = 120;
addChild (boat2);

Download Flash Source File:

Flash Source File flash-as-example-2.fla


With Flash ActionScript, the objects can easily be positioned randomly on the stage too.

flash tutorial, flash animation tutorial, flash examples