First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
Search tutorials
Author: Scott Productions | Website:

Ok, people have been mailing me and messaging me about certain action script questions, so I thought I'd answer some of them, plus a little more:

December 7th, 2002. 5:03 PM.

_root. This is used to target a shape or movie clip. This really is locating the shape/MC, wherever it may be. _level0,1,2,3 may be used also, because this determines the level of where the MC/shape is.

_parent. This is used to target a shape or a movie clip from INSIDE a movie clip.

_visible = x; Determines if the object is visible or not. "x" equals "True" or "False."
Example: _root.mc1._visible = false; (The object is invisble.)

_level(x) Like _root., but is more confusing...You must determine what "Level" the object is on. "x" should be replaced by the level, with no () around it.

_alpha = x; Used to determine the transparency of objects.
Example: _root.mc1._alpha = 30;. (This will produce a medium transparency.)

_x In terms of the x axis. (Left and right)"+" would be going right, and "-" would be going left.
Example: _root.mc1._x+=5;. (This moves the MC 5 places to the right every second.)

_y See "x".
Example: _root.mc1._y+=5;

_rotation Rotates an object with no frames required.
Example: _root.mc1._rotation+5;. (This will rotate the object to the right quite slowly.

_xscale Shrinks or enlarges a shape or movie clip, to the "X" axis.
Example: _root.mc1._xscale+=5;.

_yscale See "xscale".
Example: _root.mc1._yscale+=5;


Controllers are action script statements that set up variables, that can be reffered to. In English, you can set up a statement saying:

{//action goes here 

That says, if the key is down, Left, the action will take place. Without controllers, there is no way to activate an action.

if(condition) {action} Sets up an "if" statement, which tests if something is happening. If it is, the action will take place.

if(key.isDown(key.LEFT)) { 

}Else{ Used to see if an action is NOT happening. Used in an "if" statement.

if(key.isDown(key.LEFT)) {; 
} else { 

» Level Basic

Added: 2003-02-10
Rating: 7 Votes: 37
(10 being the highest)
» Author
Information provided by myself. Heh hehe.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: doc_chin7
» Description:

The flash's horizontal road drive was done in CS4 and was upgraded to CS6. The car responds to right/ left key and flash will auto-generate the movement of roads from left-right or right-left based on random number. Have fun driving in this virtual environment and avoid other cars... :) If you are creative, a road driving game can be created from it.

Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.