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

  • Home
  • SEARCH
  • 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 4253098
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:54:04+00:00 2026-05-21T04:54:04+00:00

I am working on an application where an image serves as cursor. Now i

  • 0

I am working on an application where an image serves as cursor. Now i would like to know at any time over which object the cursor is hovering. Sort of like a HitTestObject(*) where i can then see what object the * represents. Does anyone have any idea how i could accomplish this? (and using the mouse is not an option)

  • 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-21T04:54:05+00:00Added an answer on May 21, 2026 at 4:54 am

    I have solved the problem already 🙂 since the cursor was in a different sprite than the others, i had to do it this way, because i couldn’t pass the objects to hover into an array.

            //First we will create a point that contains the x and y of this cursor.
            var _position:Point = new Point(x + (width/2), y + (height/2));
    
            //Secondly, we will get an array of elements that are under this point.
            var _objects:Array = parentApplication.getObjectsUnderPoint(_position);
    
            //If the length of the objectsList is longer than or equal to 2, we may assume that
            //there is an object
            if(_objects.length >= 2)
            {
                //Set the currentObject variable to the object the cursor is hovering over.
                //The minus two is simple. The cursor is always the last object under that point,
                //so we need the object before that.
                _currentObject = _objects[_objects.length - 2];
    
                //dispatch the event in the object.
                dispatchCursorEventToObject(EyeEvent.CURSOROVER);
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The web application I'm working on serves up images with URLs like /image?name=a.gif. Pages
I am working on a web-application in which dynamically-created images are used to display
I am working on an application which will store some entities which have name,
I'm currently working on posting a file from a C# application to an image
My application was working fine but I don't know how suddenly allow_url_fopen set OFF
For a long time now I have noticed something annoying when working on Web
I am working on an application which connects to the mail server using python
I have an android application i have been working on that downloads an image
I have an working application which i have tested in my ipod touch. Everything
I have working on an application which captures screen shots and create video from

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.