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 7553997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:12:59+00:00 2026-05-30T11:12:59+00:00

Is it possible to change the state of a mouse using actions script. So

  • 0

Is it possible to change the state of a mouse using actions script. So if the user clicks and holds down the left mouse button MOUSE_DOWN is it possible for actionscript to change the mouse state to MOUSE_UP without the user releasing the mouse?

I have a MouseEvent.MOUSE_DOWN

stage.addEventListener(MouseEvent.MOUSE_DOWN, start);

but in the start function I would like to set the mouse state to MOUSE_UP even if the user holds down on the button.

function start ():void {

      trace("You have pressed the mouse button");
      //SET MOUSE TO MOUSE_UP
}
  • 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-05-30T11:13:01+00:00Added an answer on May 30, 2026 at 11:13 am

    You cannot make mouse button unclicked , but You can dispatch MouseEvent.MOUSE_UP on clip without any mouse interaction .

    clip.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_UP));
    

    But manualy dispatch needs to add mouse x and y values.

    also , note that You can use function :

    var dspArray:Array = stage.getObjectsUnderPoint(new Point(stage.mouseX,mouseY));
    for each(var dsp:DisplayObject in dspArray){
        dsp.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_UP));
    }
    

    but dont forget that when user will release mouse button , it will also dispatch MouseEvent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an lib which tracks user events, like button click, state change,
Is it possible to change the font size used in a ContextMenu using the
Is it possible to change the frame title when using \againframe from the Beamer
Is it possible to change current directory from a script? I want to create
Is it possible to change the state of a toggle function? Like: myDiv.toggle ...
How can I change state for dozen issues in few clicks in TFS? I
Is it possible to change appearance for selected (not in drop down!) item? combobox.ForeColor
Possible Duplicate: Change CSS Dynamically I need to change the height of a div
Is it possible to change the width of a scroll bar on a form.
Is it possible to change a Sharepoint 2007 Site Theme through a Web Service?

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.