Strona 1 z 1
Kursor z ciekawym efektem
: ndz gru 30, 2007 7:33 pm
autor: leszek_N
Mam problem z efektem kursora, który składa sie z dwoch symboli kursor i pomocniczego pod którym jest podpienty kod:
Kod: Zaznacz cały
onClipEvent(enterFrame){
_root.xmysz = _root._xmouse;
_root.ymysz = _root._ymouse;
i++;
_root.kursor.duplicateMovieClip( i, i);
setProperty("/" add i, _x, _root._xmouse);
setProperty("/" add i, _y, _root._ymouse);
}
Marku jak cos dokładnie do pliku fla kiedyś wysłałem
Re: Kursor z ciekawym efektem
: ndz gru 30, 2007 7:57 pm
autor: Marek_bf
Ale ja nie wiem w czym jest problem. Co chcesz osiagnąc?
P.S BBcode dla as to [ code ][ /code ]
Re: Kursor z ciekawym efektem
: ndz gru 30, 2007 8:51 pm
autor: leszek_N
Chce osiągnąc !! Aby za ruchem myszki kursor sie powielał i znikał po jakimś czasie
Re: Kursor z ciekawym efektem
: ndz gru 30, 2007 10:42 pm
autor: Marek_bf
Ma scenie MC o instancji kursorMc w bibliotece dla tego obiektu linkage kursorMC. W pierwszej klatce kod:
Kod: Zaznacz cały
var newMc:MovieClip;
var newDepth:Number;
var newName:String;
var speed:Number = 5;
this.onMouseMove = function() {
Mouse.hide();
kursorMc._x = _xmouse;
kursorMc._y = _ymouse;
newDepth = this.getNextHighestDepth();
newName = "mc" + newDepth;
newMc = this.attachMovie("kursorMc", newName, newDepth, {_x:_xmouse, _y:_ymouse});
kursorMc.swapDepths(this.getNextHighestDepth());
newMc.onEnterFrame = function() {
this._alpha = this._xscale = this._yscale -= speed;
this._yscale <= 0 ? this.removeMovieClip() : null;
};
updateAfterEvent();
};