Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member paultechdocs's Avatar
    Join Date
    Feb 2010
    Location
    Barcelona
    Posts
    7
    Member #
    21251
    Hi, i have 4 butones made on flash.,now i have a customize pointer also,that drugs on my movie,and now i want to do when i pass with my pointer on rollover at the butones,to change my hand pointer into the one that ihave made_
    movie hand pointer.
    wich are the actions that i have to give?
    i have this code with as 3.0 until now.this code is only for my pointer mouse that i have.
    Mouse.hide();
    pointer_mc.startDrag("true");
    Mouse.hide();
    pointer_mc.startDrag(true);
    this.onMouseMove = function ()
    {
    if (_xmouse < 4 || _ymouse < 4 || _xmouse > Stage.width - 4 || _ymouse > Stage.height - 5)
    {
    pointer_mc._alpha = 0;
    }
    else
    {
    pointer_mc._alpha = 100;
    } // end else if
    };

    whats the code that i have to give for the movie handpointer_mc to work when i rollover a buton to show mine,and not the browser one white.

    thanks guys!

  2.  

  3. #2
    Junior Member System's Avatar
    Join Date
    Apr 2010
    Posts
    20
    Member #
    21778
    That code will only work for AS2.0

    For using AS3.0 you will need:
    Code:
    stage.addEventListener(MouseEvent.MOUSE_MOVE, dragCursor);
    button.addEventListener(MouseEvent.MOUSE_OVER, mouseisOver);
    button.addEventListener(MouseEvent.MOUSE_OUT, mouseisOut);
    function dragCursor(event:MouseEvent):void {
        Mouse.hide();
        cursor.x = mouse X;
        cursor.y = mouseY;
    }
    
    function mouseisOver(event:MouseEvent):void {
        cursor.gotoAndStop(2);
    }
    function mouseisOut(event:MouseEvent):void {
        cursor.gotoAndStop(1);
    }
    NOTE: You will have to remove the space between mouse and X in the 6th line.

    In your Cursor movie clip, on the 1st frame will be the default cursor, and in the 2nd frame it will be what you want the cursor to be when you Mouse Over.

    Assuming, your cursor MovieClip is called 'cursor'
    and Assuming your button is called 'button'

    You can change these to whatever you have them called as.
    I'm not going to bother to describe what it all means, because hopefully it is straight-forward. But if you need an explanation, I will.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:20 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com