How to get  x and y coordinates in the info pane through PS API

Hi all,
I'd like to get the x,y coordinates of cursor pointer while mouse moving, just like the info pane do.
Can anyone tell me how to achieve this?

If you are using Actionscript 3 you should
1) Use event listeners to detect mouse-down and mouse-up
events on the movieclip.
2) Set up functions to drag and drop the movieclip.
3) In the drop function get the x and y position of the
movieclip and
4) trace it out or put the values into dynamic textfields.
Here's a simple example. The code is on the first frame of
the timeline
myMC.addEventListener(MouseEvent.MOUSE_DOWN,
startDragSquare);
myMC.addEventListener(MouseEvent.MOUSE_UP, stopDragSquare);
function startDragSquare(evt:MouseEvent):void
this.startDrag();
function stopDragSquare(evt:MouseEvent):void
this.stopDrag();
var xpos = this.x;
var ypos = this.y;
trace ("X: "+xpos+", Y: "+ypos);
}

Similar Messages

  • How to get help and help others on the Spotify Community!

    So I thought I would make this informal, light-hearted post about how to help other and get help on the community :)
    A Community is About Mutual Relations
    This means that people help you, so that you help them. You share your newly gained knowledge, so others can benefit. You get help, and then you help others by replying to their topics.
    It Always Pays to be Polite
    People will want to help you more if you are polite, with no swearing or hate speech. We all get annoyed from time to time, and some get annoyed more than others. We understand that the product you're paying for isn't working, but screaming, shouting and swearing about it won't help. Be polite, and help will come.
    Always Pack as Much Information in as Possible
    Often I am trying to help others, and there is just not enough info posted for me to help them well. This slows down the support they can get, which makes them further annoyed. To solve this issue post as much info as you possibly can:
    Any error messages
    A description of what is happening
    What have you tried to do to fix it
    What happened when you tried to fix it
    Oh, a screenshot always helps ;)
    Don't Post Personal Info
    Almost every day I have to report a post for containing an email address, telephone number and sometimes even the users home address. Apart from being against the community guidelines, this is rather stupid. These forums are public, and any person, bot, stalker or alien entity can see it. So just don't post them - it would save everyone's time ;)
    Payment Issue? Don't come to us ;)
    Payment issues cannot be dealt with on the community, unfortunately, as we don't have access to your Spotify account or details. You should use the Support Form to contact the customer services team, and they will get back to you (eventually).
    Post in the correct section!
    I am forever moving posts over to the correct sections. Please - post in the correct section to begin with. If you need help, post in the help forums, and post in the relevant help forum. You will get a quicker response if you post in the right section ;)
    Post in the Correct Thread
    Most common issues already have a thread, but people don't seem to be able to see them. If you have deleted a playlist post in the deleted playlist thread!
    Make Sure you Accept a Solution!
    I don't really like having to accept a solution for others, as I don't know for sure whether or not it was actually the solution, but the OP of the thread doesn't do it - so who is?
    Give Kudos!
    Kudos is like a pat on the back. Everyone gets a nice feeling when they gain a kudo. Please kudo regularly - they cost nothing and mean everything ;)
    I think that's it...
    If I have forgotten anything don't be afraid to send me a private message about it!

    cluelessjoe wrote:
    I WANT TO KNOW IF I PAY FOR THE 10 DOLLAR SERVICE, CAN I DOWNLOAD MY PALYLISTS ..I HAVE OVER 11,000 SONGS ALMOST 11,500 SONGS .. WILL MY LAP TOP CRASH AFTER I DOWNLOAD THEM FOR PLAY OFFLINE ..I DO HAVE A BACKUP DISK ..... THANK U SO VERY MUCH ..I DIG SPOTIFY .. I AM NOT INTO LOSING ALL MY SONGS OR HAVING MY LAP TOP CRASH .. THANKS   CLUELESSJOE !!
    Hey! Welcome to the community :) 
    If you have 11,000 songs in a Spotify playlist (not as local files you own) you won't be able to mark them all to be available offline, since Spotify limits each device to 3,333 offline stored tracks due to licensing restrictions. 
    Peter

  • How to get quick and efficient help in the Community

    We have provided the Community so that our users can post questions and answers to assist one another, and to allow users to read and learn from questions posted by other users.
    To further assist with the collaboration, our community has Kudos and Solution buttons on each post, to reward great posts and answers which resolve a question.
    We encourage all of our users to give Kudos to good answers they find on the community and for posters to click the Solution button on any answer which resolves their question.
    Here are some tips you can use when getting started in the community. We would suggest looking in two places before you post a question.
    First, look at our knowledge base.  We have provided answers to many of the commonly asked questions here,
    If your question is not answered in the knowledge base, please use our built-in search functionality to see if anyone has posted a similar question and been answered.
    For Google Chrome specific issues, you may want to search the Google Chrome Support page.
    Finally, if you are unable to resolve your question with the knowledge base or the search feature, you may want to post your own question.  Following the below steps will allow everyone in the community to have a large amount of knowledge about your system and your question.
    Be sure that you include what product model you have.
    Include the operating system that you have on your product.
    If you have upgraded or changed the operating system, include that information.
    Clearly and specifically discuss the problem that you are having, including how to reproduce it.
    If there are error messages, include them as they appear on the screen.
    Applications you are having difficulty with should be listed.  If you have the version number that is helpful.
    Be patient while you wait for an answer.  This community is about users assisting users.

    Hello Bcorfman
    This page:
    http://community.acer.com/t5/Discussion-Forums/ct-p/boards
    Shows you all the boards in the forum.  Simply choose the appropriate board. For example, if you have a problem with your laptop, you would choose Notebooks & Netbooks. Then click the "New message" tab at the top left and you can start your own thread.

  • How to get property and show itself in the Operator interface

    Hello, I suppose it's simple but I don't know to do.
    With Labview opertor interface, I would like to get a property of a step, for example the serial number or a local variable, and show its value in an labview indicator. Only that.
    Thanks.

    Hi,
    You can use UIMessages. See http://zone.ni.com/devzone/cda/tut/p/id/4532
    Example show you how to for TS 3.0 or greater
    Regards
    Tom Andres Lomsdalen, CTD

  • My boyfriend purchased the new operating system for the mac book pro it was send to his email but we cant figure out how to get it and download it from the email

    how do we download our operating system purchase from our email it was sent to?

    You should have received a redemption code via email if you purchased Lion or Mountain Lion that would allow you to download the OS via the Mac App Store. If you purchased an earlier version it would come on discs, usually model-specific.
    Call back with some more information...
    Clinton
    MacBook Pro (15-inch Late 2011), OS Mavericks 10.9.4, 16GB Crucial RAM, Crucial M500 960GB SSD, 27” Apple Thunderbolt Display

  • How do I get the downloaded music on my iphone to my new home pc and itunes, it took the info from the 1st device but not the 2nd

    how do I get the downloaded music on my iphone to my new home pc and itunes, it took the info from the 1st device but not the 2nd

    the appletv will not display your movies in folders.
    you could change the tags in itunes to include the genre in the "show" field in the "video" tab. this would replicate the view you want, but you will need to tag all your movies to do this.

  • How to get gui_download and gui_upload with popup filename?

    how to get gui_download and gui_upload with popup filename?

    Here is a short example.
    report zrich_0003 .
    data: ifiletab type filetable.
    data: xfiletab like line of ifiletab.
    data: xstring type string.
    data: rc type i.
    data: itab type table of string.
    data: xtab type string.
    start-of-selection.
      call method cl_gui_frontend_services=>file_open_dialog
        changing
          file_table              = ifiletab
          rc                      = rc.
      read table ifiletab into xfiletab index 1.
      xstring = xfiletab-filename.
      check not xstring is initial.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = xstring
      changing
        data_tab                = itab.
      loop at itab into xtab.
        write:/ xtab.
      endloop.
    Regards,
    Rich Heilman

  • How to get nodes and its attributes of an XML file usiong DOM parsing?

    how to get nodes and its attributes of an XML file usiong DOM parsing?
    i am new to XML parsing.......
    Thanking you........

    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;      ...
    //Setup the document
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         Document doc = docBuilder.parse (new File("MY_XML_FILE.xml"));
    //get elemets by name
         String elementValue = doc.getElementsByTagName("MY_ELEMENT").item(0).getTextContent();
    //This method can return multiple nodes, in this instance I get item(0) , first nodeRead the api for other methods of getting data.

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • How to get sensitivity and units from TEDS

    Hi.
    First, I hope I have posted this in the most suitable board.
    Recently I got involved in a project at my university as a programmer for a research group which study modal analysis. They are utilizing National Instrument measuring equipment and TEDS compatible accelerometers. This research group want to make measurements with a sensor array consisting of (around) 50 accelerometers. They want to make the measuremnts in MatLab with the session based interface in the data aquition toolbox.
    The thing is that im developing an interface between MatLab and NI-DAQmx which can be utilized by my mex built-in MatLab functions (C/C++ language). Up until now I have been able to extract basic TEDS of several individual sensors and return this to MatLab as a MatLab struct. But I'm having trouble with getting information about the sensor type (accelerometer, microphone, etc...), the sensitivity of the sensor, and the physical units of sensitivity. This information I would like to use to auto setup channels in MatLab DAQ-toolbox, such that I only have to scan the array of available sensors, and then set each channel up in my MatLab-DAQ session.
    I have been looking at functionality in the NI-DAQmx C reference -> C Properties -> Physical Channel Properties under TEDS. Here I found functionality for retreiving basic TEDS information which works great, furthermore I found functionality for retreiving the TEDS bitstream and templateID, but I'm having trouble decoding information. My reference for decoding information from the TEDS sensor is IEEE 1451.4 and The IEEE 1451.4 Standard for Smart Transducers but the data return from NI-DAQmx functions does not seems right.
    In desperation for a solution to this problem I have looked at  NI-DAQmx C reference -> C Properties -> Channel Properties which I didn't have any luck with either for retrieving the required information.
    I have also been searching this forum and google for something that might give me hint on how to retrieve information and if neccesary decode the information required.
    The reason for being so hardheaded about solving this problem is that, when I use NI MAX software to read sensors TEDS info, it is possible for NI MAX to retrieve information that I require. And to knwoledge is NI MAX using NI-DAQmx interface to communicate with the hardware, so this should not be impossible to do.
    Hope someone can give me some hint on how to go around/solve this problem.
    Regards,
    Kent

    text should be doable, not so sure about images:
    http://blog.cutterscrossing.com/index.cfm/2007/12/3/CF8-PDF-Manipulation-Pulling-Text-Out
    http://www.coldfusionjedi.com/index.cfm/2007/7/24/ColdFusion-8-Working-with-PDFs-Part-7
    there are also a few java libs (fairly easy to integrate w/cf) around that a
    google search should turn up.

  • How to get tools and other bars back in view after deleting show-bar?

    How to get tools and other bars back in view after deleting show-bar?

    Hello Jouko.
    You can go into View > Toolbars and select the ones you want to see. If you can't see the menu bar you can simply tab ALT on your keyboard (I think F10 works too) to show it.

  • How to get max and min salary in a table

    How to get max and min salary in a table

    SQL> select max(sal),min(sal) from emp;
      MAX(SAL)   MIN(SAL)
          5512        800
    SQL>

  • How to get instrument and plug in files to logic8?

    How to get instrument and plug in files to logic8?
    I lost mine in a hard drive crash.
    I cant use my DVD jam pack
    This is my spec
      Modellnamn:          iMac
      Modellidentifierare:          iMac8,1
      Processornamn:          Intel Core 2 Duo
      Processorhastighet:          2,4 GHz
      Antal processorer:          1
      Totalt antal kärnor:          2
      L2-cache:          6 MB
      Minne:          3 GB
      Busshastighet:          1,07 GHz
      Boot ROM-version:          IM81.00C1.B00
      SMC-version (system):          1.29f1
    iMac, OS X Mountain Lion (10.8.2)

    I think you want to get the latitude and longitude information of client accessing the web application. In the web application you cannot directly get the client location information as the nature of the web application is different from windows applications.
    I advise you to develop a Silverlight component and in that Silverlight component use geolocation classes to get client location. Please refer this article for getting data in Silverlight http://www.c-sharpcorner.com/UploadFile/82b980/getting-geo-location-of-user-in-silverlight/
    And once you get the location information you can send that data back to ASP.net webpage or call any javascript method as shown here http://ovaismehboob.wordpress.com/2013/06/22/bridging-data-between-asp-net-and-silverlight/
    Hope this helps!
    Ovais Mehboob Ahmed Khan http://ovaismehboob.wordpress.com

  • Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

  • FINAL CUT PRO X (the latest version). I'm trying to upload my video to Youtube, I am getting flashing and orange bar in the frame timeline. How to make it STOP!?

    FINAL CUT PRO X (the latest version). I'm trying to upload my video to Youtube, I am getting flashing and orange bar in the frame timeline. How to make it STOP!? It looks like it's rendering somthng but I just want it to stop flashing. I hope it didn't mess up the video...

    You're in totally the wrong place...  this is the Mac Pro (no Book) forum for hardware.  You want
    Final Cut Pro X: Professional Applications: Apple Support Communities
    Hopefully, FCP X has an autosave feature Like Final Cut Pro Studio so that you may already have a recent copy.  If I were in your shoes, I'd try an ESC or something similar before going to a Forced Quit.
    Good luck

Maybe you are looking for