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

Chapter 5. Controlling Multiple Timeline... > Using the with Action to Target Movi...

Using the with Action to Target Movie Clips

An alternative way to target movie clips is to use the action with. Instead of creating multiple target paths to the same movie clip, you can use the with action to target the movie clip only once. Imagine creating these statements to make the wheels_mc movie clip inside a train movie clip stop and shrink 50 percent:

train_mc.wheels_mc.stop();
train_mc.wheels_mc._xscale = 50;
train_mc.wheels_mc._yscale = 50;


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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