Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

movieclip in button keep playing

Status
Not open for further replies.

arem18

Programmer
Mar 17, 2002
16
SE
How do I make the movieclip inside my button play even when the right bar is active? Like I have the movie playing when mouse is on button. How to make the movieclip play to the end, even if I move mouse outside button?

thanks for help ----------------------------------------
Roger Malmberg
Tomaten18@hotmail.com
Arem@websidorna.com
[swedish]
----------------------------------------
 
add the script on the button in the following way:

on(release,rollOut,releaseOutside){
yourclip.gotoAndStop(1);
}

this will set the clip to frame one in case you click the button, move the mouse away, click it and release it outside.

"yourclip" has to be replaced by the correct path to the clip in your button. regards

Firegambler
 
I don't know really..
I've tried this now but take a look at and you will know how I mean...
I want the links in the menu work like them. Take a look..
Thanks anyway.. ----------------------------------------
Roger Malmberg
Tomaten18@hotmail.com
Arem@websidorna.com
[swedish]
----------------------------------------
 
if you are using MX then use a mc for your button and then move around your mc your events like:

//play from frame 5-10 for rollover
mc.onRollOver=function() {
mc.gotoAndPlay(5);
}

//play from frame 15-20 for rollout
mc.onRollOut=function() {
mc.gotoAndPlay(15);
}

then you would stop the mc within itself

 
Sorry, I'm using Flash 5.0...
maybe I should change.. anyway, do u know how to do with 5.0? ----------------------------------------
Roger Malmberg
Tomaten18@hotmail.com
Arem@websidorna.com
[swedish]
----------------------------------------
 
maybe there is a way to post the .fla, i guess it would be easier to try it myself and then explain what i did than to imagine what the problem might be regards

Firegambler
 
sorry, please forget what i told you in my first reply, i just reread your thread and saw that my answer was not appropriate to your question. i didn't get that your clip is inside the button. anyway, please post the fla regards

Firegambler
 
OK, well.. It's like this.. I'm not actually working on a fla.. I'm just about to start a new project.. and I was just wondering how to do, to make the buttons look like those in the menu on the RA2 page... -- please take a look.. and if you have the time maybe you could make an example fla with a button and post it.. but I'm not expecting anything of you.. it's your choice.. And remember; this is just a problem of a new project so it's not that important..

Thank you for your time.. ----------------------------------------
Roger Malmberg
Tomaten18@hotmail.com
Arem@websidorna.com
[swedish]
----------------------------------------
 
i think i got something that would do the effect you want, the only weakness is that it plays the animation for one time when the buttons are loaded.

of course you can replace the two clips in the button by anything you want. just don't forget to put a stop() action to the end of both clips, otherwise they'll loop all time long. regards

Firegambler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top