A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: cursor change: please help me review my codes

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    22

    cursor change: please help me review my codes

    i'm not sure hopw to go about changing the custom cursor1 into custom cursor2 on mouseover the blue rectangles. Do i use functions?
    Please help me coz i'm doing my final semester school project.
    please review my source file

  2. #2
    Senior Member
    Join Date
    Aug 2002
    Posts
    108

    ...

    I would help you but the link doesnt work...

    However, Im assuming your user a MovieClip as your cursor, if not change it to one.
    -On the first frame of your movie place the first cursor image. Also on frame one place a stop command (i.e. 'stop()').
    -On frame do the place the image for your 2nd cursor. Place the stop command on this frame also.
    -name this movieclip 'cursor' in the instance pallet.
    -On the 'blue box' your talking about, which should be a button, place the command:
    -----------------
    on (rollOver) {
    tellTarget ("cursor") {
    gotoAndStop (2);
    }
    }
    on (rollOut) {
    tellTarget ("cursor") {
    gotoAndStop (1);
    }
    }
    -----------------

    I think that should do the trick!!! Good luck on your final project
    Last edited by FlashManNate; 10-23-2002 at 10:09 PM.
    http://board.flashkit.com/board/show...hreadid=353279
    Soon to release! Please give a site check.

  3. #3
    Junior Member
    Join Date
    Sep 2002
    Posts
    22
    weird, the link works for me....

    anyway, thanx for the tips... I think i somehow got the logic... gotta try it out...

  4. #4
    Junior Member
    Join Date
    Sep 2002
    Posts
    22
    do i put this

    onClipEvent(load) {
    Mouse.hide();
    }

    onClipEvent (mouseMove) {
    this._x = _root._xmouse;
    this._y = _root._ymouse;
    updateAfterEvent();
    }

    on the "cursor" mc itself?

  5. #5
    Junior Member
    Join Date
    Sep 2002
    Posts
    22
    got it working. Thanx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center