behavior of button to a gallery or another page

I need help!  Here's my problem...

AnimateCC, the user has to choose between 5 responses, click the thing than what it best. He'll do it 4 times.  Once a button and it should click. The button should proceed to the user depending on what there a click.  If he clicks 4 good answer it will link to a gallery, if he doesn't have one bad answer, it will be taken to another page.

The code below works perfectly:

this.btnDirectionnelPageWeb.addEventListener ("click", GoToWebPage);

function GoToWebPage() {}

window.open ("http://www.leunis.org/famillemc_app.php", "_blank");

}

But when I try (and I try a lot of code) with if/else statement the code did not work. I don't know what I did wrong.

Please someone help me. If you need the file of the explore, well no problem for me and no problem too if you need be pay for it.

I just hope that this community will help me!

Lise

use a variable to track the number of 'good' responses (and ensure that the same issue cannot be decided more than once). for example,.

var correctAnswers = 0;

whenever you answer a question correctly, increment correctAnswers and deactivate answer again:

correctAnswers ++;

this.removeEventListener (...) / / is often to avoid the reanswering

You can use:

this.btnDirectionnelPageWeb.addEventListener ("click", GoToWebPage);

function GoToWebPage() {}

{if(correctAnswers==0)}

Window.Open ("a page", "_blank");

} else {if(correctAnswers==1)

Window.Open ("another page", "_blank");

} etc.

}

Tags: Adobe Animate

Similar Questions

  • How to make a button to link me to another page

    Hi guys,.

    Can someone tell me what Im doing wrong,

    I created a new folio and created in a 3-page document,

    Page 1 'PAGE ONE' written on it using the text tool, and I did similar pages two and three

    I selected the text "PAGE ONE" and transformed into a bookmark

    On page 3, I drew a red rectangle, converted to a button, assigned to the navigation option "go to destination" and took the 'ONE PAGE' bookmark as a destination.

    Is there an extra step that I am missing as long as when I run the preview and press the red button, nothing happens

    I use indesign on a MAcbbok Pro and the Preview on an ipad, the software is Indesign CC

    Its obviously me, but I can not work what do I do

    Bookmarks are not supported in DPS. Use a button url reach with a navto:

    action.

  • Creating buttons in flash and linking to another page

    Hello

    I'm a flash newbie. I am a student of multimedia!

    I know how to create buttons in flash and put stocks at these buttons. EX: If I add several videos in different scenes in flash, with a back and next button, adding actionscript to go and play or go and stop, I can do it! However, I don't know how to define actions for buttons created in text or buttons created in photoshop, illustrator, fireworks... imported into flash, and linked it to another page (section) of my web site.

    About me, Portfolio, Services, Contact (written text). How I make the text in buttons and link them to another page of my website and the who on the contact button?

    Thank you

    If it is the actionscript code that you are not familiar with so what you do is to assign an instance name unique for your button when you put on the stage and then assign a code to the it... say you gave an instance of 'contact_btn' button, and then in the layer name actions in the corresponding frame to this button (different lasyer) you d code...

    contact_btn.onRelease = function() {}

    getURL ("http://...your pageurl");

    }

    If this isn't what you're looking for, you've lost me.

  • Oracle of the MAF: How get text of a page from the amx and show them in another page of amx

    I created a simple form using amx as below:

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < amx:view xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    ' xmlns:amx = ' http://xmlns.Oracle.com/ADF/MF/AMX "xmlns:dvtm =" http://xmlns.Oracle.com/ADF/MF/AMX/DVT ">

    < amx:panelPage id = "pp1" >

    < amx:facet name = "header" >

    < amx:outputText value = "Header" id = "ot1" / >

    < / amx:facet >

    < amx:facet = "primary" name >

    < amx:commandButton id = "cb1" / >

    < / amx:facet >

    < amx:facet = "secondary" name >

    < amx:commandButton id = "cb2" / >

    < / amx:facet >

    < amx:panelFormLayout id = "p1" >

    < amx:inputDate id = "i1" label = "Date" / >

    < amx:selectBooleanCheckbox id = "s1" label = "CheckBox" / >

    < amx:selectBooleanSwitch id = "s2" label = "Switch" / >

    < amx:selectOneRadio id = "s3" label = "Radio button" >

    < amx:selectItem id = "s4" / >

    < / amx:selectOneRadio >

    < amx:inputText id = "i2" hintText = 'enter something '.

    Label = "Edit Text" > < / amx:inputText >

    < amx:inputText id = "text1" label = "" enter password: ""

    secret = "true" / >

    < / amx:panelFormLayout >

    < amx:commandButton id = "c1" text = "Send" action = "getFormDetails" > < / amx:commandButton >

    < / amx:panelPage >

    < / amx:view >

    I want to extract the text entries, check box, option button, and display them in another page of amx. Please help me.

    Hello

    Here is an example.

    Assuming that there is a taskflow (as feature) which uses two activities with the name View1 and view2, with a case of View1 to View2 control flow is getFormDetails.

    code View1.AMX:

    "http://www.w3.org/2001/XMLSchema-instance" xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    value="#{pageFlowScope.TestBean.userNameValue}"/ >

    code View2.AMX:

    "http://www.w3.org/2001/XMLSchema-instance" xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    TestBean.java (which is located in pageFlowScope).

    mobile plan;

    public class TestBean {}

    private String _userNameValue;

    Private boolean _checkboxValue;

    public TestBean() {}

    }

    {} public void setUserNameValue (String _userNameValue)

    This ._userNameValue = _userNameValue;

    }

    public String getUserNameValue() {}

    Return _userNameValue;

    }

    {} public void setCheckboxValue (boolean _checkboxValue)

    This ._checkboxValue = _checkboxValue;

    }

    public boolean isCheckboxValue() {}

    Return _checkboxValue;

    }

    }

    Arun-

  • passing the value of the item to another page

    Hello!

    I have a few questions while passing the value of the item to another presentation page and page refreshes.

    I have a page (page n ° 2) with more areas where users can fill data in some articles (text box, popups,...), then I have a region report report and button to enter a new item. When users, click the button is it redirects to another page (page no. 21), where the user enters the values to other elements (popup, text box,...) then I have 3 buttons on this page ('Cancel', "create one", "create an and create another") and now I don't know how to handle the button ' create a. Action for the button "create one" I want is that when button "create one" is clicked in a table (in my DB) should be inserted some values of page 2 and certain values on page 21, then users should be redirected to page 2, where you can see everything that you see before the user has clicked 'enter a new element button' (so all the values in the elements of the page 2 must be visible) + in this report in the region must be updated (so you can see the inserted elements on page 21)

    I hope you understand what I mean and you can help me. And sorry again for my English.

    Kind regards
    Dragan

    You can create a collection and use it in this way:

    IF apex_collection.collection_exists ("YOUR_COLLECTION") = TRUE THEN
    apex_collection.delete_collection (p_collection_name-online 'YOUR_COLLECTION');
    END IF;
                             
    apex_collection.create_collection (p_collection_name-online 'YOUR_COLLECTION');

    -Value added to the collection
    apex_collection.add_member ("p_collection_name-online 'YOUR_COLLECTION', p_c001 => ' value to save");

    -get the value of collection
    Select C001 in apex_collections where collection_name = "YOUR_COLLECTION";

    Go through this link to learn more about the collections http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

    OR

    as you say if its only id you want to perform, then simply create an item hidden in your page 2 =>: P2_ID_SO, then capture the value in your 2 page deal and use it in page 21.

    -Manu

  • In front if I did wee one button, I have to open another front

    My question is the façade in LABVIEW hand, if I press a button, I have to open another front...

    Is this Possible?

    Thank you

    Double post.

    anyway. Find three attachments.

    Main.VI: Run the vi. Press "open Subvi.

    "" Sub vi.vi: this vi will open when you call him vi hand by "opening Subvi" button.

    Third attachment is an image.

    Place your Subvi (Vi whose façade to be opened by a button click) on the block diagram of main vi.

    Right-click on the icon of the vi, you get this pop-up, select the two options as shown in the picture. Run the main vi.

    I hope that now you can reach your goal.

  • Button in an MC control another MC in another scene

    Hello

    I have a clip in a scene, with buttons, what should you check another video clip (very Simple one) - in another scene.

    When I go to the second stage, I want to see the key image that I chose in the first scene.

    (He suppose to change the keyframe in the second film, but I can see it only when I go to this scene).

    Thank you!

    ADI

    Nothing in Flanimate can only directly control the things that exist in the same time. To control something that is going to exist eventually, you will need to communicate via a global variable. So, you should do something like:

    1. click on the button.

    2. button Manager sets a global variable.

    3. second stage load.

    4. code in the first frame of scene checks if the global variable, is necessary.

    In addition, obligatory comment that unless you are animating a drawing animated, scenes are a dated relic, and nobody should use them more.

  • Redirect to another page by clicking on the button

    Hi all

    I want to open another page by clicking on button I try to code below, it does not get another page in oaf (10.1.3).

    pageContext.forwardImmediately ("OA.jsp?page=/eamxx/oracle/apps/eam/oagroup/webui/NavigatePG"

    null

    OAWebBeanConstants.KEEP_MENU_CONTEXT

    null

    null

    false

    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);

    Please give any solution.

    Kind regards

    Mohan Reddy

    I found the solution using open below code one another class page in co process application form need to write the code below.

    If (PageContext.GetParameter ("Next")! = null) {}

    am.getTransaction () .commit ();

    () pageContext.setForwardURL

    "OA.jsp?page=/eamxx/oracle/apps/eam/oagroup/webui/NavigatedtPG&formval=val,"

    NULL,

    OAWebBeanConstants.KEEP_MENU_CONTEXT,

    NULL,

    NULL,

    true,

    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,

    OAWebBeanConstants.IGNORE_MESSAGES);

    }

    Kind regards

    Mohan Reddy

  • Creating a button that highlights himself and another object

    Hi all

    I have a specific function, I am applying for my InDesign document for export to interactive PDF and SWF/html format.
    The function that I am creating is:
    I have a picture of a typical WYSIWYG toolbar. I created highlight buttons that sit on top of each icon in the image. When the reader hovers over this image of an icon (with the cursor) I want it highlight and also a piece of text lower on the page to highlight as well (which is a definition and an explanation of the icon). So I want the reversal of my first button action to also trigger another action, which is to highlight a piece of text somewhere else on the page. I managed to get so I put the cursor on the first button (icon image), it highlights, and the text below the page. But this isn't quite what I want. I want the text already exists, then highlight. Basically I want the two buttons to be connected. So that whenever I have fly over a part of the image of a created button, it will highlight, and a piece of exploratory text highlight simultaneously elsewhere on the page. A bit like an infographic. It is surely possible?

    Thanks in advance for your help.

    Generally, the animations as this is to export a SWF file are better be done in Adobe Flash.

    In Indesign that kind of market, too. Only for export as SWF, you can assign to the action "go to the State." For a text block, you can assign different status, where the 1st State would be 'normal' and the 2nd status would be "highlighted". Highlighted applies to the object "text frame", so that you can assign a contour or background. Better than nothing.

    Example: Dropbox - test_highlight.indd

  • Buttons inside the MC and another layer

    I have 4 buttons within a movieclip on another layer. Output, map and buttons front and rear.

    My buttons worked until I put them in the clip. but now they don't work at all.

    This allows my menu to slide in and out of the page

    menutrace.addEventListener (MouseEvent.ROLL_OVER, menuenter)

    test out of my buttons with just the front and back keys it now.

    MenuTry.Nxt_btn.addEventListener (MouseEvent.CLICK, ButtonClicked)

    MenuTry.Prev_btn.addEventListener (MouseEvent.CLICK, ButtonClicked)

    function ButtonClicked(event:MouseEvent)

    {

    If you press the next button

    If (event.target.name == "MenuTry.Nxt_btn")

    {

    if(currentFrame == totalFrames)

    {

    gotoAndPlay (10)

    } else {}

    trace (currentFrame);

    nextFrame();

    }

    }

    If you press the back button

    If (event.target.name == "MenuTry.Prev_btn")

    {

    if(currentFrame ==10)

    {

    gotoAndPlay (totalFrames)

    } else {}

    prevFrame();

    }

    }

    move the clip (MenuTry) film with all the buttons in and out of the screen.

    }

    function menuenter(event:MouseEvent)

    {

    MenuTry.y = 643.15

    menutrace.removeEventListener (MouseEvent.ROLL_OVER, menuenter)

    menutrace.addEventListener (MouseEvent.ROLL_OUT, menuexit)

    Stop();

    }

    function menuexit(event:MouseEvent)

    {

    MenuTry.y = 7531.15

    menutrace.removeEventListener (MouseEvent.ROLL_OUT, menuexit)

    menutrace.addEventListener (MouseEvent.ROLL_OVER, menuenter)

    Stop();

    }

    yYou have a problem with your scope:

    put the buttons in a MovieClip doesn't change their name:

    for example, instead of writing

    If (event.target.name == "MenuTry.Nxt_btn")

    To write

    If (event.currentTarget.name == "Nxt_btn")

  • How do to navigate to another page when press the 'OK' button to confirm the dialogue?

    Hello
    In a detail of the page, I have a "Delete" button, and when you press this button, it will appear a confirmation dialog box, if the user click on 'Cancel', the dialog box is missing stay and still on the current page, if the user presses the "OK" button, it calls a method in the class ViewImple (do remove and other business process logic) and show a different page. The extract of the JSF page as follows:

    < text af:commandButton = 'Delete' action = 'delete' id = "cb3" >
    < af:showPopupBehavior popupId = "p1" triggerType = 'action' / >
    < / af:commandButton >
    < af:popup childCreation = autoCancel "delayed" = "disabled" id = "p1" contentDelivery = "immediate" >
    < af:dialog id = "d2" type = "okCancel" title = "Confirm deletion?" resize = 'off '.
    dialogListener = "#{scheduleBean.deleteScheduleDialog} ' contentWidth ="200""
    contentHeight = "50" >
    < af:outputText value = "Are you sure you want to delete this report?" id = "ot1" / >
    < af:clientListener type = "dialogue" method = "dialogAction" / >
    < / af:dialog >
    < / af:popup >
    < af:resource type = "javascript" >
    function dialogAction (evt) {}
    result of the var = evt.getOutcome ();
    if(Outcome == AdfDialogEvent.Outcome.Cancel) {}
    evt. Cancel();
    }
    }
    < / af:resource >

    Now the question is when I click on "OK" button confirm dialogue, dialogue is missing, but he can't get into the business logic in ViewImpl class method (the "delete" action value you access method adfc-config.xml file, and then navigate to another page), also click on the button 'Cancel' to stay on the current page.

    All tips will be of great help!

    You can use it as

    Navigate ("deletePage"); the adfc-config. XML

    public static navigate (String taskFlowName) Sub {}

    > FaceContext.getCurrentInstance () .getApplication () .getNavigationHandler () .handleNavigation (FaceContext.getCurrentInstance (), null, taskFlowName);

    }

    or for isnde action to propagate a method you have to use
    > MethodExpression exp =
    > (MethodExpression) ADFUtils.getMethodExpression ("deletePage");
    > getRegAgentNextBtn () .setActionExpression (exp);
    I hope that you ADFUtils with you

  • Make the button submit, and then redirect to another page

    Hello!
    I have a button of the region, when you press on "should" launch the Multi_row_update, then redirect to another page. I can't make it work well.

    I have the button BUTTON_1, I have the "after-submit' process that performs the MRU after this button is pressed.» I then created the conditional branch that is supposed to redirect. But it does not work. The page is not redirected. I tried to change the button to a redirect button, but then sending does not. How can I do both?

    Thank you!
    Jodie

    What is the sequence number of the one who is unconditional?
    I think that your unconditional branch on the same page may be taking over your conditional branch on page 55.

    -Chris

  • I continue to have a new page opens when I click on a button. For example, when I clicked on the "category" to access this page, another page open for Norton.

    For example, try to access this page caused another page opens with an advertisement of Norton. Happens not every time, but every 3 - 4 times. I got Redbox, QuiBids, RxConnection and ensure the car outside Norton. I can't figure out how to stop this.

    Hello OKHiltibrand, this looks like a problem caused by malicious software on your pc. Please go to firefox > addons > extensions and remove any suspicious entries (especially 3 layers Word, things that you have not installed intentionally, does not know what purpose they serve, etc.). also, go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software you have in place and various other tools such as the free version of malwarebytes & adwcleaner.

    Remove a toolbar that has supported your Firefox or the homepage search
    Fix Firefox problems caused by malicious software

  • Redirect to another page and hide the buttons

    Hello

    It is possibel to hide the buttons if I redirect on one page?

    Example:

    To Page 2, there is the 'Page 3' button. If someone clicks on the button will open the page 3.

    In Page 3, there are three buttons 'A', 'B' and 'C '.

    If I start on page 2 and change the site to click on the button 'Page 3' keys 'A' and 'B' will be hiding on page 3.

    If I start to on page 2 and the change of the site using the menu navigation on page three, all buttons will show up on this site.

    Workspace: TEST_OA5
    Username: [email protected]

    password: Hund456 (<-new password)

    Can someone help me?

    THX

    René

    RWErene81 wrote:

    It is possibel to hide the buttons if I redirect on one page?

    Example:

    To Page 2, there is the 'Page 3' button. If someone clicks on the button will open the page 3.

    In Page 3, there are three buttons 'A', 'B' and 'C '.

    If I start on page 2 and change the site to click on the button 'Page 3' keys 'A' and 'B' will be hiding on page 3.

    If I start on page 2 and change the site using the menu navigation on page three, all buttons will be displayed on this site.

    Add a value ask as PAGE_2_BUTTON for the button on page 2, and then make the buttons A and B on page 3, conditionally to aid a ask! = Expression 1 condition, with term 1 on PAGE_2_BUTTON.

  • How to make a 'yes' or 'no' radio button in a single page and "sync" the two to another page?

    Hello

    How the option button mirrored the choice made on page 3 of the 10 page? Thank you.

    Page 3:

    Page 10:

    Simply copy the fields from one page and paste them into the other. Just do

    of course, you check the option that says "buttons with the same name and choice".

    are selected in unison"under properties, Options tab.

Maybe you are looking for