All pastes #632313 Raw Edit

Stuff

public text v1 · immutable
#632313 ·published 2007-07-24 19:38 UTC
rendered paste body
jambe_right :

onClipEvent (enterFrame) {
	if (!isStop)
	{
		if ((this._rotation >= -28 && direction == -1) || (this._rotation <= 0 && direction == 1))
		{
			this._rotation += 2 * direction;
		}
		else
		{
			direction = -direction;
		}
	}
}

onClipEvent (load) {
	var direction = 1;
	var isStop = false;
	
	this._rotation = -28;
}

jambe_left :

onClipEvent (enterFrame) {
	if (!isStop)
	{
		if ((this._rotation >= -28 && direction == -1) || (this._rotation <= 0 && direction == 1))
		{
			this._rotation += 2 * direction;
		}
		else
		{
			direction = -direction;
		}
	}
}

onClipEvent (load) {
	var direction = -1;
	var isStop = false;
}

stop_btn :

onClipEvent (mouseDown) {
	_root.jambe_left.isStop = true;
	_root.jambe_right.isStop = true;
}

play_btn :

onClipEvent (mouseDown) {
	_root.jambe_left.isStop = false;
	_root.jambe_right.isStop = false;
}