Skip to main content
Participant
July 20, 2009
Answered

Easy question

  • July 20, 2009
  • 2 replies
  • 758 views

How do you make a MC act after another MC is selected? Like when I click on movie clip 1 then movie clip 2 does somethin after movie clip 1 does its thing?

This topic has been closed for replies.
Correct answer Ned Murphy

You assign an event listener to the movieclip annd an event handler function for that listener that either tells the other movieclip to do something or sets a variable in the clicked movie that is checked to see if the movie should tell the other movie to start playing when it finishes doing it's thing.

2 replies

kglad
Community Expert
Community Expert
July 20, 2009

what's movieclip 2 supposed to do and what do you mean by movieclip1 doing its thing?

popthepopAuthor
Participant
July 21, 2009

Thanks!
And While I'm here may I ask something else.
when I rollover I want it to do a timeline motion I've already made. Its sort of like a jiggle.

When I click it I want it to move with Actionscript. How might I do this?

kglad
Community Expert
Community Expert
July 21, 2009

you can use play() and gotoAndPlay() methods of movieclips to direct timelines to play.

to move a displayobject change its x,y properties.  if you want to display smooth (not sudden) movement, use tweening code or one of the tween classes.

Ned Murphy
Ned MurphyCorrect answer
Legend
July 20, 2009

You assign an event listener to the movieclip annd an event handler function for that listener that either tells the other movieclip to do something or sets a variable in the clicked movie that is checked to see if the movie should tell the other movie to start playing when it finishes doing it's thing.