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  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM developerWorks
 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 / 8
    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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    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

    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications
    - ActionScript in Flex Applications
    - A Closer Look at Apollo`s File System API
    - Using the File System API
    - ActionScript 101
    - Flash Buttons
    - Advanced Flash Animation
    - Creating Your First Animated Movie with Flas...
    - Flash: Building Blocks
    - Building Preloaders
    - Fun Things to Do with Movie Clips in Flash MX
    - Referencing Movie Clips in Flash MX







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway