continue movie after cursor has passed

  • adidas1200
  • Novice
  • Novice
  • User avatar
  • Posts: 33
  • Loc: chicago

Post 3+ Months Ago

I'm trying to create a button that plays a movie in the over position. that I've done, but when the mouse moves away the movie stops. I need it to keep playing. this button is for motion design purposes only and doesn't link the user to anything thats why I just want the movie to function in the over position.


thanks in advance

ryan
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • fotbon
  • Novice
  • Novice
  • fotbon
  • Posts: 20

Post 3+ Months Ago

place the MC oustide the button and have the button give an actionscript command to play the MC in the "over" frame.
  • adidas1200
  • Novice
  • Novice
  • User avatar
  • Posts: 33
  • Loc: chicago

Post 3+ Months Ago

whats the actionscript I would type for the "over" action? I couldn't find the script needed in the books I have.
  • fotbon
  • Novice
  • Novice
  • fotbon
  • Posts: 20

Post 3+ Months Ago

sorry, was a little unclear...haven't used buttons in ages :)

this code would belong on the actionscript for the button itself:

on(rollOver){
_root.yourmovieclip.play();
}

sorry bout the confusion, hope that helps
  • adidas1200
  • Novice
  • Novice
  • User avatar
  • Posts: 33
  • Loc: chicago

Post 3+ Months Ago

one more thing (I hope). I've put the movie on the stage but it plays automatically. Is there an action that I can place on the MC that will pause it until the viewer rolls over the button?


here's exactly what I'm doing.

I'm placing hidden buttons on a piece of artwork that I've made (interactive art). I figure that I place hidden buttons to trigger movies within the art, the movies are only shapes that move around the screen (simple stuff). This is the way I'm approaching it. is there a better way than buttons triggering movies?
  • fotbon
  • Novice
  • Novice
  • fotbon
  • Posts: 20

Post 3+ Months Ago

put a stop(); at the first frame of the MC you want to play.

Buttons triggering movies is probably the best way you'd want to do it. If you really want to hide the triggers, you can make the triggers just plain ol MC's with mouse hit detection, but the script is a little tougher. If you really want it done, pm me with your email and i'll send ya a lil tutorial.
  • adidas1200
  • Novice
  • Novice
  • User avatar
  • Posts: 33
  • Loc: chicago

Post 3+ Months Ago

got it to work!!!!



thaks for your help
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

You could of done the above (which worked), or you could have used a movieclip symbol as a button (as of Flash MX they accept button handlers).

That would of worked like this..


Movieclip with animation.

Inside that clip is a stop() action on the first frame.

Actions applied directly to the clip would be
Code: [ Select ]
on (rollOver){
this.play();
}
  1. on (rollOver){
  2. this.play();
  3. }
  • adidas1200
  • Novice
  • Novice
  • User avatar
  • Posts: 33
  • Loc: chicago

Post 3+ Months Ago

I enterd the code and did a publish preview but the movie won't play when the cursor rolls over. the arrow doesn't change, am I missing something?
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

You added the previous actions directly to the movieclip symbol that contained the animation?

If so it should have worked.

Unless you are using a version lower than Flash MX.

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.