How to get event.target/event.currentTarget for HTML-5 canvas for click handler

Hi,
I hope everyone is doing great.
I belong to Actionscript background and just started on Flash CC HTML-5 canvas.
How to get event.target or event.currentTarget in Flash CC for HTML-5 canvas for click event.
Like we used to do it in AS 3.0
btn.addEventListener(MouseEvent.CLICK , go);
function go(evt:MouseEvent){
   trace(" evt - "+evt.currentTarget); // It will let us know the clicked target
For  HTML-5
btn.addEventListener('click' , go.bind(this));
function go(evt){
   console.log(" evt - "+evt.????t); // what is the correct syntax here?
Thanks,

Hey guys found the answer from stackoverflow
it is - evt.target

Similar Messages

  • How to get the object class field value in CDHDR table for vendor

    hi
    how to get the object class field value in CDHDR table for vendor

    Try KRED/KRED_N as object class in CDHDR for Vendor.

  • HT2931 I am trying to figure out how to get the pre made "beats" with my garage band for my MacBook Air can u help

    I am trying to figure out how to get the pre made "beats" with my garage band for my MacBook Air can u help

    Hello Mattxy2,
    Thank you for the question. It sounds like you would like to add some Apple Loops to your project.  I recommend reviewing the following sections in Garageband Help:
    GarageBand Help - Search for Apple Loops
    http://help.apple.com/garageband/mac/10.0/#gbnd3002ab64
    GarageBand Help - Add Apple Loops to your projects
    http://help.apple.com/garageband/mac/10.0/#gbndc1d3db81
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to get the pricing hierarchy based on the delivery date for sales order

    Hi,
    How to get the pricing hierarchy based on the delivery date for sales order other than system date.
    My requirement is to get the Pricing hierarchy based on the delivery date other than system date.
    Waiting for kind response.
    Best Regards,
    BDP

    HI Sai,
    please refer teh document already how to write FM based extration on generic extractors.
    and here  the logic to find the latest records values:-
    -> get the data in an internal table
    ->Sort the internal table data based from date descending
    -> Using READ statement , we can read the first record of the table which is nothign but your latest record.
    Regards.
    Sakthi

  • I bought two films on my ipod tough 4g ( normally comes up on my ipad if i have bought something on my ipod) but i dont know how to get the two films on my ipad without paying for them.

    I bought two films on my ipod tough 4g ( normally comes up on my ipad if i have bought something on my ipod) but i dont know how to get the two films on my ipad without paying for them.

    Movies work differant than TV shows, music and apps. With movies, to get them from one device such as an iPod Touch to an iPad, you would need to connect the Touch to your computer first and in iTunes under the file menu, hit transfer purchases. Next connect the iPad and you can sync the movie to the iPad.
    While the iPad is connected to the computer, in iTunes, click on the iPad in the left pane and when the screen loads, click movies and from there, you can select the movie that you want to sync.

  • How to get the source code of an HTML page in Text file Through java?

    How to get the source code of an HTML page in Text file Through java?
    I am coding an application.one module of that application is given below:
    The first part of the application is to connect our application to the existing HTML form.
    This module would make a connection with the HTML page. The HTML page contains the coding for the Form with various elements. The form may be a simple form with one or two fields or a complex one like the form for registering for a new Bank Account or new email account.
    The module will first connect through the HTML page and will fetch the HTML code into a Text File so that the code can be further processed.
    Could any body provide coding hint for that

    You're welcome. How about awarding them duke stars?
    edit: cheers!

  • How to get the source code of an HTML page in Text file Through J2EE

    How to get the source code of an HTML page in Text file Through J2EE?

    Huh? If you want something like your browser's "view source" command, simply use a URLConnection and read in the data from the URL in question. If the HTML page is instead locally on your machine, use a FileInputStream. There's no magic invovled either way.
    - Saish

  • Screen personas for HTML in NWBC for Desktop

    Hi,
    Is it possible to use the webgui and therefore screen personas for HTML in NWBC for desktop. We are using a theme in webgui which we would like to use in NWBC in combination with a theme for WDA using theme designer.

    Both SAP Screen Personas stacks are heavily based on the internal ITS of AS ABAP. SAP GUI for HTML aka webgui is one service, granted a major one, within the internal ITS. SAP Screen Personas seems to have separate theming options which would suggest incompatibility with UI Theme Designer. Maybe the UI Theme Designer and Screen Personas experts from SAP can comment, pinging Uwe Klinger and Tobias Queck. That said I think you should be able to use UI Theme Designer for webgui, as long as you use Unified Rendering Lightspeed controls. See SAP note 1852400 for details. You may have to use the sap-theme parameter and make sure you have the latest Unified Rendering corrections.

  • How to get the cancel event of inlineDocument-style dialog.

    Hi experts,
    My customer has a question about ADF dialog framework.
    When we open new inlineDocument-style dialog from af:commandButtton, how can we get dialog cancel event?
    [Sample code]
    <af:commandButton id="cb2" action="dialog:test"
    windowModalityType="modeless"
    text="dialog:test" windowHeight="500"
    windowWidth="800"
    windowEmbedStyle="inlineDocument"
    useWindow="true"/>
    When we use af:popup, it has popupCanceledlListener attribute so that we can handle the situation where users click close button or Esc button.
    Does dialog have a similar feature?
    We can set a returnListener for dialog, but it doesn't work in case users click close button.
    Regards,
    Atsushi

    is this what you are looking for [url http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf]Handling the af:dialog Ok and CANCEL buttons
    and [url https://blogs.oracle.com/jdevotnharvest/entry/strategies_for_controlling_the_af]Strategies for controlling the af:popup close event
    Edited by: Mohammad Jabr on Apr 27, 2012 11:34 AM

  • How to get microphone data/events?

    Hello,
    I'm sorry for my english, I hope you will understand.
    I'm programming a timer. It works very well but I need to add a new feature:
    my timer should be able to start/stop using an external device (that is not meant for computer, it's a timer itself) that can be plugged into a computer using the microphone "door".
    I guess the signal generated by the external device should look like this:
    [http://gnehzr.net/cct/signal.jpg]
    (A timer that can do what I want to do already exists, but I need to do it on my timer)
    My problem is:
    1) how can I get the "microphone" input?
    2) how can I catch some "events" of the "microphone" input?
    I guess I'll have to use a "microphone listener" or something like that, but I need to know what is happening (I mean how the signal is changing) in real time to make my timer start/stop when the signal changes in some way (I'll manage to understand the signal meanings on my own).
    Thank you very much in advance.
    If you need to know any other thing I'll be happy to answer.

    Zyker wrote:
    I hope someone will be able to direct me to a few specified classes meant for what I need.youll have to research how to get the sound from a source (with targetdataline).
    then you have to analyze the sound data. there are no magic classes to do that for you.

  • How to get vi close event..??

    Hi i am a begginer in labview.
    I have a main Vi, and i am using a sub vi for communicating to device via COM1 (RS232).
    The problem if the main vi is stopped or closed then i want to make sure that COM1 has been released.
    So i want to check and close if COM1 is open in the main VI but i dont know how to get an event of vi closing or stopping..

    Holy Mackerel! a 3633px x 757px jpg?  Not sure what the point of that was since the VI was probably smaller than that image.
    In any case I think you might benefit from going though the LabVIEW basics course.  If you're trying to do what I think you don't need a notification of when the VI is done because there can be output from your VI to preserve data flow.  If you use that VI and say have an ouput terminal of an error cluster (instead of handling it in this VI) then when data comes out of that error cluster you know the VI is done executing.  A similar thing could be done using sequence structures, you'll know the VI is done when it goes to the next state in the sequence strucutre.  This is the less prefered method.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to get selectall/deselectall event

    Dear  Experts,
    How to get event, tableview selectall/dselect all event..
    i need to write some logic when we choose selectall on tableview control.
    so how can i find selectall event
    your cooperation will be highly appreciated.
    sincerely

    Hi Ganesh,
    This is indeed simple....
    Provide two buttons on screen for the same.....and then put the following code in onInputProcessing....
      DATA: event       TYPE REF TO   IF_HTMLB_DATA.
      event = cl_htmlb_manager=>get_event( request ).
      IF event IS NOT INITIAL .
        IF event->EVENT_NAME = 'button' and event->EVENT_TYPE = 'click'.
          but_event ?= event.
          CASE event->EVENT_ID.
            when 'SelectAll'.
              cl_htmlb_manager=>check_tableview_all_rows( rowcount = 10
                            request = request
                            id = 'Table_view_Id'
                            check = 'X' ).
            when 'DeSelectAll'.
              cl_htmlb_manager=>check_tableview_all_rows( rowcount = 10
                              request = request
                              id = 'TV1'
                              check = '' ).
    Also there is a small advise....before posting the question, please take some effort to search through the forum, as many issues have already been resolved...
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • How To Get The CLOSE Event In a JSP File?

    Hello everybody,
    Right now I am working in a JSP project which is about access log, when the users start , oprate, or close the system, the access log system works. I am in trouble in that when the users close the system, how can I get the close event?
    The JSP file contains the following fields :
    Close Window
    How to add code to get the CLOSE Event and submit to the service?
    And If I hit the "Close Button"(on the right-top of the window), how can I get the CLOSE event, too?
    Can anyone tell me?

    1. Add a hidden field:
    <input type="hidden" id="status" value="">2. modify <a href="index.jsp" onclick ="parent.window.close( );">Close Window</a> with <a href="index.jsp" onclick ="closefn();">Close Window</a>3. Add a javascript
    <script language="javascript">function closefn(){
    document.getElementById('status').value="close";
    document.form.action="";
    document.form.method="post";
    document.form.submit();
    parent.window.close( );
    }4. Now on the action page get the value of status by request.getParameter("status"); and log it.

  • How to get the table Event action in the controller???

    HI
    Based on my requirement i have extended my controller,but i want to perform some validation like ,,,,
    i have table in one region ,in which one column is having a Button (flex field) action with image,
    i want to write the code in the controller according to the validation ,,,,but i am unable to find the event action in the main controller,
    how to get the event action ?,,,,, of the item type as image
    thanks in advance
    Kash

    If not you can use image component with clientListener and serverListener to preform your requirement set clientListener click event and then inside clientListener java script method call the
    serverListener then will execute serverListener method.

  • How to get a touch event in a UIWebView object?

    I have looked around and several people have had the same question but a workable answer has not arisen. I want to detect a touchesEnded() event in an area which is covered by a UIWebView() control. Normally a webview eats all the touches; I don't want to use the trick of having a transparent UIView on top of my UIWebView to grab the touches because I want to let most of the touches through to the UIWebView control so that the user can scroll. I suspect I have to grab events at the higher level and filter them, apparently subclassing UIWebView doesn't pass the events through, surely someone has solved this very fundamental problem.

    I have been working on same problem. I came to following conclusion. There are two ways to handle:
    1. Subclass: WebView doesn't forward touch events by blocking in hitTest function. But link clicking works
    2. Transparent subview of WebView: Touch events obtained through transparent view can be forwrded to scrollview subview of webView and all seems working. But link linking fails. It seems like touch event for link clicking is handled by webView only. It does it before other touch events are processed. So there is no point in passing those touch events to webView. WebView doesn't expose way to handle click handling.
    Correct me if wrong. If someone has solution please post.

Maybe you are looking for

  • ITunes 10.6.3 Not Permitting Purchases

    As of today, I can no longer buy iTunes items via my desktop Mac running 10.5.8 and iTunes 10.6.3. For some reason, the post filter would not let me post about it, so here is a screen shot of my original post:

  • Pc to fax problem with hp officejet 4500

    when using the pc to fax function in hp officejet 4500, the person receiving the fax is not clear. the text is broken with horizontal lines

  • 0 photos in photo stream

    i have six photo streams from family members in family and friends streams however they all show 0 photos, can't figure out what i am doing wrong.  I have the photos on my iPhone but want them on my mac so i can do some other things with them

  • Spry Widget Issues - Deactivating after a while

    Hi there, I'm using Spry Widgets in DW CS3 and have been experiencing the following strange issue. When I insert a widget everything functions fine, the widget is outline in blue, the little blue title appears when I roll over it and the eye appears

  • Clientgen ant task throwing errors in Weblogic 8.1 SP4

    When I try to run clientgen ant task for a WSDL (pertaining to a .NET webservice on a non-weblogic server) in Weblogic 8.1 SP4, I'm getting the following errors. I'm running setEnv command, clientgen ant task from command prompt in WLS_HOME/user_proj