Strona 1 z 1

Button - RollOver

: pn mar 10, 2008 9:17 am
autor: Meykih
Witam mam stworzoną grafikę butona i animację.
Chcę żeby po najechaniu myszką na niego powędrował w górę a następnie gdy kursor opuści pole buttona , ma zniżyć się w dół;p

Próbowałem wstawić skrypt z tutka

Kod: Zaznacz cały

onClipEvent (load) {
	this.onRollOver = function() {
		this.onEnterFrame = function() {
			if (this._currentframe<this._totalframes) {
				this.nextFrame ();
			} else {
				delete this.onEnterFrame;
			}
		};
	};
	this.onRollOut = this.onReleaseOutside=function () { this.onEnterFrame = function () {if {this._currentframe>1) {this.prevFrame();} else {delete this.onEnterFrame;}};};
	}
				
Ale wyskakują błędy w compiler panels.

Nie da się tego zrobić łatwiej? Może jakiś banalniejszy skrypt podacie?:D
Help nie mogę ruszyć dalej z pracą;P

Plik źródłowy
http://www.sendspace.com/file/ysbhjn

Re: Button - RollOver

: pn mar 10, 2008 12:38 pm
autor: Marek_bf