How to detect when the user clicked 2 video clips?

Hello:

I would like to know how can I detect when 2 video clips were clicked (order irregardles).

What I have is this:

In my main script, I have 2 independent clips (mc_him and mc_her) each in its own layer which, when clicked, playing an internal animation without moving my head of main reading anywhere. What I do is, once both a click (like I said, it doesen't matter in what order), a button that sends me into another section of my film should appear. He really doesen't matter if the button activated with alpha or sending me to a specific framework where all my button. What I detect is two clicks for the button.

How can I achieve this?

Thank you very much.

{btn1.onRelease = Function ()}

No matter what

This.Clicked = true;

checkBothClickedF();

}

{btn2.onRelease = Function ()}

No matter what

This.Clicked = true;

checkBothClickedF();

}

function checkBothClickedF (): Void {}

{if (btn1. Clicked & btn2. Clicked)}

do something. the two clicked

reset the two clicked on properties?

}

}

Tags: Adobe Animate

Similar Questions

  • (OSControl Xtra) How to detect when a user clicks on the bottom and upward when

    Hi all

    How can I detect when I click on a scroll bar downwards and upwards? I want something like:

    If sprite (1) ravishing (#down) then

    -do something

    on the other

    If sprite (1) ravishing (#up) then

    -do something else


    Any ideas? The question applies only to the OS control xtra

    I do not understand why you put the sprite.value and maxValue for
    a global event #prepareFrame - can you explain to us why, and 'who' it is
    who is responsible for these values?
    I tried to "simplify" your script, but I don't have a clear picture
    what your problem is - can you maybe post a simple example
    somewhere that clearly demonstrates?
    --
    pSprite property
    pScrollAmt property
    Global tMaxVal, maxbarvalue

    on beginSprite (me)
    pSprite = sprite (me.spriteNum)
    end beginSprite

    on prepareframe
    pSprite.maxValue = maxbarvalue
    pSprite.value = tMaxVal - position of the thumb
    end

    Update (me, aClickedPart)

    CASES (aClickedPart)
    #up:
    pScrollAmt = - 5

    #down:
    pScrollAmt = 5

    #thumb:
    If pSprite.value< tmaxval="" then="" pscrollamt="">
    otherwise if pSprite.value > tMaxVal then pScrollAmt = 10
    else exit
    CASES OF TERMINATION

    -It is important to 'catch up' the return value when you create a
    -timeout object, even if it is in a local variable that will be
    -immediately go out of scope
    t = timeout("scrollImage"&me.spriteNum).new (10, #sendScrollMessage, me)
    end

  • How to make only two columns as editable in five online when the user clicks a line using adf 12.1.3.

    Hello

    I displays a table on the screen. This table is read only during the initial page load. I want to do only two columns as editable on five in a row when the user clicks a line using adf 12.1.3.

    Is it possible in the adf. If possible how to handle this. Please help on this.

    For example, drop table editable Full and then replace rest inputText (components entry in general) with af:outoutText, everything except those two.

    And use the clickToEdit feature...?

  • How to stop going backwards when the user click on bar train ADF

    Hi all

    I use the Train of the Adf. and I would like to know how to get the following scenarios

    When the user click on step backwards train by train bar, I like to do validation and don't let go without validation.


    With respect,
    WP

    Hello

    ADF Code corner (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples) will have a solution as sample 97. It will probably come out tomorrow

    Frank

  • How to make a text field required at run time when the user clicks on the box?

    I had a form, there are several checkboxes fields and the text associated with the check boxes. If the use clicks on the checkbox then partner

    text fields should become mandatory. I tried the change event and the click event of the boxes. There is error in the onChnage event and I got some odd results in the click event on. Sometimes, if the user clicks the check box, then for the 1st time the field is not required, then the user onclicks the box and when the user clicks the check box for the second time the field becomes necessary, but if I turns off the option highlight the field and selects the field becomes necessary even if the user onchecks I am totally confused! To add that I have also written an incorrect code always I reached the goal? How it can be possible. I write the codes below, please help me because I am working under a deadline from the client.

    onChange event:

    var = this.boundItem (xfa.event.newText) newVal;
    if(newVal == 0)
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = "disabled";
    }
    on the other
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = 'error ';
    }*/

    For the onClick event:

    var a = xfa.resolveNode ("form1..") RawValue Subform0.Subform1.Subform9.Subform10.Table48.row2.CostItemRecovere d_OnlyEnergyCharges");
    App.Alert (a);
    if(a == 0)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = 'error ';
    }
    if(a == 1)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = "disabled";
    }

    Please help someone!

    Hello

    You may need this resolved at this point, but here are a few tips.

    An example of a loop in a dynamic array is here: Re: how to make invisible/visible or hidden columns with checkbox?

    You are usually not necessary to resolve the nodes, especially when the script object is in the same table as the target objects.

    For example if the table was not static your script could be simplified:

    if (this.rawValue == "1")  // this object is in Row2
    {
         Row4.ComplianceCheck_L1_1.mandatory= "error";
    ...
    }
    

    However because you will be to loop through all the rows in the table repeatable instances / then you need to resolve the nodes. Take a look at the example above.

    In your script, you have to Row8 Row4. I don't know if this is repeatable or just some of them. If we take Row4 as being repetitive, then you can apply the following to all repeatable lines.

    var vRow4 = Table48._Row4.count;
    console.println("Row4: " + vRow4); // You can delete this or comment it out after testing
    
    if (this.rawValue == "1")  // this object is in Row2
    {
         for (var i=0; i
    

    I have not tested, but it should be close to work.

    Good luck

    Niall

  • How to trigger DA when the user clicks a button close the standard window

    Hello!

    Apex 5.0 & universal theme.

    I want to trigger some DA when the user clicks on the button indicated to my image (button close the standard window). In fact, I would like to pass a value of my hidden form IR back and refresh IR if value = 1 or don't refresh with another value.

    Is this possible?

    Thank you.

    close_form.png

    Hi Yava,

    Seems that you have chosen to add the event handler to the page parent (the one with the IR). I think it's best. This means that the code above does not apply.

    The dialogclose event and all other dialogue jQuery UI events are triggered in the dialog box to create a DA pull on the IR will not work (because the dialog box is outside the IRR while she bubbles it won't go through the SORTING). You must handle the event on the body. This works because the event propagates to the body. Set the Type to choose to be "jQuery Selector". JQuery Selector enter 'body' (without the quotes). The event you want to handle is a custom, event which means that this isn't one of those in the select list. For event, choose "Custom". Then enter Custom Event "dialogclose" (without the quotes). Now you have a DA who fires when * all * dialog closes. You may or may not need to get more selective than that. For action, you can use refresh as you do already.

    Kind regards

    -John

  • How to put in pause/playback my project when the user clicks?

    Hi all

    I'm working on a project using Cp4.

    My project plays automatically without user intervention.

    I need project to be suspended when the user clicks a clickbox running.

    I can break the project by adding a clickbox and applying the property ' to pause project until user clicks on

    But it must be a user interaction whether to pause or play.

    I use playback controls by hiding all the options to control playback bar red break and play option, but I need to pause the button inside the project.

    I dnt want to display playback controls by using the Table of contents.

    __________________________________________________________________

    I could find this content at http://help.adobe.com/en_US/Captivate/4.0/Using/WSCB934979-86BE-40d2-8BB8-A66956575988.htm l #WS8898B608-FC25-4439-BABC-3AD722144202

    ad.gif

    In this page, it clearly says that we can break the project if we set the value of the variable 'rdcmndPause' to 1.
    In this page, it clearly says that we can play the project on hold if we set the value of the variable 'rdcmndResume' to 1.

    But I applied the same values for these variables and tried to control my project its does not work.

    Kind regards

    Kartik.P

    Hello

    Maybe the link below will help?

    Click here to see

    See you soon... Rick

    Useful and practical links

    Begin to learn Captivate 5 times now! $29.95

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcererStone blog

    Captivate eBooks

  • How to display a drop-down menu when the user clicks on a point on lineseries?

    Hi all

    I am new to flex development.

    I watch the series online on the Board, I would like to give a response when the user clicks on the "point" on the line, I want to display a menu drop down and react to the choice of the user on the menu item.

    Is this feasible? Any sample or reference?

    Thanks in advance.

    Jack

    I prefer to use itemClick localX or stageX, according to me, one of these will help you get what you want.

  • Can I interrupt my project when the user clicks?

    Hi all

    I'm working on a project using Cp4.

    My project plays automatically without user intervention.

    I need project to be suspended when the user clicks a clickbox running and needs to play when the user clicks on the same clickbox again.

    I can break the project by adding a clickbox and applying the property ' to pause project until user clicks on

    But it must be a user interaction whether to pause or play.

    Is this possible? How could I do my work?

    Kind regards

    Kartik.P

    Hello

    Maybe I missed the original request, but if you just want to users the ability to stop/start your project at a time that suits them... have you considered reading control options? It is a simple option that allows the user to pause/run the slide as they wish...

  • Trigger when the user clicks a tab?

    I have a canvas by tabs. When the user clicks a tab of the Web, this trigger is activated? Thank you

    The WHEN-TAB-PAGE-CHANGED-trigger.
    Inside, you can use: SYSTEM. TAB_NEW_PAGE and: SYSTEM. TAB_PREVIOUS_PAGE to detect from where to where will the navigation.

  • Report - Warning Message When the user clicks on the link with the value 0

    Hello

    I have a report with several areas, for example. Year, high priority project manager, County of medium priority project, project manager of low priority.
    I used column attributes to bind the data of the report on page 22.



    Now, some cells in the report have 0. Isn't it possible that when the user clicks on 0 binding doesn't to page 22, but see the window alert javascript indicating no data.


    Any help will be much appreciated.


    Kind regards
    Shijesh

    You can take a look at the following page

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:228

    to see how this is possible.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Is there a signal when the user clicks the overflow (3 points icon) on the actionbar button?

    Hello world

    Is there a signal when the user clicks the overflow (3 points icon) on the actionbar button? I would like to receive this signal (and signal when the overflow menu is closed) in order to modify the list of action items.

    Thank you very much

    -tom

    actionMenuVisualStateChanged is what you are looking for

  • Make the text appear in the box when the user clicks on the part of an image

    Is there an easy way to do this in the Muse?

    (1) do different areas of an image map.

    (2) automatically type the letter 'A' in a text box when the user clicks the area 'A' and so on.

    Thank you!

    Essentially, you want a keyboard on the screen? This is not possible with the standard tools of Muse. It would be quite simple with Javascript, however.

    David

    Creative muse

  • Disable the first/previous/next/last buttons when the user clicks on the button "create".

    Hello

    I have a requirement to disable the first/previous/next/last buttons when the user clicks on the button "create". The must be enabled after the user clicks on the submit, and then the button "validate".

    Is this possible please?

    Thank you.

    Hello

    Using BC4J in the model layer? If so, you might use an EL to the property of disabled button. Something like

    
    

    Replace in the binding attribute on your page (preferably the primary key of your form attribute).

    Arun-

    Edit: Check out this blog for more information on this EL: https://blogs.oracle.com/adf/entry/highlighting_new_rows_in_adf

  • Canceling a task of bpm when the user clicks Cancel

    I have a BPM process with a task that appears on a users workspace, the user needs to update a field on a screen (implementation of entry). The task has autocomplete, checked, so they do not have to manually click the next step in the task. When the user clicks the Cancel button, it seems to cancel the entire process, rather than just the task. Is there a way to do this?

    Brand

    That's the problem with the help of the ' entry' option for main task of the Interactive activity (the 'Cancel' button is not doing its job properly).

    Go with a screenflow. If you want to continue to use the "entry" for the Interactive task component call, be returned of course to have the named conditional transition 'Cancel' and the button of setting the value of the entry to be the predefined variable "result" (BPM object presentations normally use 'Cancel' - instructions Input need to 'Cancel').

    Dan

Maybe you are looking for

  • HP110-217cb: desktop clock

    My desk clock keeps changing time. Now, all it will give is AM and can't find out how to access PM. Have correct time zone change.

  • Please help me guys! No external screen and record Charlotte? hard drive is ok!

    Hello I have problem whit a macbook pro mid 2012. I bought it used. The screen was black when I had lines Pentecost inverted on the screen. I managed to change the backlight fuse so now it lights up Pentecost inverted colored lines. At first I could

  • Satellite C885 - installation of Windows 7 does not continue

    Last week, I bought a C855-21V Satellite with Windows 8 is installed.Now I want insstall becauso Windows 7 Windows 8 is not good for me. When I insert the Windows 7 CD and boot from the CD, the Installation hangs on the screen which shows "Starting W

  • Module Performance System

    It's early days for the system on Module (SOM) and untouchables are waiting for us our first developers kit, but maybe someone got the chance to test the SOM already and could give us an idea of the level of performance, we can excpect from him? In p

  • I2C using MyRio

    Hello I want to use the I2C myRio. To make things easier, I am currently working on the integration of the MCP9808 a simple thermometer. I suppose I created the I2C - VI easier you can imagine a TI does not work. It would be nice if you woul have the