• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Controlling the Movie Clip > Getting the Movie-Clip Properties

Getting the Movie-Clip Properties

Very often, you will want to change a movie clip’s property relative to its current value. You may want to rotate a cannon 10 degrees each time your viewer clicks a button, for example. How do you find out the current value of a movie clip’s property? You can get a property in two ways. The first way is to use the function getProperty. The second way is far simpler because it requires only that you write the target path and property in dot syntax. So if you want to change a movie clip’s property based on its current value, you can write the expression

cannon_mc._rotation += 10;


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint