A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Custom Cursor

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    149
    Hey guys

    Have a little problem

    Am making this little movie and have created a custom cursor, but with this custom cursor i want to pick another MC up and drap it, which is fine, but when i do it drops the cursor. Is there away to have the cursor remain draging and still be able to drag the other MC?

    Regards
    Steve

  2. #2
    forever Newbie brunodario's Avatar
    Join Date
    May 2002
    Location
    Brasil
    Posts
    256

    100% no

    I'm 100% sure there's no way flash can drag 2 objects at the same time. You'll have to choice...the cursor or the dragable MC. IMHO i think that custom cursos only have certainlly "impact" on very specifics sites. Think bout it

  3. #3
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    First here is how to create a custom cursor;
    create a new movieclip with the movieclip you want to be the new cursor. give the cursor a instance name - myCursor. On frame 1 of this new mc, put this code
    Mouse.hide();
    this.onEnterFrame = function(){
    myMouse._x+=(_xmouse-myCursor._x);
    myMouse._y+=(_ymouse-myCursor._y);
    }

    Now place the new movieclip on the stage.
    Then for the draggable part;
    the movieclip that you want to drag, should be a button.
    the script to make it draggable is
    on(press){
    statDrag(this);
    }
    on(release){
    stopDrag();
    }

    If you like I can create a fla to show you this
    leave your email in your reply

  4. #4
    forever Newbie brunodario's Avatar
    Join Date
    May 2002
    Location
    Brasil
    Posts
    256

    resolved Send ME the fla

    Hey... here's my mail

    brunodario@hotmail.com

    If you're able to make TWO drags at the same...well i wanna see it..this code you post doesn't make it possible!

  5. #5
    Senior Member
    Join Date
    Dec 2000
    Posts
    149
    Just bring this up again

    you will see what i am refering to when you see this movie

    http://www.domainconceptdesigns.com/...flashzoom.html

    as you can see once you click the mouse it looses the drag of the mouse pointer. I have set it up so that it will snap back after release but i would prefer that it follow the MC i am dragging

    Any ideas?

    Regards
    Steve

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