Swipe to trigger an action

Hi everyone,
after having studied the question reading different post on the subject I tried to trigger an action by swipping with one finger.
It almost work but there is a little problem.
Here is what I've done :
On the stage I put this code on the touchstart event :
e.preventDefault();
var xStart = e.originalEvent.touches[0].pageX;
sym.setVariable('xStart', xStart);
and on touchend event I put this :
e.preventDefault();
xStart = sym.getVariable('xStart');
var xEnd = e.originalEvent.touches[0].pageX;
if (xEnd > xStart)
    sym.play("play1");
else if (xEnd < xStart)
    sym.play("play2");
the problem i that for some reason it only works with two fingers and not with only one. I can't understand why...
Another question :
The second step is to allow the swipe to trigger the action only it the swipe has been made in a precise rectangle.
I know I could use the same code and test x,y of the stage to know if the swipe was is the right place but I was wondering if I could just define the rectangle with opacity at 0 and then put touchend and touchstart events on this rectangle. Would it work ?
If someone can help, it would be great !

Hi Hélène,
I have the solution but I'm not home yet to give you the code.
Once at home Sunday evening I give you the whole code and details.
Have a nice day,
Mathieu.
Le 10 mai 2013 à 13:52, HelenH <[email protected]> a écrit :
Re: Swipe to trigger an action
created by HelenH in Edge Animate - View the full discussion
Hi Grouchou,
I am having similar problems to you regarding the one/two finger swipes. Did you manage to find a solution? Did you also get it working in a set area?
Thanks
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5308548#5308548
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5308548#5308548
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5308548#5308548. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Edge Animate by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Similar Messages

  • Is there a way to trigger an action on or after a specific date?

    Hi,
    I wanted to set up AS3 to trigger an action on or after specific dates (quarterly, 1/1, 4/1, 7/1, 10/1). Is this possible?
    I can script getting today's date, but I am not sure how to script: if today's date is  greater than or equal to (>=) one of these quarterly dates (greater than is essential since the video may not run on the specified date, so greater than is needed). Year is not needed, since the goal is quarterly action. But, would need to start over each new year, so quarterly action continues each year. Can't seem to get my brain around how to construct this and how to script it.
    Any help appreciated.

    if you can accept the user's date, you can compare the user's date's time property with your date's time property:
    var triggerDate=new Date(2013,0,1);
    var userDate=new Date();
    if(userDate.time>triggerDate.time){
    //do whatever

  • How to trigger so action when ServerletOuput stream writes all data as byte

    Hi ,
    I have a servlet which accepts the index , size of a .3gp file in bytes as input parameters.
    If index=0 ...i am reading whole file into buffered input streame and writing to client as Servlet output steam as bytes.
    If index !=0 , or index=100 ...say suppose
    im ommiting first 100 bytes and rading101 byte to till the end of file in to buffered input streame and writing to client as Servlet output steam as bytes.
    Here i would like to trigger some action when the servlet writes entire bytes to the client .
    But im not able to notify exactly when the connection can close between client and server.
    Can any one help me to overcome this.
    Thanks in advance.

    Hi ,
    Thanks for reply..
    But reallu i couldnt get you.
    please go though the code snippet i have...and suggest me.
    try{
    File fFile = new File (fileName);
    BufferedInputStream bif = new BufferedInputStream(new FileInputStream(fFile));
         bif.skip(Integer.parseInt(((DownloadFileForm)o).getIndex()));
    int byteSize = (bif.available() < Integer.parseInt(((DownloadFileForm)o).getSize())) ? bif.available() : Integer.parseInt(((DownloadFileForm)o).getSize());
    byte[] b = new byte[byteSize];
    bif.read(b, 0, byteSize);
    sosStream = response.getOutputStream();
    sosStream.write(b);
    // here i have to do something
    sosStream.close();
    logger.info("file has been downloaded from Server is sending out to client");
    }catch(Exception e)
    // e.printStackTrace();
    logger.info("Exception :"+e.toString());
    regards,

  • Trigger an action after Material Save

    Hello ,
    I have a requirement where I need to trigger an action ( A custom method)after saving a material thru MM01/MM02.
    I looked for User exits and BADIs in these transaction but none of them seem to be helpful.
    Can anyone suggest me an user exit/BADI or possible another way of  doing it.
    Thanks
    Pravin

    Hi Pravin,
    You can find the BAdI by your own for any transaction. Just follow the steps mentioned below and you will get the list of BAdI.
    Method 1:
    Go to Tranaction: SE24.
    open class CL_EXITHANDLER
    Open the method " GetInstance"
    Put Break point in the statement
    call method cl_exithandler=>get_class_name_by_interface
    Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
    Method 2:
    find the Package name and go to the tranaction SE84.
    Enter the package name
    inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.
    Thanks,
    Chidanand

  • Trigger a action

    Hi experts,
    I want to trigger a action which is defined in the action profile in my program, can u please suggest me the right Function module or class to trigger a action.
    Valuable answers will be rewarded for sure..
    Thanks,
    James

    hi james
    i really did not get what u said,complaint item means CIC or in purchase order,what exactly,if its related to CIC then pz refer note:516843
    best regards
    ashish

  • How to trigger an Action

    Hello,
    I need help to find out how to trigger an Action (Action Definition) from an ABAP program. The program should trigger the Action used to create a follow-up transaction from an existing Contract.
    Thanks in advance,
    Jonas

    Hi! Every one
    I am using codes mentioned in this tread but getting one exception at the time when SAP is trying to save the changes for the change process action data. I am able to run the change process action programmatically ( successfully ) and when i enter some data for the change process action and press the execute button, I am getting one exception. I have attached the exception in this text. Can any one please give any clue why this exception is coming and what else I need to do?
    Thanks
    Yogesh
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_OS_OBJECT_NOT_FOUND
    Date and Time          13.03.2007 16:14:30
    Short dump has not been completely stored (too big)
         Short text
              An exception occurred that was not caught.
         What happened?
              The exception 'CX_OS_OBJECT_NOT_FOUND' was raised, but it was not caught
               anywhere along
              the call hierarchy.
              Since exceptions represent error situations and this error was not
              adequately responded to, the running ABAP program
               'CL_METHODCALL_PPF=============CP' has to be
              terminated.
         Error analysis
              An exception occurred that is explained in detail below.
              The exception, which is assigned to class 'CX_OS_OBJECT_NOT_FOUND', was not
               caught in
              procedure "IF_MEDIUM_PPF~EXECUTE" "(METHOD)", nor was it propagated by a
               RAISING clause.
              Since the caller of the procedure could not have anticipated that the
              exception would occur, the current program is terminated.
              The reason for the exception is:
              Could not find the referenced object with the OID
              "00000000000000000000000000000000" (instance GUID) and
              "BECA3BF12720D411AB61009027C3C00A" (class GUID)
         Missing RAISING Clause in Interface
             Program     CL_METHODCALL_PPF=============CP
             Include     CL_METHODCALL_PPF=============CM009
             Row     1
             Module type     (METHOD)
             Module Name     IF_MEDIUM_PPF~EXECUTE
         Trigger Location of Exception
             Program     CL_METHODCALL_PPF=============CP
             Include     CL_METHODCALL_PPF=============CM001
             Row     32
             Module type     (METHOD)
             Module Name     IF_OS_STATE~HANDLE_EXCEPTION
         Source Code Extract
         Line     SourceCde
             2     ***BUILD 020501
             3          " importing I_EXCEPTION type ref to IF_OS_EXCEPTION_INFO optional
             4          " importing I_EX_OS type ref to CX_OS_OBJECT_NOT_FOUND optional
             5     ************************************************************************
             6     * Purpose        : Handles exceptions during attribute access.
             7     *
             8     * Version        : 2.0
             9     *
            10     * Precondition   : -
            11     *
            12     * Postcondition  : -
            13     *
            14     * OO Exceptions  : CX_OS_OBJECT_NOT_FOUND
            15     *
            16     * Implementation : If an exception is raised during attribut access,
            17     *                  this method is called and the exception is passed
            18     *                  as a paramater. The default is to raise the exception
            19     *                  again, so that the caller can handle the exception.
            20     *                  But it is also possible to handle the exception
            21     *                  here in the callee.
            22     *
            23     ************************************************************************
            24     * Changelog:
            25     * - 2000-03-07   : (BGR) Initial Version 2.0
            26     * - 2000-08-02   : (SB)  OO Exceptions
            27     ************************************************************************
            28     * Modify if you like
            29     ************************************************************************
            30     
            31       if i_ex_os is not initial.
         >>>>>         raise exception i_ex_os.
            33       endif.
            34     
            35     endmethod.

  • Trigger an action from my view

    I have a button on my view called BTN_CHECK. The button has associated the action "CHECK".
    At this moment i need to trigger the same action of the button (and reuse the code) from wddomodifyview method.
    I have find how to make it in SDN but i haven't found yet
    Thanks

    Yes. i approve what Anurag Chopra said..
    Better choice to separate the coding in one independent method. Then in the event handler or other methods call the independent method easily..
    However, if you indeed want to call the action handler, you must create the WDEVENT firstly and correctly..
    Just like this:
    data:LO_EVENT TYPE REF TO CL_WD_CUSTOM_EVENT.
    CREATE OBJECT LO_EVENT EXPORTING NAME = ''. "PARAMETERS should be right
    "ok, call the action
    wd_this->ONACTIONBTN_SAVE( LO_EVENT ).
    BTW, i don't think this is a good solution.
    Best wishes.

  • Not able to trigger dynamic action

    hi all,
    i am using HR_OPERATION_INFOTYPE to update or insert data in infotype 0000. it has been updated but i am also want to insert data in P0001 for same employee number(pernr) and same data. For this i am maintaining table "T588Z".
    but dynamic action is not triggering
    what should i do now
    thanks
    Sachin

    Dynamic action won't trigger by using the FM HR_INFOTYPE_OPERATION. You have do write a BDC for PA40 for a given action to have the dynimic actions to run.
    Regards
    Ranganath

  • Trigger Automator action upon re-login from fast user switch?

    I normally leave my account logged in on my Mac, and via fast user switching, return to the login window when I'm away from my Mac. (So my account stays logged in, but OS X remains at the user login window.)
    When I re-login, (how) can I trigger an Automator action to execute upon my return to my account?

    Try adding the action to your Login Items in Accounts preferences.  Save the automator action as an application first.

  • Trigger goLink action

    Hi All,
    I have this scenario: I am using JDeveloper 11.1.1.6. I have a command button which when is pressed this validate some things using a backing bean, and I also have a goLink hidden on the page which has a menu item like destination. Is there any way to trigger the goLink action from the backing bean or use the backing bean validation on the goLink button?
    I have tried using clientListening and serverListening in order to queue the click event of the goLink but I am getting an error.
    Any suggestion will be welcomed.
    Thanks,
    Leandro.

    Hi,
    Thanks for your replay. Right now on the command button I have an action and action listener in order to make the navigation (I am using a navigation model to navigate to the result):
    <af:commandButton text="Consultar" id="btnCons"
    binding="#{pageFlowScope.rapidComprasManager.btnConsultar}"
    action="#{pageFlowScope.rapidComprasManager.ejecutarVerConsulta}"
    actionListener="#{pageFlowScope.rapidComprasManager.navigateTo}"
    disabled="false" useWindow="true">
    <f:attribute name="node" value="#{navigationContext.currentNavigationModel.currentSelection.parent.children[2]}"/>
    </af:commandButton>
    This is working perfect because I am returning pprnav if all was ok or error in case that I have an error, but the problem with this is when I am on the result page and I press back or back button on the browser I am redirected to the principal page instead of the form page.
    I have this pages:
    Principal Page --> Form Page --> Result Page.
    If I use the goLink button the back navigation works perfect, so for that reason I am trying to use goLink instead of commandButton. The client reported us the back button like an error so for that reason I need to fix it.
    Thanks for your help,
    Leandro.

  • Update Opportunity Totals - trigger this action

    Is there a way to trigger the Update Opportunity Totals action (so the user does not have to click on the button)?

    Does anyone know if this functionality is available yet?
    I have a customer that would like to know if there is a way to automate the clicking of the "Update Opportunity Totals" button everytime someone changes the product revenue record(s). Their issue is that if a user forgets to click the Update Opportunity Totals button after making a change that the Opportunity totals will be off.
    Is there any work arounds for this?
    Thanks.

  • How to trigger two Actions at a time in a break function(Boolean)

    Hi All
    I am using three sequential Blocks.First Block is to enter the data and send to second Block. When second sequential Block accepts it should sent to third Block. If Second Block rejects the form then I want to stop (Terminate) the process and I want to send the notification.
    I am using Pre-conditional block and checking check box in the second block to accept or reject the initial form. If I use Boolean function it automatically declare two functions one is Continue and another is Break. If I select break then I am not able to send any notification or any callable object as this break function will break the process at instant and it won’t allow any further actions.
    Thanks & Regards,
    Syed Nawaz.S

    I think you just need to use 2 sequential blocks. Seq Block 1 will contain your data input form. Seq Block 2 will contain 5 actions - 1st action is a Decision Dialog (that will have Continue and Break), 2nd Action is whatever needs to be done on Continue, 3rd Action is Terminate, 4th Action is Send Notification and 5th Action is Terminate. Set the target for Continue to Action #2 and target for Break is Action #4. Once 2 is executed it will execute Action #3 and the process will terminate. If the Break situation is executed, a notification will be sent and the process will terminate.
    Thanx,
    Mahesh

  • Email trigger through action

    Hi,
    we have a specific requirement where in we have created an action profile for the sales and service transactions.
    The smartform in sales transaction should go as an PDF attachement and the smartform in the service transaction should go as a plain text.
    As of now both of them are going as attachements.
    i have done the changes in the SCOT as text based and both the smartforms are going as plain text .
    can anybody guide as to how to achieve both like PDF for sales transaction and Text for service transaction?
    Thanks
    Srini

    Hi,
    For a Smart Form Mail
    Your Process Type should Be
    Form name - Standard smart form like test with(CRM_SERVICE_SLA_MAIL_RR)
    Processing class - CL_DOC_PROC_SERVICE_ITEM
    Pocessing Method - as per your doc test with  CRM_SRVORDER_ITEM_EXEC_SFORM
    Archive mode - Mail/Mail and store as desired .
    You will get the pdf smart form
    Please reward if helps
    Regards
    Raj

  • Can Javascript trigger an action in a swf file?

    Earlier I was able to create flash buttons in a swf object in a widget on a Jive page, and have each of them trigger a separate Javascript function.
    That worked well.I used this in Flash:
    import flash.external.ExternalInterface;
    Now I would like to be able to do the opposite.
    I would like a Javascript function to trigger a swf to go to a particular frame in the movie.
    Is that possible, and if so, How do I do it?
    There are several widgets with each their own Flash object on the page. The Widgets can be adressed separtely by their H3 title.
    The reason for wanting to do this is to stop flash playback without unloading the swf with another movie in a different widget is started.

    Hi Nabren
    Let me explain a bit more in detail what I am doing:
    The page includes several HTML widgets, let us say they are called:
    widget_1  importing flash_file_1.swf
    widget_2  importing flash_file_1.swf
    widget_3  importing flash_file_1.swf
    widget_4  importing flash_file_1.swf
    My navigation is a widget with a separate swf file where the buttons trigger a Javascript function that hides or reveals the widgets I want to show below.
    All the widgets are loading on page load but only some of them are visible.
    The swfs are essentially flash files that have sub navigation buttons.
    lets say:
    button_1
    button_2
    button_3
    This is my  way to get multiple pages to be accessible in one widget.
    Clicking a button takes you to a different frame with a different page layout.
    Some of the pages contain Flash video which auto starts. (they are located each in their own movie clip)
    My objective is to be able to stop any video that might be running when clicking another button for another widget.
    Currently each swf is delivered in an iFrame that calls up a HTML page with the Flash object in it.
    This allows me to send the content of each iFrame to about:blank when clicking another button (essentially unloading the iframe content) and load it again on demand.
    This however causes the iFrame content to disappear for a moment and reload, which is not a very elegant user experience.
    It kills the benefit of the content  preloading.
    Therefor I would much rather be able to control the timeline in each individual swf from a add callback function in Javascript.
    The Flash object could be located directly in the HTML widget  if that would work better.
    That way I could say something like this:
    function f1(){
    onclick:
    widget_1  importing flash_file_1.swf :  go to and play frame 1
    widget_2  importing flash_file_2.swf :  go to and stop on frame 15.
    widget_3  importing flash_file_3.swf :  go to and stop on frame 10.
    widget_4  importing flash_file_4.swf :  go  to and stop on frame 20.
    function f2(){
    onclick:
    widget_1  importing flash_file_1.swf :  go to and stop on frame 10.
    widget_2  importing flash_file_2.swf :  to and play frame 1
    widget_3  importing flash_file_3.swf :  to and stop on frame 10.
    widget_4  importing flash_file_4.swf :  to and stop on frame 20.
    -and so on…
    This would be beautiful!  I would be able to keep the swfs loaded at all time and be ready to play as soon as the next button is clicked.
    Question 1:  Would I have to add any code to the flash files?
    Question 2:  Would you be able to help with the correct code/ syntax to make the javascript work?
    Thank you for your time!
    ggaarde

  • Trigger print action in ICWC, then display Smartform in PDF

    Hi All,
    We have the 'Print' action configured in CRM 5.0.
    Upon triggering the 'Print' action in ICWC, I'd like the smartform be displayed in a new window in PDF format – allowing user to print/save the PDF.
    Any idea how can this be done? Thanks

    Hi,
    Have a look at this <a href="/people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp
    Regards,
    Patrick.

Maybe you are looking for

  • Internet suddenly not working. RCN says its my iBook...

    OK, this is long, and I'm not sure if any of these things are related. I recently bought an iMac. I loaded it up from my one-year old iBook. Everything seemed fine for the first couple of days, then I lost my internet connection. RCN my provider has

  • Material ledger - BRAZIL

    Hi gurus, my brazilian client wants recalculate, at the end of every month, the stocks and sales using the real prices of the material. he wants revaluate sales and stocks using monthly purchasing price instead of standard price. Further more, he wan

  • Wrong Price posting in GRN's

    Hi.. We are posted above  100 of GRN's in wrong price. we have to update correct price in that PO. it is possible  to correct existing GRN with PO price. pls. suggest  how to resolve this issue.... Reversal it will take long time... anyone pls..... s

  • Find jvm running or not

    hi, how to find the how many jvm is running in application level and os level. can i use pstree or ps for find the jvm?

  • GDM errors on VMWare after system upgrade

    After a system upgrade today, I'm getting this when GDM starts: gdm-binary[595]: WARNING: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server for log errors There aren't any errors in the Xorg log. The vmware driver i