What is the setProperty function?

January 1st, 2008 by uCertify Leave a reply »

The setProperty function is used to change the property of a movie clip during the movie plays.

The syntax of using the setProperty function is as follows:

setProperty (target, property, value/expression);

In the above syntax, the target parameter is a string that represents the path to the movie clip whose property is to be set. The property parameter is a property of the movie clip to be set. The value parameter is a value to be set to the property. The expression parameter is any viable expression that evaluates to the new value of the property.

For example, the following code is used to set the alpha of a movie named myClip to 20.

setProperty(”myClip”,_alpha, “20″);

Click here to get free ace-flash ACE Flash exam practice questions. Get certified in first attempt download 9A0-311 - Macromedia Flash Professional simulation.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark
Advertisement

Leave a Reply

uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.