How to limit the area of custom mouse cursor

Dear friends,

I have a swf loaded in another context, I want to display a custom cursor (hand photo). IAM using the following code. his work very well in the loaded swf file. When I move the mouse to the bottom of the screen which is the navigation area in the actual frame the cursor should return to Flash the arrow cursor.

var hide_m:Boolean = true;

stage.addEventListener (MouseEvent.MOUSE_MOVE, handmove);

function handmove(event:MouseEvent) {}

trace (MouseY);

If (hide_m & & mouseY < 138) {}

Mouse.Hide ();

hand.gotoAndStop (1);

Hand.x = mouseX;

Hand.y = mouseY;

} else {}

showmouse();

}

}

function showmouse() {}

Hide hand pic and show mice...

hand.gotoAndStop (2);

}

It does not work, it shows the pic of the hand in the stadium. but when I move the background area that is more than 138, the normal cursor will not please help me.  to reduce the area to display the custom cursor...

Thanks in advance,

Syed Abdul Rahim

unless there is a Mouse.show () in the frame 2 of the hand, who won't have to work.  to remedy, run Mouse.show () in showmouse() and removing a hand from the display list (removeChild).

use addChild() and Mouse.hide in the first conditional branch of handmove

Tags: Adobe Animate

Similar Questions

  • How to limit the area of message are displayed only once times

    Hello

    I use the following script that makes a message box appears. The problem is that people are complaining that the message box displays several times and you have to continusly, click ok as 11 times for the message 'window javascript warning' go away.

    Can I use another script or reduce the number of times that the message?

    If {(this.rawValue > 132)

    xfa.host.messageBox ("leave Maximum is 132");

    this.rawValue = 132;

    Thank you!

    I don't know how to do this, but if this field is any dependent field using which it is calculeted, then the bound field could be used to set the value and then show the pop-up message.

  • limit the area of circulation MC

    I have a MC tank, then a background of tiles. Some of the areas on the scene (or tiles) I don't want the tank to be able to walk on. My first idea failed, that is:
    -put several MCs called Block1-7 on the stage where I really didn't float walk and then in my script of movement test any collision with one of the blocks and stop the movement. However this failed because it went so slow that flash couldn't handle.
    -My second attempt was to combine all the 'block' STM in a big clip the shape of the region, I wanted to unwalkable. It did not work because hitTest apparently through the bounding box and no where is the actual content of the clip. So the tank could never work because he was STILL inside the bounding box.

    So, how would limit the area that he could walk? Any ideas would be very appreciated. My code (which runs an enterframe by a white MC off the screen) is attached below.

    NOTE: the bottom, well made of tiles, is not created by actionscript
    NOTE ALSO: This isn't a game of tiles based with and map array, my character is more important than each tile so what im that is not an option
    What do you think?

    It's exactly what you're doing. you might knock block1, set your speed to zero and then continue to check the other blocks, repeatedly reset your speed. only the last block will have the desired effect.

    to remedy, if you hitTest() is set to true, use the break; to leave your loop hitTest() for.

  • How to limit the length of the texts on iOS9?

    Hello

    I just worked on why I am required by my mobile / cell phone provider EA.  They charge any text as a picture message / SMS, it is longer than 120 characters?  Does anyone know how to limit the length of the texts / SMS so that it is impossible to send a more 120 characters or create an alert so that you are aware of the number of characters in the text / sms?

    Thank you very much

    Hello Turnus123,

    Thank you for using communities of Apple Support.

    I see that you will have to pay for SMS more than 120 characters.  To help identify messages exceeds this amount, you can activate a number of characters in the message settings.  Simply go to settings > Messages and activate "number of characters".

    Message settings

    Take care.

  • How to limit the media sharing on my computer

    Original title: multimedia file sharing...

    How to limit the sharing on my computer, IE multimedia: music, images and other files from other computers on the network or cell phones that are capable of DLNA?

    Hello

     
    Please check the links given and see if they help.
  • How to limit the movement of my mc?

    I have a clip moving randomly... but I have a limit or a border on his movement...

    the problem is... the bondary is a round box and I do not know how to calculate the area...

    is it possible to make a script that says... within this certain object, they will move randomly...

    from now on, this is my code:

    var speed: Number = 4;                                             This object should not go beyond the limit
    object_mc.onEnterFrame = function() {}
    If (Key.isDown (Key.RIGHT)) {}
    This ._x = this ._x + speed;
    } Else if (Key.isDown (Key.LEFT)) {}
    This ._x = this ._x-speed;
    }
    If (Key.isDown (Key.UP)) {}
    This ._y = this ._y-speed;
    } Else if (Key.isDown (Key.DOWN)) {}
    This ._y = this ._y + speed;
    }
    };

    //////////////////////////////////////////////////////////////////////////////////////
    function getdistance (x, y, x 1, y1) {//and so that it
    var run mounted.
    Run = x 1-x;
    place = y1 - y;
    Return (_root.hyp (walking, mounted)) End Function
    }
    hyp (a, b) function {}
    return (Math.sqrt (a * a + b * b));
    }
    MovieClip.prototype.reset = function() {}
    Specify the width and height of the movie
    width = 650;
    height = 488;
    //-------------------
    var dist, norm;
    This.x = this ._x;
    This.y = this ._y;
    This.Speed = Math.random () * 4 + 2;
    This.targx = Math.random () * width;
    This.Targy = Math.random () * height;
    Dist = _root.getdistance (this.x, this.y, this.targx, this.targy);
    Norm = this.speed/dist;
    This.diffx = (this.targx - this.x) * norm;
    This.Diffy = (this.targy - this.y) * norm;
    };
    MovieClip.prototype.move = function() {}
    If (_root.getdistance (this.x, this.y, this.targx, this.targy) > this.speed) {}
    This.x += this.diffx;
    This.y += this.diffy;
    } else {}
    This.x = this.targx;
    This.y = this.targy;
    If (! this.t) {}
    This.t = getTimer();
    }
    If (getTimer () - this.t > 1000) {}
    This.Reset ();
    This.t = 0;
    }
    }
    This ._x = this.x;
    This ._y = this.y;
    };
    //////////////////////////////////////////////////////////////////////////////////////
    Stop();

    you defined r, centerX and centerY variables?  If so, show your code.

  • I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    Set a password to disk... disk tab in the utility... and just give to those you want to use the TC...

  • How to limit the email receipt/downloaded size?

    I need information on how to limit the size of an email received or downloaded in Windows Mail to reduce the cost of the enamel of satellite data. Want to just send and receive, especially to receive emails with no graphics and keep it small.

    Simply set up for this purpose a message rule: tools, Message rules, mail, new...
     
    Gary van, Microsoft MVP (Mail)
    ------------------------------------------------------

    "moosehuntingguy" wrote in the new message: * e-mail address is removed from the privacy... *
    I need information on how to limit the size of an email received or downloaded in Windows Mail to reduce the cost of the enamel of satellite data. Want to just send and receive, especially to receive emails with no graphics and keep it small.

    Gary van, MVP (Mail)

  • How to limit the number of printers can be installed on this computer by using Group Policy?

    How to limit the number of printers can be installed on this computer by using Group Policy?

    Hello

    Thanks for asking! If I understand correctly, you should limit the printers installed on the computer by using Group Policy. I suggest you follow the troubleshooting steps to check if this may help.

    The question you have posted is related to Technet and would be better suited to the Technet community. Please visit the link below to find a community that will provide the best support.
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • If I don't get creative cloud, how will limit the use of photoshop touch?

    If I don't get creative cloud, how will limit the use of photoshop touch?

    I don't think it will limit your work with PS Touch, but could enahnce it a little.

    Just try to free membership of 2 GB and find out:

    https://creative.Adobe.com/plans

    Thank you!

  • How to change the areas of region of report in read-only mode?

    How to change the areas of region of report in read-only mode?

    SKUD.

    Add fuction javascript after the page header (or section of function and Javascript variables)

    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
        }
      }).attr('disabled',pDisableFlag);
    }
    

    pRegionStaticId is static Id + the region

    Note that this code specifically disables only the berries of request. Disabled items are not available after the submission (and are therefore different from readonly). But any javascript page can change disabled or readonly points (client side), so you need to check on the side server to validate the data.

    You can disable items to help

    disableItems ("MY_REGION_ID", true);

    and allow them, by passing false

    disableItems ("MY_REGION_ID", false);

  • How to limit the number of connection to DB

    Hello

    I just go to the topic of connection pooling.
    Here, I would like to understand the number of details of connections that already exists in the database.

    Kindly guide me to know the following details.

    How to know the number of connections available in the database?
    How to limit the number of connections?

    V_$ Resource_Limit contains details of the sessions. Is this even for connections?

    I have more clarification on the difference of connections and Sessions.

    Kindly tell me the above.

    Thank you
    Orahar.

    Orahar wrote:
    Hello

    I just go to the topic of connection pooling.
    Here, I would like to understand the number of details of connections that already exists in the database.

    Kindly guide me to know the following details.

    How to know the number of connections available in the database?

    The number of currently active sessions (db, internal sessions registered)

    SELECT COUNT (*)
    SESSION $ v

    How to limit the number of connections?

    to increase or decrease the maximum number of connections:

    for example: change processes control system = 200 scope = spfile;

    >

    V_$ Resource_Limit contains details of the sessions. Is this even for connections?

    I have more clarification on the difference of connections and Sessions.

    Connection means a user process is successfully connected to the listener to have a session on the database running instance. (listener who listen s new connection requests)
    Establish sessions: means, a (dedicated) server process began to serve a user process. It is done when the credentials of the user authenticated successfully. Now, from process-user shall communicate to the server process directly.

    hope that helps.

    Kind regards
    X.

  • How to limit the length of the EditText control?

    All,

    How to limit the length of an EditText to accept ONLY 3 characters.

    The editText.characters property defines a size by default, but the user can always type more than 3 characters in the field.

    I got it!!!

    var win = new Window("dialog", "Limit 3");
    var txtLimit3 = win.add("edittext");
    txtLimit3.characters = 5;
    
    txtLimit3.onChanging = function (){
              howmany = txtLimit3.text;
              if (howmany.length > 3){
                        txtLimit3.text = "";
                        txtLimit3.textselection = howmany.slice(0,3)
                        }
              }
    
    txtLimit3.active = true;
    win.show();
    
  • How to limit the work area RAM Preview?

    Sorry for the typos, I'm German!

    My RAM Preview is not limited to the area of my work, and I couldn't find a way to change this behavior. Is there a preference to check or any other solution?

    I use (I know not what information is needed, so I'll list what I have in mind):

    Windows 7 64 bit,

    After Effects CS5 10.0.1.19.

    Intel Core 2 Duo 2.4 GHz,

    GeForce 9300M GS

    It would be great a response, so thank you in advance!

    The time in the Preview Panel option replaces the work area. Is - this option checked?

  • Same question "how to limit the story" old with FF 27.0.1

    Windows 7 Pro, FF 27.0.1, Adobe and Flash modules (and it's auxiliary)... just the basics. My box is a server as well as used for most ordinary tasks... mail, browsers, editors of documents, etc., is always 'on' and never 'idle '. It's the Add-ons that make these things why don't do anything on my box.

    It is, I know, is an old question, but outstanding, in my opinion. I revive this post:
    https://support.Mozilla.org/en-us/questions/799503?FPA=1

    First of all, let me say that I consider that the best time of the Firefox browser. I love the essential philosophy of Mozilla and Firefox customization by the user and the control, while respecting their need to ensure security and stability.

    OK, the issue is evident in the title, how can I limit history with Firefox? More recently, I observed when the activation and the deactivation of JavaScript in the preferences options has been removed. I have read the reasons of Bugzilla and Firefox and it was not difficult for me to open a topic: config tab next to a label containing a page I was working so I could see how the page without JavaScript. Once you know how, it was only a little more difficult that using the preferences options... which doesn't bother me really.

    The history limit is implicit in the browser itself, where, if you open the history window, you can see your history and (for me) see an option 'longer than six months' who, if you mouse over and right click will get an option 'remove '. I think that everyone who tries this blocking their browser and if something is deleted when you finally get to the top, it will be your cache.

    I know that the amount of history is set: config in the "places.history.expiration.transient_current_max_pages" as an integer parameter. Read many articles here in 'support' and personal judgment, I find that although the number can be increased, it cannot be decreased. If we do, it is up to the old definition as soon as Firefox is reopened.

    I read the blog referenced in the first link above: http://blog.bonardo.net/2010/01/20/places-got-async-expiration and it even seems outdated, containing references to places.history.expiration.max_pages, which is not the file in topic: config in 27.0.1

    In https://bugzilla.mozilla.org/show_bug.cgi?id=643254 , I read the debate on these changes where Marco Bonardo held firmly at his post while I find the comment of al_9x, discuss the issue with him. "You have removed features that people use and love, that been in Fx since its inception. It is you who need to justify deletion. "And your justification of" nobody really wants expire history "is a lie, people do and I explained why", to represent my feelings completely. I have no need or desire for the history of more than 3 months. It is tyrannical to limit the ability of Firefox users to limit their history. And no.... I have not create yet another account of Mozilla and 'vote '.

    There must be a way I and other users can limit (or increase) their history. So I ask "how?" This is, by design, to do this then I find a very disturbing trend, away from the philosophy of the user control and customization.

    If I'm missing something, please let know me. Please * don't * send me a bunch of standard items 'aid', because I read all. That is my question.

    Kind regards
    Axis

    You must create a new pref to around places.history.expiration.max_pages if you want to change the default behavior.

    You can watch the extension that I posted at the bottom of my answer above.

Maybe you are looking for

  • iCloud Photo Upload on Win/Mac

    Hello How will I know if all images have been uploaded successfully? I am about to download my entire library and don't want to eventually have duplicates or search manually if all goes well. Y at - it log files, etc.? Is there a difference when you

  • I'll be able to keep my bookmarks/passwords, if I re - install on another drive on the same PC?

    Hi guys. Thanks in advance for your help. In my view, the FF reader currently installed on is not long for this world then I would reinstall on another, new disk on the same computer. My bookmarks/passwords / profile / etc. will retain after the re -

  • Satellite Pro P300-19 q and WXP downgrade

    Hi all I need to buy a new laptop with windows XP on it. I was initially attracted by the Satellite Pro P300-19 q because of its ability to be downgraded to XP. However, I decided to do a quick serach first to see if someone had encountered problems

  • delete windows and install mac os x 10

    Hi, I have a MacBook Pro, and I've had mac os x and the partition recovery, but now there is no partition recovery and partition on my hard drive mac . I have just windows now Please let me know how can I Complatly remove windows and return to os X?

  • HP photosmart 110 prints not after setting in motion

    I have a hp photosmart 110 and we moved and set up the computer to the top in the same way but now nothing will print. Windows screens tell print but the printer queue shows all of my documents? How can I get both printing is complete?