Flash
  Home arrow Flash arrow Page 4 - ActionScript 101
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
FLASH

ActionScript 101
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2008-01-16

    Table of Contents:
  • ActionScript 101
  • Working with Properties
  • Width/Height
  • Visibility
  • Alpha

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    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."

    More Flash Articles
    More By James Payne


       · Hey, didn't see you there. Thanks for dropping by to read my article on...
       · Good article mate.Don't try to be funny ;)
       · Thank you! This was very helpful and easy to follow. Great examples.
     

    FLASH ARTICLES

    - 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
    - Organizing Frames and Layers for Flash Anima...
    - Organizing Frames and Layers
    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT