BrainStorm MultiMedia is a source for top quality tutorials on Macromedia Dreamweaver MX, Flash MX, Fireworks MX, PHP/MySQL, ActionScript, Photoshop 7, cPanel X, and Cold Fusion MX. Features include How To Rank High In Google and Brainstorm Forums.

Featured Sponsor Of The Month
 

Introduction to ActionScript 2.0

ActionScript is the native language that makes Flash do the cool stuff that it does. ActionScript is based on JavaScript, or ECMAScript as it is appropriately called. It was developed by Macromedia and, as far as I know, ActionScript can only be interpreted by Flash movies. I could be wrong. At any rate, there are a few basic functions in ActionScript that I would like to share with you.

 

gotoAndPlay() - gotoAndPlay(scene, frame) - Sends the playhead to the specified frame in a scene and plays from that frame. If no scene is specified, the playhead goes to the specified frame in the current scene.

Example
When the user clicks a button to which the gotoAndPlay action is assigned, the playhead is sent to Frame 16 and starts to play.

on(release) {
gotoAndPlay(16);
}

 

gotoAndStop() - gotoAndStop(scene, frame) - Sends the playhead to the specified frame in a scene and stops it. If no scene is specified, the playhead is sent to the frame in the current scene.

Example
When the user clicks a button that the gotoAndStop action is assigned to, the playhead is sent to frame 5 and the movie stops playing.

on(release) {
gotoAndStop(5);
}

 

stop() - Stops the movie that is currently playing. The most common use of this action is to control movie clips with buttons.

These are the most basic of ActionScript items, as there are over 200 functions to choose from. I will continue to add more later.

 

Show me more about ActionScript!

 


People Online: 44
Members Online: 0

BrainStorm MultiMedia is an internet-based company run by Bradley Beard that provides free tutorials on PHP, MySQL, Dreamweaver MX, Flash MX, ActionScript, Fireworks MX, ColdFusion MX, cPanel X, Photoshop 7, CuteFTP, SQL Server 2000, how to start ranking high in Google, web site promotion and enhancement, and search engine optimization. Along with these tutorials, I also do freelance web design using PHP/MySQL or ColdFusion.

 

Call 321-674-1667 for more information.

Copyright © 2002-2007, Brainstorm Multimedia. All Rights Reserved.