Individual feedback for each option

Hi all/Ned
Below are links to my fla and swf files. Having been succesfully helped by Ned to resolve one problem, i now find myself facing another. Although in some ways its not a problem because i can get the code to work however as Ned has pointed out i have duplicate code. So what i would like to do is amend the code in the .fla file attached so that each user views indvidual feedback after they have clicked on each checkbox. The question in the swf file is
click on each of  the options below to learn about the different pieces of fruit?
apple
pear
bananas
grapes
http://www.4shared.com/video/3BdyKrmu/Quiz1.html
http://www.4shared.com/file/-ZI8zzvr/Quiz1.html
Ned: i thought it would be best to start a new thread as you had actually solved my problem. hope you can help if you have time.
thanks

I'm still going to show the adjusted code I provided in the other posting.  To have individual feedback for each checkbox you can take the if/else approach you mentioned in the other posting.  I don't know how the ans1 variable is being handled, so I just left it where b is the correct answer...
var ans1 = 0;
var checkboxListener:Object = new Object();
checkboxListener.click = function(evt_obj:Object) {
if (evt_obj.target.selected) {
  checkBox1a.selected = false;
  checkBox1b.selected = false;
  checkBox1c.selected = false;
  checkBox1d.selected = false;
  evt_obj.target.selected = true;
  if(evt_obj.target == checkBox1a){
     txtOutput.text="You picked an apple";
     ans1 = 0;
  } else  if(evt_obj.target == checkBox1b){
     txtOutput.text="You picked a pear";
     ans1 = 1;
  } else  if(evt_obj.target == checkBox1c){
     txtOutput.text="You picked bananas";
     ans1 = 0;
  } else  if(evt_obj.target == checkBox1d){
     txtOutput.text="You picked grapes";
     ans1 = 0;
} else {
  ans1 = 0;
  txtOutput.text = "";
checkBox1a.addEventListener("click", checkboxListener);
checkBox1b.addEventListener("click", checkboxListener);
checkBox1c.addEventListener("click", checkboxListener);
checkBox1d.addEventListener("click", checkboxListener);

Similar Messages

  • If I have two email accounts, one personal hotmail account and one MS Exchange work account, how can I setup individual notifications for each account. Right now, any email from any account has the same notification. I want work to be different than perso

    If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
    Thanks

    Sorry you get only one notification sound for all email accounts.  you can send a suggestion to apple here http://www.apple.com/feedback/

  • Individual ringtones for each contact?

    So, the manual showed me how to change my ringtone but how do I assign an individual ringtone for each of my contacts? Thanks for your help.

    Here are the steps to select  a ringtone and save with a contact. Hope this helps!
    o assign a ringtone to a contact follow the steps below:
    1. Press the left soft key for Contacts
    2. Select the contact for which you would like to assign a ringtone, using the navigational key.
     3. Press the right soft key for Options
     4. Choose Edit
     5. Use the right navigational keys and select assign ringer
     6. Press the select soft key and save to complete the action.

  • Currently using Lightroom 5 as a standalone on a mac and two windows machines one desktop one laptop. with CC can i still use all the machines or do i have to take out an individual license for each?

    with CC can i still use all the machines or do i have to take out an individual license for each?

    Your LR5 license allows for activated installations on two machines.  Of those two machine, only one can be using the licensed software at a given time.  The same applies with CC, except with CC you won't be able to sneak in the third machine.  What you can do though with CC is have it installed on all three and sign in and out of the different machines as needed.
    If you intend to be using all three machines at the same time then you do need three separate licenses/subscriptions to be in compliance with the license agreement.

  • Slideshow  with individual timing for each photo just does NOT work!

    i am in slideshow mode with all the jpegs on top
    i go to settings
    it has DEFAULT settings for the entire slideshow
    it does not say each photo gets its own timing.
    the arrows for the transition direction are greyed out
    am i the only one who cant get this?
    where does it say set a time for each individual photo
    at the end of my rope
    OT or anyone have you got a way to explain how to get individual timings for each jpeg in a slideshow ( source )

    yeah i got it working and it certainly can be done in iphoto
    there is so much arduous work one has to do to learn these i lives!!!!
    you first send it to DVD
    then it lands in iphoto
    and you can absolutely do what you said one cant cos i just did it.
    what a day all day long a learning curve for sure.

  • Individual sitemaps for each website

    Hello,
    We are building a website for one of our customers using Adobe Business Catalyst platform.
    We want to implement the sitemap function but we have some issues with the default available setup.
    Our customer website is a Multilanguage/multi domain website.
    The setup is like this:
    1. Root folder is the website for domain.com (UK – language used is English)
    2. Root/au folder is the website for au.domain.com (Australia – language used is English)
    3. Root/be folder is the website for be.domain.com (Belgium – language used is French)
    4. Root/br folder is the website for br.domain.com (Brazil – language used is Portuguese)
    5. Root/ca folder is the website for ca.domain.com (Canada – language used is English)
    1. Root/ca/fr folder is the website for ca.domain.com/fr/ (Canada – language used is French)
    6. Root/ch folder is the website for ch.domain.com (Switzerland – language used is French)
    1. Root/ch/de folder is the website for ch.domain.com/de/ (Switzerland – language used is German)
    2. Root/ch/it folder is the website for ch.domain.com/it/ (Switzerland – language used is Italian)
    7. Root/de folder is the website for de.domain.com (Germany – language used is German)
    8. Root/es folder is the website for es.domain.com (Spain – language used is Spanish)
    9. Root/fr folder is the website for fr.domain.com (France – language used is French)
    10. Root/it folder is the website for it.domain.com (Italy – language used is Italian)
    11. Root/pl folder is the website for pl.domain.com (Poland – language used is Polish)
    12. Root/us folder is the website for us.domain.com (USA – language used is English)
    We want to implement individual sitemaps for each website (folder in which the website files reside).
    The current sitemap is quite a mess because it's just one file with all the pages, webapps from all websites.
    How can we improve it?

    The current sitemap is quite a mess because it's just one file with all the pages, webapps from all websites.
    Are you referring to the automatically generated /sitemap.xml file? Remember that the sitemap xml spec has no indicators of heirarchy, it's just a flat unordered list of URLs. You can have multiple sitemap xml files though, using a sitemap-index.xml file. If you take this approach, you'll need to hand-edit the xml, or find a tool that will generate it for you. Don't forget to override the /sitemap.xml file, and place a link to your sitemap(s) in /robots.txt.

  • How to get top 10 records for each option in table prompt?

    Hi,
    I have created one report in which my requirement is to get top 10 highest salaries for each departments. I have created one table prompt which contains the names of all departments. On the salary column I have applied one filter i.e. TOP 10. Currently I am having 3 departments. I want to show the top 10 salaries for each department, but I am getting top 3 from first, 4 from second and 3 from third.They are calculating top 10 salaries based on all departments, not on individual department. How can I get top 10 salaries for each department?

    Hi,
    Use TopN function in your column formula.
    Ex: TOPN("Sales ,5 BY department)
    Thanks,
    Satya

  • Individual itemRenderer for each item in TileList

    I currently have a tilelist with 6 items in it. I would like each item to be renderered slightly different. I know I can set the itemRenderer attribute of TileList but is it possible to set a different itemRenderer for each individual Object in the TileList?
    My code currently looks like this:
    <mx:TileList itemRenderer="myContainer1">
         <Object />
         <Object />
         <Object />
         <Object />
         <Object />
         <Object />
    </mx:TileList>

    Yes you can assign different components per row,
    use <ViewStack..
                 <HBox1 />
                 <HBox2 />
                 <HBox3 /> & so on..
    selectedIndex for ViewStack you can specify as per requirement like you can maintain internally rowIndex 0 to n & this you can assign to ViewStack
    selectedIndex={data.rowIndex}

  • User wants individual url for each deployed application

    We have about 20 j2ee applications deployed on iAS, using separate oc4j containers. They have been accessing the applications with the contextroots. Now, our users would like to access the individual applications with a unique URL. ie, instead of server:port/app01, they would like app01-server:port.
    I managed to use apache rewrite to make it work for 1 application, but it would be a mess to do it for 20+ applications. Does anyone know of a better way?
    Thanks.

    hi
    the table where d i s c o unt is XXNP_OPN_JOBLOG_001 here there is a primary key opn_joblog_001_id(data block xxnp_jl_001)
    the table where slurry is XXNP_OPN_JOBLOG_SLURRY_003(data block XXNP_SLURRY_OO1) here apart from its primary key opn_joblog_007_id the same column opn_joblog_001_id is also presentkindly guide
    thanking in advance
    Edited by: makdutakdu on Dec 18, 2011 2:47 PM
    Edited by: makdutakdu on Dec 18, 2011 2:47 PM

  • Individual passcodes for each app?

    Is there an app that allows you to create a passcode to open any individual app? Not just for photos  or video?

    More description?
    Can you flesh that out?
    There are password wallets that can do SOME of what you seem to ask for - though not entirely by application.
    Look at Lastpass & 1 Password, just as 2 examples. (Others may suit you as well, or better).
    Are you talking about 2 step verification type of process?
    That will generate a separate password for 3rd party apps, such as calendar helpers without requiring you to provide such developers with your actual Apple passwords: they get their own.

  • Between our family,the 5 of us we have 11 devices: 5 ipods, 1 ipad,3 itouches and 1 iphone but only 1 itunes acct. Having problems when we log in-anyway around setting up individual accts for each person?

    Within our family, the 5 of us we have 11 devices: 5 ipods, 1 ipad, 3 itouches, and 1 iphone4 {+ a mac laptop} but only 1 itunes account. We are having problems logging into itunes. Friends have said our problem is either: you can only have 5 devices on 1 account or you have home sharing maxed out {we have the itunes loaded on 4 computers + my computer at work}. ... not sure how we can resolve this. Do I have to set each person up with an itunes account? Seems werid my kids under 12 having their own account. please advise.. with the populairty of apple devices, I would think others have this same problem???

    jbrooker, I am having a similar issue to roaminggnome, we have 4 windows laptops, 2 iPhones, 5 ipods.
    I have the iTunes account and the music Library on my laptop and this is used to sync to my iPhone and 4 iPods = 5 devices.
    I have managed to share my library with my wifes laptop and she can access it when my PC is not on, she is also able to sync her iPhone to her laptop. She has her own iTunes account.
    My son has an iPod and laptop but no iTunes account, his iPod is synced to my laptop and my iTunes account. But his laptop cannot download my iTunes Library he is getting a message saying that my iTunes account is synced to the maximum of 5 devices. Thus he can only see the library when my laptop is at home (and I take my Laptop to work etc).
    Would this problem go away if my son has an iTunes account? He's only 11yo so I'm reluctant to set him up with one just yet.
    Any advice would be appreciated.
    Cheers.

  • Illustrator creates individual circles for each value rather than creating one pie chart

    Illustrator makes these:
    Instead of this:
    What am I doing wrong?

    Apparently the problem is that I enterd in the data vertically instead of horizontally. So, nevermind.

  • Different responses for each wrong answer - possible?

    Hello! 
    I'm a Captivate newbie and can't figure out how to set up my questions so that there is a different response for each incorrect answer.  So rather than having just "incorrect, try again" (or something like that) when the learner makes a mistake, I can have phrases like "not quite right.  The vertical axis should be slightly more inverted.  Try again."  and "Nope, not right.  The horizontal axis has too high a slope."  which would appear depending on which incorrect answer the learner chose.  Hope this makes sense.
    Can anyone help?  Thanks!!

    You can do that for single answer choice type of questions.
    Double-click the option, select the Advanced Answer check box and Show Feedback Message check box from the Advanced Actions accordion of Properties. You will now get a new text box where you can add the feedback for that option.
    See the screenshot for reference.
    Sreekanth

  • Individual mailboxes for .mac mail

    I love this software. The only thing i'm trying to figure out is how to create individual mailboxes for each alias I've created. I would love to have each alias mail delivered to its appropriate box. If you can give some feedback on this topic I'd really apreciate it.
    Thanks

    Assuming you are referring to a .Mac account alias email address, messages addressed to your .Mac email alias will arrive in your .Mac account inbox which cannot be changed. All mailboxes under Inbox, Drafts, Sent, Trash and Junk in the Mail.app mailboxes drawer are created and managed automatically by Mail.
    You can create an "On My Mac" location mailbox for each alias email address and then create a Rule in Mail to automatically transfer messages addressed to an alias email address to the designated mailbox for the address but none of these mailboxes will be located under Inbox in the mailboxes drawer.

  • How do I set up individual accounts for our families three iPods, while being able to use the same music library?

    My family has three iPod touches. They are all different. We want to be able to set up individual accounts for each of them.  When we have them all under the same account, every time we sync, they sync the last person's music and app choices. Help.

    Yu can use the same account.  Just in the Music and App and other panes for the iPod check the boxes that say sync only checked item.  You do not want to check sync the entire library.
    See:
    How to use multiple iPods, iPads, or iPhones with one computer
    For using different accounts also see:
    iTunes: How to share music between different accounts on a single computer
    Yu can use Home Sharing (iTunes>Advancedtab>Home sharing)

Maybe you are looking for

  • Ipod cannot be synced unknown error occured (-48)

    _Help needed please!_ I've just got a new laptop, downloaded the latest version of itunes on it, connected my ipod to it (old click wheel version 20GB) and this error message keeps popping up: *'The ipod "ipods name" cannot be synced. An unknown erro

  • Re: [SunONE-JATO] Re: Using an object to store and display data

    Personally, I think there is little or no value to creating a "domain" object that itself relies on a JATO QueryModel internally, but hides that fact and requires use of BeanAdapterModel. It would be more appropriate (and much less work, and more sca

  • Get title tracks grayed out....

    Have made switch from Windows to Mac. I had my I-Tunes library on an external hard drive. I copied my library over but it did not copy most of the album art & none of the title tracks are there. Was able to get the album art. I went up to "Advanced"

  • Oracle OpenWorld and JavaOne Are Combined This Year – Book Hotel Early

    Hi All, Just noticed that the JavaOne conference is happening the same week as OOW this year. I just booked my hotel. Think SF hotels will sell out early with both of these conferences at the same time. The good news is even if there is not a good Si

  • Testing of Java-Based Webdynpro application in NWDS

    hi Hi I would like to test Java-Based webdynpro application in NWDS I am able to start and stop recording. But when press Start Replay Button. i am getting this error in the lower text area where messages area; <b>ERROR: Invalid Xml document received