A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help with custom cursor problems and masking

  1. #1
    Senior Member
    Join Date
    Sep 2003
    Location
    Arizona
    Posts
    100

    Help with custom cursor problems and masking

    I need a tiny bit of help doing this piece in a Flash movie I'm creating for someone. I have two bitmaps. One of these is just a normal old picture on the stage. The other is the same picture inverted. What I want to do is have a crosshair on the stage that when moved around 'unveils' the inverted picture. I have run into a few problems. Well really the only problem I have is this

    1) I make the custom mouse a mask that unveils the picture.
    Problem: I cannot get the crosshair to follow the mask...it stays put in the same place.

    2) I make the crosshair the custom mouse.
    Problem: I can't figure out a way to unveil the picture.

    I have tried putting the same actionscript I use for my custom mouses on both movie clips, but then it doesn't work at all.

    While this all may sound very confusing I am going to attach the file so that you may take a look at it. This might help you all understand to help me .

    BTW the actionscript I am using on the custom mice is:

    code:

    onClipEvent (load) {
    Mouse.hide();
    startDrag(this, true);
    }



    Thanks, Vendian.
    Attached Files Attached Files
    For all of you who don't know, use (AS) and (/AS) in your post and put your actionscript in them, it makes it easier to read. (replace ( and ) with square brackets)

  2. #2
    Senior Member
    Join Date
    Feb 2002
    Location
    Lebanon
    Posts
    573
    on the mouse cursor instance youave to put another code (keep the same code for the mask)
    the code to be placed ON the custom mouse cursor instance:
    code:

    this.onEnterFRame = function()
    {
    this._x = _root._xmouse;
    this._y = _root._ymouse;
    }



    I didn't open your file, but i think this will solve your problem.
    that's it.

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