Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8983179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:46:31+00:00 2026-06-15T20:46:31+00:00

In my application i have a mouse cursor which is attached to the mouse.

  • 0

In my application i have a mouse cursor which is attached to the mouse. However it will not let me click on buttons within my application which is a big problem for me as buttons are essential in what i need to do.

I am new to AS so any help would be much appreciated!

stage.addEventListener(MouseEvent.MOUSE_MOVE, draw_cursor);
stage.addEventListener(Event.MOUSE_LEAVE, hide_cursor);

Mouse.hide();

function draw_cursor(event:MouseEvent):void
{
    my_cursor_mc.visible = true;
    my_cursor_mc.x = event.stageX;
    my_cursor_mc.y = event.stageY;
}


function hide_cursor(event:Event):void
{
    my_cursor_mc.visible=false;
}

i tried using this (below) but was very glichy and had to press button for cursor to go away THEN i was able to click on the button (not really ideal):

stage.addEventListener(MouseEvent.CLICK, hide_cursor);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:46:33+00:00Added an answer on June 15, 2026 at 8:46 pm

    Sounds like your cursor might be stealing the mouse events for your buttons. In your top level code (or constructor) try adding:

    // Disable mouse events for cursor    
    my_cursor_mc.mouseEnabled = false; 
    

    If you mouse event has any child objects also add:

    // Disable mouse events for any children of the cursor
    my_cursor_mc.mouseChildren = false; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a silverlight application in which I replaced the Mouse Cursor with a
I have seen an application named camera mouse which enables movement of cursor with
I have a calculator application in java swing, which is working properly with mouse
Is is possible to have right-mouse-click entries only appear when my application is running?
I have a fullscreen application running on Windows CE 6.0 which will only be
I'm trying to develop an application that, when running, will hide the mouse cursor
My application have a service and an activity. Sometimes the service will send a
In my console application have an abstract Factory class Listener which contains code for
I have application which uses Sherlock ActionBar package. The application uses platform-specific behavior for
I have a WPF4 application i have 1 window which editing data : main

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.