Strona 1 z 1

problem z currentframe

: śr maja 07, 2008 11:56 am
autor: Shaggy
Mam taki kod:

Kod: Zaznacz cały

button.onPress = function() {
	if (_parent._currentframe > 300) {
		_parent.gotoAndPlay("a");
	} else {
		_parent.gotoAndPlay("b");
	}
};

Mam pewien MC a w nim przycisk "button". MOje pytanie to jak uzależnić jego akcje onPress od obecnej klatki animacji MC.

Bardzo proszę o pomoc.

Re: problem z currentframe

: śr maja 07, 2008 12:55 pm
autor: Marek_bf

Kod: Zaznacz cały

button.onPress = function() {
	if (this._parent._currentframe > 300) {
		this._parent.gotoAndStop("a");
	} else {
		this._parent.gotoAndStop("b");
	}
};

Re: problem z currentframe

: śr maja 07, 2008 1:30 pm
autor: Shaggy
Dziękuje :)