Flash Mouse Effects


In this section lets play with mouse cursor in Flash. You can do the following:

  • Mouse hide, show in Flash
  • Mouse Trailers in Flash
  • Creating Custom Mouse Pointer in Flash

Mouse hide, show

You can show or hide mouse by using following scripts.

Mouse.show();
Mouse.hide();

Mouse Trailers

Name Trailer

At blank stage place this action script.

Text = "Javed Khalil Hiroshi";
letters = Text.split("");
letterformat = new TextFormat();
letterformat.font = "Verdana";
letterformat.align = "center";
letterformat.size = "10";
spacing = 8;
speed = 3;
for (var LTR = 0; LTR<letters.length; LTR++) {
mc = _root.createEmptyMovieClip(LTR+"l", LTR);
mc.createTextField(letters[LTR]+"t", LTR, LTR*spacing, 10, 20, 20);
with (mc[letters[LTR]+"t"]) {
text = letters[LTR];
setTextFormat(letterformat);
selectable = false;
}
if (LTR) {
mc.prevClip = _root[(LTR-1)+"l"];
mc.onEnterFrame = function() {
this._x += (this.prevClip._x-this._x+5)/speed;
this._y += (this.prevClip._y-this._y)/speed;
};
} else {
mc.onEnterFrame = function() {
this._x += (_root._xmouse-this._x+10)/speed;
this._y += (_root._ymouse-this._y)/speed;
};
}
}

Creating Custom Mouse Pointer

Action on first frame
startDrag("/my mouse", true);
Mouse.hide();
Action on Mouse movieclip
onClipEvent (load) {
Mouse.hide();
}

While my mouse is mouse pointer movieclip name.

Download Custom Mouse Pointer Example

Download Mouse Trailers

Mouse Following Objects – Download Examples

Download Duplicate Movieclip Example

Related Posts


Leave a Reply

Your email address will not be published. Required fields are marked *