Quiz with an action at end

Hi there,
I am writing a module and I have a section in this flash file where a quiz comes up and if you don't click on the right answer it tells you to try again. If you click on the right answer it will load the next swf file. But I can't get this last part to work. The quiz is within an xml file. I've included the code below for you guys to see and maybe help me. Thanks.
var current:Number = 0;
var qbox:Sprite = new Sprite;
var quiz:XML;
var xloader:URLLoader = new URLLoader();
qbox.x = 10;
qbox.y = 125;
this.addChild(qbox);
xloader.addEventListener(IOErrorEvent.IO_ERROR, onError);
xloader.addEventListener(Event.COMPLETE, onLoaded);
xloader.load(new URLRequest("quiz1.xml"));
function onError(e:IOErrorEvent):void {
trace("An error occured when attempting to load the XML:\r" + e.text);
function onLoaded(e:Event):void {
quiz = XML(e.target.data);
displayQuestion();
function displayQuestion():void {
while (qbox.numChildren > 0) {
qbox.removeChildAt(0);
question_txt.text = quiz.item[current].question;
var starty:Number = 0;
for each (var answeritem:XML in quiz.item[current].answer) {
var ansobj:Sprite = new Answer();
ansobj.y = starty;
ansobj.answer_txt.text = answeritem;
if (answeritem.@correct == "true") {
ansobj.correct = true;
qbox.addChild(ansobj);
starty += 55;
feedback_txt.text = "";
function setClick(correct:Boolean):void {
if (correct) {
feedback_txt.text = "Correct! " + quiz.item[current].explanation;
} else {
feedback_txt.text = "Sorry, that's wrong. Try again.";
So where it says "if(correct) {" on the bottom, I want the file this file to go to the next swf file not say "Correct!".

To load an swf file you need to look into using the Loader class.  To go to the next slide???  I can't answer that.  It depends on where (and what) the next slide is.  If it is in another frame, then you can use gotoAndStop(thatframenumber);

Similar Messages

  • Hyperlink with an action 'Go to a page in another document' in IE browser.

    When the PDF Document is opened in IE, Clicking on a Hyperlink with an action 'Go to a page in another document' is not navigating to the proper destination page.
    This happens when the destination document is already opened in IE once and cached.

    Hi Vinayaka,
    I am unable to replicate this at my end. I am using Acrobat 11.0.10 on Windows 7 and IE11
    Below are the steps I followed :
    Create a link and select the "Custom link" option, click "Next",  select the "Options" tab, select "Go to page view", click the "Add: button, open the file to the page you want to link to, click the "Set link" button.
    Regards,
    Rave

  • Multiple Choice Quiz with all possible answers weighted

    I am currently trying to create a multiple choice quiz with 29 questions nin captivate 5.5. Every question will have 4 answers similar to those on a standard survey (Strongly agree, Agree, Disagree, Strongly Diagree.) Dependent on the answer given I would like each answer to have a weighted value between 1-4  to give a final score which will be sectioned into 3 categories. I am able to weight a question but can't figure out how I can weight all answers per question. Any help would be grealy appreciated

    Hello and welcome to the forum
    You created custom question slides, I suppose? How familiar are you with advanced actions and variables? I published some articles and blog a lot about them. Here you'll find a list with articles, think that the first 1 of them could give you an idea how to proceed. Can you read them, and later I will try to help you if you are stuck. Will need some more details in that case about 'how I can weight all answers per question.' Moreover, do you want to report to a LMS or is the conclusion about the final score to provide feedback to the user?
    Lilybiri

  • Does anyone know how to connect an older 20" cinema display with the (ADC) adapter end and connect it to a MacBook Pro 17" 2008 model (DVI) ?????

    Does anyone know how to connect an older 20" cinema display with the (ADC) adapter end and connect it to a MacBook Pro 17" 2008 model (DVI) ?????

    I believe you naeed the Apple ADC to DVI adapter.

  • How can I create a new keyboard shortcut to toggle load images automatically preferrably with one action?

    I switch the load images automatically selection back and forth in order to save on my 5GB monthly data plan. Is there a utility that would allow me to create a macro of multiple keystrokes to do this with one action? Something like the macro function in Excel? Or is there another way to do this more easily than going to tools, options and clicking on the box? I don't see a shortcut for this item in the standard keyboard shortcuts list

    Hi,
    You could try [https://addons.mozilla.org/en-US/firefox/addon/image-block/?src=search Image Block]. Please also go through the reviews, help and ratings. You can also try to search for similar add-ons via Firefox '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''', Search box on the top right corner, or via the official [https://addons.mozilla.org/ AMO].

  • I have received an error message when trying to install 13 new apps for Creative Cloud. It reads: "Error There was an error with this action. Try again later.  7b1f5f56-79b3-4a0d-8fd2-137b1a3e6b67" I don't know what to do.

    I have received an error message when trying to install 13 new apps for Creative Cloud. It reads: "Error There was an error with this action. Try again later.  7b1f5f56-79b3-4a0d-8fd2-137b1a3e6b67" I don't know what to do.

    AppTrial1 where are you seeing this error exactly?  For information on how to install the Adobe Creative applications included with the Creative Cloud please see Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • Problem with PDF Actions in SAP MII 12.2

    hi all,
    I'm trying to generate PDF documentation work in 12.2 version of MII. Below are the steps followed as per note 1325997
    I've downloaded the PDF Actions files:
    Downloaded the iText.jar and iTextAsian.jar files.
    Custom action updated with PDFActions.jar as the assembly .jar file, and iText.jar and iTextAsian.jar as the dependency .jar files and Deployed the custom action.
    Workbench does show up with PDF action blocks like PDF Document, PDF Table...etc but seems to be an issue as these do not look like the standard actions with no icons attached to them.
    I've tried to create a new transaction and include any actions to the sequence, but no luck as it doesn't assigns the PDF action
    i've downloaded iText.Jar and iTeaxtAsian.jar files from iTEXT website. please inform if exact version i-e 1.4.5 files
    are available on SAP downloads (if any).
    Is anything missing..?
    Appreciate any efforts.....
    Regards,
    Zaigham

    Hi Zaigham,
    Follow the steps as mentioned below.
    1. Download PDFActions.jar as per SAP Note 1109054.
    2. Download iText 1.4.5 from http://www.java2s.com/Code/Jar/i/Downloaditext145jar.htm
    3. Download iTextAsian (Latest Version) from http://sourceforge.net/projects/itext/files/
        extrajars --> extrajars 2.0.zip
        After you unzip the files take only itext-asian.jar
    4. Rename itext-1.4.5.jar to iText.jar
    5. Rename itext-asian.jar to iTextAsian.jar
    6. Zip all the three files (PDFActions.jar, iText.jar and iTextAsian.jar) to one zip file and name it PDFActions.zip
    Final Step --> upload and deploy the zip file PDFActions.zip in MII custom Actions.
    Hope it solves your problem.
    Regards,
    Firoz.

  • Set value in tabular form field with dynamic action

    Hi Guys,
    I have a dummy field in a tabular form which I am trying to use to populate another field in the tabular form when it is changed.
    In the tabular form I have an ITEM_ID field. Each item_id has an ITEM_NAME which is the dummy field as it is not a field in the database table.
    When the user enters an item name, I would like something like a dynamic action to fire, populating the ITEM_ID.
    e.g User enters part no ABC into the dummy field. When they tab out, I want the value to the item_id field on the tabular form row to be populated based on a SQL query in a similar fashion to how it can be done with dynamic actions on text items on a form.
    I am using APEX v4.0.0
    Thanks in advance
    Chris

    Hello Chris,
    Why can't you use Select List Item on tabular form, which will display all item_names and return item_ids?
    If the list is huge and you need users to type & search, then you can use Pop-up LOV item.
    Regards,
    Hari

  • Getting Russell Brown's Image Processor Pro to work with an action

    I have Photoshop CS6 with Russell Brown's Image Processor Pro installed.
    I have the ongoing task of processing pics of different sizes and different width/height ratios.
    I would like to get the following result using IP Pro (in collaboration with an action):
    1. Downsize pic to 960 pixels wide (height doesn't matter, but needs to stay in ratio)
    2. Watermark pic.
    3. Save.
    4. Creating a thumbnail of 320 x 213 pixels, without distorting ratio. This may mean downsizing to 320 wide with relative height, *then* cropping via Image-Canvas Size. Chopping a bit off is preferable to me than distorting the ratio.
    5. Save the smaller version as 'Documentnamex' (i.e. adding an 'x' to the document name for the thumbnail.
    I have 1-3 in an action and have used it for years.
    But as for the task of a smaller thumbnail, kept in ratio but chopped and named with an x - I am stumped. I downloaded IP Pro for the task, but I can't get it to work.
    If I save the original with IP Pro (at step 3), how do I then get it to make the thumbnail?
    If I create the thumbnail in the action, *then* do 2 saves in IP Pro (thumbnail and 960 version), the bigger one will be pixelated (and no surprises there)
    Summary: I want 2 watermarked versions:
    1. 1234a.jpg: 960 pixels wide, height relative
    2. 1234ax.jpg: thumnail, 320 wide x 213 high
    Can anyone help? Am I asking too much of the software?

    I copied that .jsx file to a new name "Xbytor Image Processor Pro.jsx" edit that file changed the string Dr Browns services to "Xbytor Image Processor Pro" then commented out all the code that added tools menu items but "Image Processor Pro" and I put that file into
    "C:\Program Files (x86)\Common Files\Adobe\Startup Scripts CC\Adobe Bridge" even though Bridge CC is 64Bit seems to use theat location.
    Bridge CC was updated by the creative clouds update and opens Photoshop CC 2014 now

  • One JSP Coded in JSTL with an Action Link and a Form

    My JSP written in JSTL with an action link works fine. The checkboxes are well recognized ( I have a "form" specified in both the action mapping and form bean).
    <%@ page import="......common.pojo.user.User" %>
    <!-- Create a variable in scope called userRows from the Users object -->
    <c:set var="userRows" value="${requestScope.Users}" />
    <c:choose>
         <c:when test="${not empty userRows}">
              <!-- create a "user" object for each element in the userRows -->               
              <c:forEach var="user" items="${userRows}" varStatus="idx">
                      <c:choose>
                              <c:when test="${( idx.count+1 )%2==0}">
                                 <tr class="contentCell1">
                              </c:when>
                              <c:otherwise>
                                 <tr class="contentCell2">
                              </c:otherwise>
                      </c:choose>
                                           <td align="center">
                                                              <html-el:checkbox property="selectedUsers[${idx.index}].selected" />
                                                              <html-el:hidden property="selectedUsers[${idx.index}].id" value="${user.id}"/>
                                           </td>
                                           <td align="center"><c:out value="${user.createdByUserID}" /></td>
                                           <td align="center"><c:out value="${user.firstName}" /></td>
                                           <td align="center"><c:out value="${user.lastName}" /></td>
                             </tr>
              </c:forEach>
                        <tr>
                             <td colspan="6" align="left">
                                      <html-el:link action="/admin/selectUsers.do">Edit Selected Users</html-el:link>
                             </td>
                           </tr>
                   </table>
              </c:when>
              <c:otherwise>
                   <center><H1>No User Found.</H1></center>
              </c:otherwise>
         </c:choose>
    ......But, if I add another form (form B) with some textfield(s) and a submit button in between the opening <c:when ...> and <c:forEach ... > tag, I get the "runtime" JSP error: "cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope".
    The form B also works well. And varStatus="idx" and var="user" still work. The complaint points specifically to the <html-el:checkbox property="selectedUsers[${idx.index}].selected" />. The getter method for selectedUsers[0].selected can no longer be recognized:
    <%@ page import="......common.pojo.user.User" %>
    <!-- Create a variable in scope called userRows from the Users object -->
    <c:set var="userRows" value="${requestScope.Users}" />
    <c:choose>
         <c:when test="${not empty userRows}">
                                    <html-el:form action="/admin/findUsers.do">
                                               // many textfields and a submit button
                                    </html-el:form>
              <!-- create a "user" object for each element in the userRows -->               
              <c:forEach var="user" items="${userRows}" varStatus="idx">
                      <c:choose>
                              <c:when test="${( idx.count+1 )%2==0}">
                                 <tr class="contentCell1">
                              </c:when>
                              <c:otherwise>
                                 <tr class="contentCell2">
                              </c:otherwise>
                      </c:choose>
                                           <td align="center">
                                                              <html-el:checkbox property="selectedUsers[${idx.index}].selected" />
                                                              <html-el:hidden property="selectedUsers[${idx.index}].id" value="${user.id}"/>
                                           </td>
                                           <td align="center"><c:out value="${user.createdByUserID}" /></td>
                                           <td align="center"><c:out value="${user.firstName}" /></td>
                                           <td align="center"><c:out value="${user.lastName}" /></td>
                             </tr>
              </c:forEach>
                        <tr>
                             <td colspan="6" align="left">
                                      <html-el:link action="/admin/selectUsers.do">Edit Selected Users</html-el:link>
                             </td>
                           </tr>
                   </table>
              </c:when>
              <c:otherwise>
                   <center><H1>No User Found.</H1></center>
              </c:otherwise>
         </c:choose>
    ......

    Hi,
    your strtus config file looks like
    <form-beans >
    <form-bean name="manageAuditFindingsForm" type="com.lib.struts.form.ManageAuditFindingsForm" />
    </form-beans >
    <action
          attribute="manageAuditFindingsForm"
          input="/New.jsp"
          name="manageAuditFindingsForm"
          path="/manageauditfindings"
          scope="request"
          type="com.lib.struts.action.ManageAuditFindingsAction">
          <forward name="success" path="/AuditFindings.jsp" />
        </action>Thanks
    Edward

  • Image with URL action in a table

    Hi,
    it is possible to assign a hyperlink to an image so o click an window with the given URL will open. How can I do this with an image wihtin a table. I assign the same URL action but the image is not clickable although the table is set to selectable and editable. Can anybody help?
    Thanks in advance!
    Regards,
    Kevin

    Hi Kevin,
    You can define an Image control uppon a Grid that has Resutls (with URL action as you did ).
    If your grid with no results the Image won't be clickable.
    Another importent thing for you to notice is the image scale-mode (make sure that it's on Original-size/ fit to scale).
    - if you still having problem regardring this issue, please replay with your Visual-Composer version.
    Thanks,
    Kobi.

  • Is it ok to have a interactive notification with an action , which initiates a phone call

    Is it ok to have a interactive notification with an action , which initiates a phone call

    BPerlman wrote:
    1.  I can't choose fixed point representation when I have a dial or knob control.  the "FXP" option is disabled.
    2.  The help tells me to set the range and desired delta, but they seem to be read only!
    3.  Why do you suggest a range of 0..1 and multiply by 360, rather than a range of 0..360 in the first place?
    Interesting. I wasn't aware if this limitation. I guess it only works for simple controls. (Here's an idea!)
    You cannot set the range and delta, they are the results of the "word lenght" and "integer word lenght". These are tightly limited by the underlying binary representation.
    In this particular case, you could chose a word lenght of 12 bits and integer word lenght of zero bits, giving you an increment of exactly 1/4096 (The display is unfortunately rounded to four decimal digits and does not show the full resolution) (Here's another idea!)
    LabVIEW Champion . Do more with less code and in less time .

  • Evaluation of the Quiz with more pools

    Hello, my second ask ..
    Example: I have the quiz with three pools, every pool has
    couple of question about one theme. One is about math, second about
    history and third about language. The quiz has 10 questions from
    first, 15 questions from second and 8 questions from third pool.
    When i take this quiz i want resume, where is:
    Your Math is 50% and score 5
    Your History is 33% and score 5
    Your Language is 100% and score 8.
    The whole quiz is 55% and score 18, you failed.
    I hope that you understand .. i need resume from every pool
    separately and one resume of the whole quiz
    How can i do it?
    (i'm sorry, i'm Czech and my english is not good. :-)
    )

    Hello there MisaCZ,
    At present Adobe Captivate does not provide you with the
    ability to display the scores from individual Question Pools, you
    can only display the score for the entire quiz. I do like the idea
    of being able to display scores from individual pools though as
    well as the entire quiz and would recommend that you submit this as
    a feature request using the
    Adobe
    Captivate Feature Request/Bug Report Form
    Regards - Mark

  • Can we Hide/Show the Mouse with an Action or a Script?

    Hello All,
    I am developing a simulation using click boxes in Captivate 4, on Windows XP. If the user doesn't click the right place, the slide continues, and shows the user what to do. If the user clicks the correct place, the simulation goes to the next slide directly. The problem is, successful or not, when the user goes to the next slide, the recorded mouse pointer displays on the slide. If I hide the mouse, then it remains hidden even if the user clicks outside the box too many times and the simulation continues, to show the user what to do. It's as if things on the screen just select or click themselves.
    I know mouse visibility is treated differently in the timeline than other objects. That's not a particularly big deal, so long as there is some way to control the mouse visibility for simulations (one of Captivate's big selling points). Is there a way to control the mouse visibility with an Action or with Script?
    The current settings for my click boxes are:
    I tried to assign an Action (multiple actions, really) to hide, show, enable, or disable the mouse but the mouse doesn't seem to be available to do so!
    Am I missing something?
    Thanks,
    ~jeff

    Hi there
    Nope, the mouse is an all or nothing object. It's either visible or not and it's your choice as to what you show. No way I'm aware of to programmatically display it. All I might suggest is that if you want to show the user the mouse moving, duplicate the slide so that if they fail to click the right area, the duplicated slide has the mouse moving to demonstrate.
    Oh, and consider submitting a Wish Form to ask for the capability in some future version of Captivate.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Help with folder actions

    Automator is still a little confusing to me, I have virtually no experience, but wish to have automated emails sent when the contents of certain folders in my idisk/public folder are updated.
    First thing that confuses me is I thought automator worked with folder actions, it doesn't seem to for me and am left running an applescript to detect the changes and tell automator to send the email. This seems rather long winded and not what I'd expected.
    Second thing I can get what I've done to send emails when items are added to the folder, but not when they are modified/updated which is what I wanted. This is due to my lack of experience with scripting so any help would be appreciated.
    What I've got so far is
    '....on adding folder items to this_folder after receiving added_items
    try
    tell application "Automator".....'
    how do I change this to do what I want ?

    Winston,
    You need to save the Automator workflow as a folder action plug-in with it attached to the folder of interest. You start this process by selecting the "Save as Plug-in..." command under the File menu. You will then have to enter the name you want to use for the plug-in and select the "folder action" from the "Plug in for:" drop-down menu. An "Attached to Folder:" drop-down menu will appear and you can select one of those presented or navigate to something else by selecting the "Other..." choice (which you will have to do to get to your idisk/public folder).
    Once this is done then every time something is added or modified within the watched folder the Automator workflow will be triggered and run. In your case, because the folder is on iDisk, it will only be triggered when you are logged into your iDisk account.

Maybe you are looking for

  • IPC Pricing routine

    Hi all, I have created new pricing user routines. I am trying to create the JAVA code by myself, so can anyone helps me letting me know how the following code would be in Java?: Data: va_value type type komp-wavwr,          wa-xkomv like xkomv.      

  • Why did my external monitor stop working

    I bought a brand new iMac on Saturday. Came home. Migrated from my MBAir (mid-2011). Plugged in my Samsung 27' TV (via Moshi HDMI to Thunderbolt converter) and it worked just great. Beautiful picture on both iMac 27 AND Samsung...Until this morning.

  • How to import a range in Function module?

    I am using a Function module in which material is getting imported. In the import tab we have Parameter Name    Typing     Associated Type       optional          pass value IM_MATERIAL       TYPE       MATNR                 <checked>         <checke

  • How to modify a variant

    How to modify the variant for a batch job, which is to include 2 countries for a job. Please let me know the tcode.

  • Xntpd on Solaris 10 gets synchronised with a higher stratum NTP server

    The Solaris 10 machine has the following configuration in etc/inet/ntp.conf server 10.24.179.33 prefer server 127.127.1.0 fudge 127.127.1.0 stratum 8 The Linux Fedora Core 4 test machine(10.24.179.33 ) configured as NTP server running ntpd V4 has the