Home arrow Flash arrow Page 4 - ActionScript 101
FLASH

ActionScript 101


While there were some ActionScripts in the earlier versions of Flash, the language really didn't get its start until the year 2000, when it was officially named. Heavily influenced by JavaScript, the language went from a few simple commands to an evolving powerhouse of functions. This article will explain some of those functions.

Author Info:
By: James Payne
Rating: 4 stars4 stars4 stars4 stars4 stars / 10
January 16, 2008
TABLE OF CONTENTS:
  1. · ActionScript 101
  2. · Working with Properties
  3. · Width/Height
  4. · Visibility
  5. · Alpha

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
ActionScript 101 - Visibility
(Page 4 of 5 )

Aside from being an idiot and setting your Xscale and Yscale properties to 0, you can also make an object invisible by using the Visible field. Setting the value of visible to 0 makes it invisible, to 1 makes it visible:


onClipEvent (mouseDown) {

setProperty("", _visible, "0");

}

Rotation

The Rotation property allows you to rotate an object by a certain amount of degrees. To see it in action, enter the following code into the Actions pane:


onClipEvent (mouseDown) {

setProperty("", _rotation, "0");

}

Quality

The Quality property is used to change the quality of the overall scene. It seems that the default Quality value is High. The other values are Low and Medium. We are going to set the value to Low because we want our movie to appear crummy.


onClipEvent (mouseDown) {

setProperty("", _quality, "Low");

}

If you test the movie and click on the object you will see that its quality deteriorates rapidly.

Name

You use the Name property to read or change the name value of an object.


onClipEvent (mouseDown) {

setProperty("", _name, "circle");

}

The above code would change the name of our object to "circle."

Next: Alpha >>

blog comments powered by Disqus
FLASH ARTICLES

- More Top Flash Game Tutorials
- Top Flash Game Tutorials
- Best Flash Photo Gallery Tutorials
- The Top Flash Tutorials for Menus
- 7 Great Flash Tutorials
- Adobe Creative Suite 5.5 Now Available
- Critical Flash Vulnerability Heats Up the Web
- More on Nonpersistent Client-Side Remote Sha...
- Nonpersistent Client-Side Remote Shared Obje...
- Using the Decorator Pattern for a Real Web S...
- Using Concrete Decorator Classes
- Delving More Deeply into the Decorator Patte...
- The Decorator Pattern in Action
- A Simple Decorator Pattern Example
- Decorator Pattern

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials