phax
03-12-2003, 02:29 AM
i've playing around with these turtorials and trying
to make a custom pointer with a mouse trail..
everyting works fine except that the mouse trail
is on top of the pointer!
like this (http://www.users.bigpond.net.au/phixion/mouse_trail.html)
I have this code on the mouse trail mc;
onClipEvent (mouseMove) {
i++;
this.duplicateMovieClip("flare"+i, i+10);
_root["flare"+i]._x = _root._xmouse;
_root["flare"+i]._y = _root._ymouse;
}
onClipEvent (enterFrame) {
if (this._name == "flareMC") {
_visible = 0;
} else {
this._alpha -= 5;
this._rotation += 2;
this._xscale -= 5;
this._yscale -= 5;
if (this._alpha<=5) {
removeMovieClip(this);
}
}
}
And this on the mouse pointer mc
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
setProperty(this, _x, _root._xmouse);
setProperty(this, _y, _root._ymouse);
updateAfterEvent();
}
any clue?
to make a custom pointer with a mouse trail..
everyting works fine except that the mouse trail
is on top of the pointer!
like this (http://www.users.bigpond.net.au/phixion/mouse_trail.html)
I have this code on the mouse trail mc;
onClipEvent (mouseMove) {
i++;
this.duplicateMovieClip("flare"+i, i+10);
_root["flare"+i]._x = _root._xmouse;
_root["flare"+i]._y = _root._ymouse;
}
onClipEvent (enterFrame) {
if (this._name == "flareMC") {
_visible = 0;
} else {
this._alpha -= 5;
this._rotation += 2;
this._xscale -= 5;
this._yscale -= 5;
if (this._alpha<=5) {
removeMovieClip(this);
}
}
}
And this on the mouse pointer mc
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
setProperty(this, _x, _root._xmouse);
setProperty(this, _y, _root._ymouse);
updateAfterEvent();
}
any clue?