Log in

View Full Version : Button To Move To Next Frame



FARAZ QURESHI
07-29-2008, 06:26 AM
Hi

I am quite new 2 the world of flash. I would appreciate receipt of an appropriate piece of code to be used for a button which shall play a clip only for the time till the same is kept pressed.

For example I have a map to be zoomed to the desired size till I keep the button pressed and stop on release.

Thanx in advance.

Medyman
07-29-2008, 12:36 PM
AS 2.0

button.onPress = function() {
this.onEnterFrame = function() {
this.nextFrame();
}
}

button.onRelease = function() {
delete this.onEnterFrame;
}

Do you need 3.0?