Event listeners for digital pens

How do I capture events from a digital pen? I want to build an application that takes input from such pens/tablets, but have no idea how they work. My guess is that they create mouse events and that I can use MouseListener. The spec of the pen shows 1024 pressure levels. How do I get the pen pressure? Is there a DigitalPenListener class?

Yes - when you click on the array/group widget in the form editor, there's an 'Event Listener' section with a property called "Method Invoked".
I think you've figured this out on your own, but If you have trouble seeing a method in the dropdown, create a method that has one argument of type Fuego.Util.GroupEvent. If you look at this class, you can see the various event types that can be received (ADD, INSERT_DOWN, INSERT_UP, REMOVE, and REMOVE_LAST).
Dan

Similar Messages

  • Global Event Listeners for all Views in a ViewNavigatorApplication

    Hello,
    As the subject states, I have a ViewNavigatorApplication and I am trying to set up a "global" event listener for all views. Which I am able to do, however I am having problems...
    In my first view, I assign this listener:
    NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN, handleKeys);
    And I also have this function:
    public function handleKeys(event:KeyboardEvent):void {
         if (event.keyCode == Keyboard.MENU) {
                        trace("menu pressed");
                        navigator.pushView(MainMenuView);
    This works fine from the first view. But when I switch views, I get an exception on pushView (navigator is null). I think I understand why, so what is the best practice for something like this? How can I get access to the spark component navigator from that function when called from a different view? Or is there a better way to go about this?
    Thank you!

    Try putting the code in the main mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        firstView="home"
        applicationComplete="init()" >
        <fx:Script>
            <![CDATA[
                private function init():void {
                    this.addEventListener(KeyboardEvent.KEY_DOWN, handleKeys);
                private function handleKeys(event:KeyboardEvent):void {

  • Multiple Event Listeners

    Is it possible to have event listeners apply to multiple objects, instead of creating multiple functions?
    I'm just wondering if there is an easier way than making a new function for the same event listeners for each object I want to apply it to.  Here's my code thus far, just to clarify what I'm talking about:
    import gs.*;
    var mc_homeX:Number = mc_home.x;
    var mc_productsX:Number = mc_products.x;
    var mc_msdsX:Number = mc_msds.x;
    var mc_environmentX:Number = mc_environment.x;
    mc_home.addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
    mc_home.addEventListener(MouseEvent.MOUSE_OUT, onOut, false, 0, true);
    function onOver(e:MouseEvent):void
         TweenLite.to(e.target, .2, {x:mc_homeX-10});
    function onOut(e:MouseEvent):void
         TweenLite.to(e.target, .2, {x:mc_homeX});
    I've only starting adding the listeners to mc_home, but I'd like to apply them to all.  Any help would be appreciated.  Thanks.

    import gs.*;
    var mc_homeX:Number = mc_home.x;
    var mc_productsX:Number = mc_products.x;
    var mc_msdsX:Number = mc_msds.x;
    var mc_environmentX:Number = mc_environment.x;
    var mcA:Array=[mc_homeX,mc_productsX,etc];
    for(var i:uint=0;i<mcA.length;i++){
    mcA[i].addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
    mcA[i].addEventListener(MouseEvent.MOUSE_OUT, onOut, false, 0, true);
    function onOver(e:MouseEvent):void
         TweenLite.to(e.target, .2, {x:mc_homeX-10});
    function onOut(e:MouseEvent):void
         TweenLite.to(e.target, .2, {x:mc_homeX});
    I've only starting adding the listeners to mc_home, but I'd like to apply them to all.  Any help would be appreciated.  Thanks.

  • SU-1b digital pen - send error - An unexpected err...

    When i connect my pen or click send I get the following messgae:
    An unexpected error occurred (ox8000ffff)...
    in the log the files show with a server error against them.
    Help please, I,ve spent all day trying to set this up
    Thanks

    a .pgc file is a Digital pen specific file and not an image file. It is basically a file of co-ordinates recorded by the pen as the nib is writing over the dot pattern printed on the paper.
    What paper are you using?
    The way it is meant to work is that you have a 'routing' application sat on the phone that monitors the msg inbox for these files, strips the relevent data out and forwards this infomation to the relevent destination. This is the standard arcitecture for digital pen platforms for which digial pen providers like these provide:
    http://www.google.co.uk/search?hl=en&q=digital+pen&btnG=Google+Search&meta=cr%3DcountryUK%7Ccoun​tryGB
    so...in short...the file is useless to you unless you have a digital pen solution from these guys.
    Docking the pen however gives the pen a destination that the .pgc file can go to, ie, the Nokia/logitech software where the software will convert handwriting and provide an outut, ie, word doc.
    If you want an image sending to your phone then you want to buy these books...http://www.office365.co.uk/Books-Pads/173537-Black-n-Red.htm
    that enable you to draw/write something and send it to your phone as a .jpg so you can send it on as an MMS etc.
    Hope this helps, i've tried to be as simple as poss. What do you want to get from using the pens? if you are trialing the pens for business use, the consumer kits are useless at doing that. get in touch with a provider and i know they have free kits for evaluation.
    enjoy the pen though, it's a great business tool for me.
    J.

  • Nokia Digital pen SU-1B

    Where i can download paper template in psd for digital pen ??
    Please help. Sorry for my language

    Hello makvenom
    you say you want the paper template in psd..........perhaps you mean the*.pdf templates?...I have the A5 & B7 *.pdf templates that I got on the SU-1B CD with my pen,I already sent these files to a post user who printed them on an HP 1320 Laser Printer that took 30 minutes to print,& he says they worked,I have tried allsorts on my Canon LBP-IIIR laser printer & my Canon BJC-7000 printer,I cannot get them to work,if you want the files send me an IM I will be pleased to send them to you as I did with a couple of other users,the Pemail & PenPal software also lives on my N93,Nokia 9500 & my E90,when I send files to them they are in *,pgc format & the onboard software converts them,do you know where I can get the laminated contact card & laminated Calendar cards?
    Regards,Ray
    Hope this helps,if I can help further,just let me know :-)

  • Digital pen SU 1B and N73

    I tried to pair my nokia n73 and nokia digital pen but somehow the bluetooth code didn't work. I did also update pen/pc softwares but still no response. Wonder if it is the problem with the pen or is it because n73 need special application for digital pen? Please help! Got a pen for almost two weeks, still unable to use it! Please!

    I've got the N80 with this pen. Just took the cap off, search for devices on my N80, found it, entered the code that came on the card in the box, set it to authorised always on the phone and it works great.
    Does your pen light up to show it's got power when the lid is off ??
    Ad
    Nokia N80 V4.0623.041 26-07-2006 RM-92 Nokia N80 (42.03)

  • Documentation for custom event listeners

    Hi,
    I am searching in portal 8.1 documents for using custom events, coding and registering event listeners, and using them in jsp pages. So far my search has been unsuccessful.
    Can some one let me know where i find this info?
    -thanks

    Hi J, 
    Thanks for your reply.
    I didn’t find the custom work item Web Access control Official documents, but you can refer to the information in these articles(it’s same in TFS 2013):
    http://blogs.msdn.com/b/serkani/archive/2012/06/22/work-item-custom-control-development-in-tf-web-access-2012-development.aspx
    http://blogs.msdn.com/b/serkani/archive/2012/06/22/work-item-custom-control-development-in-tf-web-access-2012-deployment.aspx
    For how to debug TFS Web Access Extensions, please refer to:
    http://www.alexandervanwynsberghe.be/debugging-tfs-web-access-customizations/.
    For the custom work item Web Access control Official documents, you can
    submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them seriously.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [svn:osmf:] 15000: Fix for FM-447 : Adding CuePoint in TemporalFacet event listeners doesn't work

    Revision: 15000
    Revision: 15000
    Author:   [email protected]
    Date:     2010-03-24 14:01:02 -0700 (Wed, 24 Mar 2010)
    Log Message:
    Fix for FM-447 : Adding CuePoint in TemporalFacet event listeners doesn't work
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-447
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/TimelineMetadata.as

  • [svn:osmf:] 14975: Fix for FM-447 : Adding CuePoint in TemporalFacet event listeners doesn't work

    Revision: 14975
    Revision: 14975
    Author:   [email protected]
    Date:     2010-03-23 17:04:43 -0700 (Tue, 23 Mar 2010)
    Log Message:
    Fix for FM-447 : Adding CuePoint in TemporalFacet event listeners doesn't work
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-447
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/TimelineMetadata.as

  • Does Acrobat XI works with a digital pen for editing?

    Hi,
    In my office we're searching news ways to easily edit PDF documents like tests scanned by our students.
    I found a digital pen called I Pen which works with lots of Adobe Softwarer like Illustrator, Photoshop, etc.
    My question is to know if Acrobat XI, in any of it's version, accepts and works with digital pens.
    Hopping for your help,
    Victor Lozada

    I have used pen input on an old tablet (not the current slates) and it will work with the pencil tool. However, most folks doing grading use PDF Annotator. The pencil tool works to a point and then you set the pen down and you find it has selected the last annotation and you are about to move it, not draw. Also, if you turn the pen over it does not erase but continues to act as a pencil -- you have to use the erasor tool or select and delete. It can be done with Acrobat, but it is not all that friendly. It is a feature I have suggested fixing in the past, but has not yet been done.

  • Help me I'm trying to create event listeners

    I am trying to create event listeners
    Whenever any keyboard event occurs the string s gets appended by a,c
    or p.At the end of the program its supposed to print value of s
    But s always happens to null.Please tell me how to correct it....so
    that detection is possible for any case
    import java.io.*;
    import java.awt.event.*;
    public class trial {
    int x;
    public static String s;
    //OutputStream f1=new FileOutputStream("file2.txt");
    public static void keyReleased(KeyEvent e)
    s=s+"a";
    public static void keyPressed(KeyEvent e)
    s=s+"c";
    public static void keyTyped(KeyEvent e)
    s=s+"p";
    public static void main(String args[])
    throws IOException
    char c;
    BufferedReader br =new BufferedReader(new
    InputStreamReader(System.in));
    System.out.println("Entercharactes,'q' to quit.");
    do
    c=(char)br.read();
    System.out.println(c);
    while(c!='q');
    // for(int i=0;i<s.length();++i)
    System.out.println(s);

    I suggest looking at the java tutorial. Your code completely misses the mark and you need to see examples.

  • [JS] Basic question about event listeners and event handlers

    I am very new to the whole topic of event listeners and event handlers.  I'd run the test for the following problem myself, but I don't know where to start, and I just want to know if it's impossible -- that is, if I'm misunderstanding what event listeners and event handlers do.
    Say I have an InDesign document with a text frame that is linked to an InCopy story.  Can I use an "afterImport" event listener on the text frame to perform some action any time the link to the InCopy story gets updated?  And will the event handler have access to both the story that is imported, and the pathname of the InCopy file?
    Thanks.

    Thank you, Kasyan.
    Both of those are good solutions.
    We are currently using InDesign CS4 and InCopy CS5.  I'm hoping to get them to purchase the whole CS5 suite soon, since I'd like to start writing scripts for InDesign CS5 as soon as possible, as long as I'm going to have to be doing it in the not too distant future anyway.  The greater variety of event handlers sounds like it might be something that is crucial to the project I'm working on, so that adds to the argument for getting CS5.
    Thanks again.  You have no idea how helpful this is.  I made some promises to my boss yesterday that I later realized were  based on assumptions of mine about the InDesign/InCopy system that didn't make any sense, and I was going  to have to retract my promises.  But after reading your response I think I can still deliver, in a slightly different way that I had been thinking before.
    Richard

  • Event handler for STDIN input?

    Hi,
    This question will probably require a bit of context - I'm attempting to re-implement in java an application that's currently written in perl. The application is a server helper app that rewriters urls; it receives a request ID and a URL on stdin, does the necessary munging (which can require an external SOAP query), then returns the resulting rewritten URL.
    Since the results can be asynchronous due to the need for external queries to build the result, this is currently a multithreaded perl app implemented using perl's POE framework to register an event handler for stdin. That handler fires each time a line of input is received, then feeds the query to a thread pool manager (POE::Component::Pool::Thread, which is conceptually similar to the Executor frameworks). The thread returns the result as a callback registered to another function in the main thread, which then populates the query/result to a cache then outputs the result (with the original query ID) on stdout. Since stdin input and the result callbacks are event-driven, there's no while(true) main loop or other blocking mechanism in the main thread. Unfortunately, it's perl-ness is causing problems due to perl's threading implementation (three words: "copy on init"), so we need to reimplement in a language with a more robust threading implementation (preferably one with copy-on-write for shared objects). So, Java it is.
    So far everything's been good - Executor, Callables, and Futures work as I hoped they would for proper thread management, and the internal worker thread logic (XML processing, SOAP, regular expressions, etc) is proving rather simple to adapt. However, the main roadblock I'm hitting is that so far, I have not found a way to register any sort of event handler for STDIN input (or more specifically, InputStreamReader/BufferedStreamReader events). This could be due to search engine pollution - everything I see when I search for documentation on event listeners appears to be GUI-specific (buttons, menus, text areas/forms, etc). I'm just looking for a way to handle a line of STDIN, not a text area on a form.
    Any pointers in the right direction will be much appreciated!

    rekoil wrote:
    Maybe I need to rethink the design here...
    The main reason I used a callback in the original perl is that there's a large cache structure that gets checked before the thread dispatch, and only cache misses get pushed to a thread for processing. Callbacks from the threads will then add its results to the cache. Thanks to perl's thread model, when I attempted to make the cache a shared structure - in perl, you have to explicitly mark as "shared" variables that you want visible to all threads - the structure wound up getting copied to every thread, and this gave the app an unacceptable memory footprint. So the solution was to use a callback in the main thread to update the cache.
    I'm now thinking that if Java's thread model is a bit saner (i.e. a shared object doesn't get copied into every thread), then I could just have each thread update the cache, print its output to STDOUT directly, and avoid the need for the callback. I can then make my input loop simply a while() loop, waiting for the next input to dispatch. Sound sane?Yes I think so.
    There is some of this I still don't entirely understand. Your loop sounds better now but it sounds to me like the process is this.
    1) read from in
    2) call some stuff on the basis of what came in
    3) do work
    4) workers produce things
    5) things written back out
    6) read back in??
    If you're just going in/out then great. If you are going in/out/in then maybe some sort of PipedInput/Output Streams? It may well be that I got lost in your explanation in which case never mind.

  • Any BAdi for Digital Signature?

    ECC 6.0
    Does anyone know of a BAdI, Enhancement Spot or exit for digital signature where I can detect the object that is being signed (in this situation Engg Change Management) and perform some follow on process (specifically call a Workflow API to create an event for Workflow)?
    Cheers,
    Ramki Maley.

    Hi,
    Thanks for your request. We have added it to our feature backlog and shall try to incorporate it in one of our future releases.
    Thanks,
    Shefali

  • Event Listeners VS Event Functions

    I'm working on a new project at work where there's lots of
    custom objects with lots and lots of event listeners. I keep
    finding myself saying, "why didn't they just use the built in
    objects with built in event handling?". However, from what I can
    see it seems like AS3 leans heavily towards using Event Listeners
    as opposed to putting event responsibility on the object itself
    (E.G. XML.onload). Is there an advantage to this (other than making
    it more Java like?) I've always favoured keeping the responsibility
    on the object itself because it seems like one less object to keep
    track of and also makes things feel more self contained. If I have
    10 objects that fire 10 different events, I have to create 10
    different event handlers (or 10 different case statements within
    the same event handler), whereas with self event handling, I just
    code in the event function.
    Anyways, I wanted to open discussion to which method of event
    handling you prefer and why, and also what you believe the
    advantages to this. I was searching google for previous discussions
    on this but I couldn't seem to find anything, so I thought I'd get
    the ball rolling! Looking forward to reading these, try not to be
    too elitist in your posts!!

    I tried to change getFileOperation to getFileOperation2 in one of the functions as follows but same problem appeared.
    function f3 (event:MouseEvent):void
    trace("f3 triggered");
    getFileOperation2.addEventListener(ResultEvent.RESULT, f4);
    Do you have an idea how I can avoid the same function from triggering twice?? thanks a lot

Maybe you are looking for

  • Value set problem in oracle apps

    Hi I have got one problem with value set There are two parameters in report 1. Collector Name -> value set table type 2. Customer name -> value set table type I want , when I give collector name the customer name parameter should be disabled automati

  • Mavericks upgrade annoying display message

    After upgrading to Mavericks from Snow Leopard my desktop displays the filename  and path of the delected desktop image, this occurs only in my main user account, same on dashboard, this is really annoying, any ideas? I need help, thanks in advance

  • How to pass _ti value to javascript's window in Destination URI of Button

    How to pass _ti value to javascript's window in personalization's Destination URI of  a Button. In Self-Service HR, under my benefit's final confirmation page, I added a new button, when clicked would do a javascript alert saying "You have successful

  • Imp full db successful without warnings

    I am doing research to imp full db during my migration from 8i/Solaris db to 10g/windows Here is the command i come up with , make me right if i am not..... imp system/ora2000sys full=yes ignore=no statistics=none log=clin_full_import.log FILE= D:\yo

  • IPod Was Corrupted during download?

    My son gave his old iPod touch to my daughter.  She put a password on it and forgot it.  I have tried to restore the device through the normal procedures, but I keep getting a prompt box stating: "The software for the iPod "iPod" was corrupted during