View Full Version : Stopping a button at a certain frame
cheezisgoooood
04-04-2003, 07:47 PM
I need an actionscript code so that when you click on a button the button stops. I have a movie clip that plays on the press frame and I need the button to stop on the Press frame when you click on the button.
Ricod
04-04-2003, 11:45 PM
I'm not sure, but I don't think you can adress it like that. You can either use the invisible button technique (a button with just a hit state, an mc with the graphical part of the button over / under it, which you can adress) or use some code within the mc that tells it to stop() when a certain variable has a certain value. eg :
onClipEvent(enterFrame) {
if (_root.buttonPlay == 0) {
this.stop();
}
}
haven't tried it, but might work. Down side : it'll check every frame.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.