Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 QuickSkills

Setting The Transparency Of A Movie Clip

 

How to set the transparency of a movie clip with actionscript:

  • Create a movie clip and place it on stage (in the first frame of the main timeline).
  • Click on the first keyframe in the main timeline then open the "Actions" panel.
  • Enter this code in the "Actions-Frame" panel:

onClipEvent(load){
this._alpha = 40;
}

  • Press Ctrl + Enter to test the movie.
 

Note: To learn more about changing movie clip properties with actionscript see [Actionscript Object Properties Knowledgebase.

© 2008 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us