I need to reset, clear or deselect a group of radio buttons

I haven't been able to find the answer to this: I have a quiz-like animation that uses a group of radio buttons, I need the group to reset, clear or deselect the previous selection after submitting the answer on each question, is that possible?
Here is the code:
stop();
var messageBox:TextField = new TextField();
messageBox.text = "";
addChild(messageBox);
messageBox.textColor = 0xFF0000;
messageBox.width = 200;
messageBox.height =100;
messageBox.x = 450;
messageBox.y = 340;
var userAnswer:int;
var rbg:Object = rbA.group;
var finalScore:int;
btnCheck.addEventListener(MouseEvent.CLICK, nextBtn);
function nextBtn(evt:MouseEvent):void {
userAnswer = int(rbg.selectedData);
            if(userAnswer == 0) {messageBox.text = "PLEASE SELECT AN OPTION";
}else{
finalScore = finalScore + userAnswer;
messageBox.text = "";
nextFrame();
btnFinish.addEventListener(MouseEvent.CLICK, finishBtn);
function finishBtn (evt:MouseEvent):void {
userAnswer = int(rbg.selectedData);
if(userAnswer == 0) {messageBox.text = "PLEASE SELECT AN OPTION";
}else{
finalScore = finalScore + userAnswer;
if (finalScore > 13){ gotoAndStop(8);
}else if (finalScore > 9){ gotoAndStop(7);
}else if (finalScore > 4){ gotoAndStop(6);
}else {}
startOver.addEventListener(MouseEvent.CLICK, reStart);
function reStart(evt:MouseEvent):void {
gotoAndStop(1);
finalScore = 0;

I'm all ears on this one because I checked into this the first time I saw this posting back whenever and couldn't find the solution.  And now I built something that tries to make it happen, and it doesn't.  In the AS3 help docs it doesn't say gets or sets, whereas in the AS2 docs it goes on about doing such things with that property... so maybe they changed the compnent for AS3?
Here's what I concocted building off a help docs example.  rb3 and rb4 are basically there just to reset rb1 and rb2:
import fl.controls.RadioButton;
import fl.controls.RadioButtonGroup;
var rbg1:RadioButtonGroup = new RadioButtonGroup("group1");
var rbg2:RadioButtonGroup = new RadioButtonGroup("group2");
var rb1:RadioButton = new RadioButton();
var rb2:RadioButton = new RadioButton();
var rb3:RadioButton = new RadioButton();
var rb4:RadioButton = new RadioButton();
rb1.group = rbg1;
rb2.group = rbg1;
rb3.group = rbg2;
rb4.group = rbg2;
rb1.move(10,10);
rb2.move(10,50);
rb3.move(150,10);
rb4.move(150,50);
addChild(rb1);
addChild(rb2);
addChild(rb3);
addChild(rb4);
function resetGroup1(evt:MouseEvent){
rbg1.selection.selected = false;
rb1.selected = false;
rb2.selected = false;
rb3.addEventListener(MouseEvent.CLICK, resetGroup1);
rb4.addEventListener(MouseEvent.CLICK, resetGroup1);
I rarely use radio buttons components.  If I need them, I usually create my own using movieclips.  If you go this route then you'll be able to decide what they can do, you just need to create the functions for controlling their behavior as a group..

Similar Messages

  • HELP! I need help to understand how to get value on radio buttons!

    hello,
    I realy need the help from anyone that knows how to get value from radio buttons in a JSP.
    I have this :
    <%
    java.util.Vector vLinha = (java.util.Vector) datos.get("ConsNefect");
              java.util.Hashtable ordens;
              java.util.Enumeration eLinha = vLinha.elements();
              String t = "radio";
              String x = "escolha";
              String l = "";
    int i = 0;
              //int esc = 0;
    String fila = "";                         
              boolean bol = true;
    while (eLinha.hasMoreElements())
    ordens = (com.ibm.dse.base.Hashtable) eLinha.nextElement();     
              if (++i%2 == 0)
    fila = "formgriscla";
    else
    fila = "formgrisosc";
    out.println("<tr>");
    out.println("<td class=\"" + fila + "\">");
    out.print("<p class=\"dato2\">");          
              out.print("<a href=" + urls.get("action"));
         out.print("&sequencia=" + (String) ordens.get("sequencia"));                    
         out.print(">");
              out.print((String) ordens.get("descricao"));
         out.print("</a></p></td>");
              out.println("<td class=\"" + fila + "\">");
    out.print("<p class=\"datop\">");          
              out.print((String) ordens.get("datap"));
    out.print("</p>");
    out.println("<td class=\"" + fila + "\">");
    out.print("<p class=\"datop\">");
    out.print((String) ordens.get("erro"));
              out.print("</p>");
              out.println("<td class=\"" + fila + "\">");
              out.print("<p class=\"datop\">");     
              l = (String) ordens.get("sequencia");     
              out.println("<input type=\"" + t + "\" name=\"" + x + "\" value=\"" + l + "\">");          
              out.print("</p></td>");      
              out.println("</tr>");
              //esc++;
    %>
    <!--input type="Hidden" name="escolha" value=<!--%l%>-->
    <!--input type="Hidden" name="escolha" value="<!--%=escolha%>"-->
    </td>
    </tr>
    I don�t know how to take the value... PLEASE HELP ME OUT!
    THANKS TO ALL!,
    Best wishes,
    Alex (portugal)

    You must wrap your contents into a FORM element and, then, using getParameter("escolha"), retrieve your value.

  • A automatic reset cleared items

    Hi, the customer had executing for error with the f.13.
    i need to reset clearing items for many FI documents. I know there s a t-code fbra but it can use just one document.
    Is possible or exactly, is there s the Sap standard report can be massive reset cleared items many documents?
    Than you for the attention.
    Kind regards.

    There is no mass reset functionality, but you can use LSMW or eCATT to record FBRA with the help of tec team(Abaper)
    Reset Cleared Items Massively
    Srinivas

  • How to reset clearing items programmaticaly?

    Hi !
    I need to reset clearing items from ABAP. I've tried to use the CALL_FBRA, but in simulation mode I it says that the period is closed? what parameters should I use? is this the way??
    Regards,
    Matias.

    Hi Sunil !
    Thanks, for answering.
    The posting period should not be a problem. If I go manually to the FBRA tx via SAPGUI, and I enter one document number whose date is in a closed period and select "reset only", it resets the document automatically without problems. It works.
    BUT, if I try to use the call_fbra, for that same document, it says that the posting period is closed. If I try to specify a date for I_STODT, to make call_fbra use this, it keeps saying the posting period is closed for mode 01...but I'm not specifing any mode...in fact, I don't know how to specify it.
    Any clues.
    Regards,
    Matias

  • How to unselect / deselect a radio button in Reader?

    How do you unselect / deselect a radio button in Reader? Like if you have a group of radio buttons with three choices, and the end-user selects one but then wants to unselect / deselect the choice and leave that radio button group blank / unanswered.
    Thanks,

    You should be able to go to the Forms menu, and the last option is to clear the fields.  It will take all of the information out of the form, but it will also clear out the radio buttons.  I hope that this helps!  Have a great day!

  • Need 2 different radio button icons

    I have a project using 2 groups of radio buttons. Each group
    needs its own icon. I can skin the RadioButton Asset, but that
    affects ALL radio buttons. I guess U need to be able to change the
    icon property on an instance-by-instance basis. I don’t speak
    enough Actionscript to do this without help.
    Anybody know how to do this?

    Do this from the system preferences window.
    Click on Users&Groups.
    Click on the padlock (bottom left) to unlock it if it's not unlocked.
    Then highlight the account in the left pane that you want to remove...
    and then click on the MINUS symbol on the bottom left of that window.
    Just make sure when you delete an account, that you're currently NOT LOGGED INTO that account, or it's not going to work.
    Feel free to chose the delete home-folder option when it prompts you.

  • Trying to reset a radio button

    Hi Experts,
      I am trying to modify the Bank application in ESS. In there, I have a drop down and a group of radio buttons by Index. When users select "Check" from the drop down, I would like "Paper Check" button to be selected. When users select "Direct Deposit" from drop down, I would like "Checking" radio button to be selected. I have tried a lot of different ways, but it does not work. Any help will be greatly appreciated.
    Thanks a lot
    Preet

    Thanks for taking time to answer my question. I am using NWDS to modify the code. I was looking for an actual code sample which will reset the radio buttons.
    Thanks
    Preet

  • Reset cleared item in inactive fiscal year using FBRA

    I want to Reset cleared item document in 2006, but now Im in active fiscal year 2008 using T-code FBRA. The error message show Reversal in different fiscal year is not allowed Message no. AA 487
    Does any body could help to let me know the configuration to open it?

    Hi,
    When we maintain GL accounts/sub ledgers with open item management, we clear docuemnts when the debit and the credit match. This clearing also creates a clearing document. Clearing documents cannot be reversed using F.08. For reversing clearing we need to first reset the documents as open items and then reverse it.
    For example I have an invoice no 1234. This invoice will remain open till i receive a payment. When I receive a payment a new document is created (no. 5678) when i enter the receipt and this document also becomes the clearing document. Now due to some error, when we have to reverse this payment document, we use FBRA. When we use this, the system will first reset the documents 1234 and 5678 as open items and then reverse the document 5678.
    hope this helps.
    thanks and regards,
    anit

  • Reset cleared items

    hello,
      what is the difference between reset cleared itmes and reset & reverse cleared items in fbra , please let me know.

    When items are open-item managed and you have mistakenly cleared an item, this transaction can be used to reset these cleared items.  If in the process of clearing the item a document was created, this document should most probably also be reversed.  FBRA allows you to complete both these functions in one transaction codes.  An example is if you run the payment program F110 and you have created the payment medium, but have not yet printed checks (that would be a different t-code), and you realized that some items are either missing or should not be on the check.  You will need to reset the documents DR and reverse the document DZ. 
    Good Luck,
    Kevin

  • Why does the iTunes AppleID system refuse to work properly without the need to reset the password every time I open iTunes for use?

    Alright so here is the issue. When I first started using iTunes I created my AppleID. I locked it in to remember my password and authorize my computer so that I would NEVER HAVE TO ENTER IT AGAIN. So years pass, no problem. Then "ITUNES 11" come on everyone lets upgrade or you can't proper use the iTunes Store. Seriously it wouldn't let me access the store. Go Figure. So I upgrade simple right? No. It really isn't when iTunes 11 rolled out it was riddled with minor bugs that made the experience annoying so I did a rollback and live without the store for awhile.
    About a year passes and I try again this time upgrading iTunes through a COMPLETE fresh install, again I did what had done the first time I logged my AppleID and reauthorized my computer. Hurrah other than getting use to the new UI it ran perfectly. Yes Finally! Right? Again.... No. No more than 2 or 3 software updates later suddenly my password for my AppleID is incorrect I was like "Okay?" and re-entered it thinking the big update cleared my settings.
    Wrong Password please reset password to continue using the iTunes store.
    I was like okay maybe the user agreement change and we all need to reset passwords and re-accept the EUA. So I go through the process to create a new password successfully and reset my AppleID in iTunes with the new password. Come back a few weeks later it happens again this time I enter my new password and what do I get?
    Wrong Password please reset password to continue using the iTunes store.
    So I first do a repair install to my iTunes than reset my password this time NOT setting it to remember password. Great everything works fine again password even matched my Home CompID so that I could NEVER lose it well come a few days later I try to use the store and what happens?
    Wrong Password please reset password to continue using the iTunes store.
    to try to make my Long story a little shorter....
    This has been going on for the better part of 3 years I have almost completely dropped iTunes which has the better store library for Goggle Play Music who's store library isn't even a third the size iTunes has because their system works and my log-in is my e-mail. I repeatedly completely uninstalled iTunes and wiped it from my registry in hope a clean install would fix the problem but it never does.
    My OS is Vista Home Premium Edition 32-bit and no picking on my OS I been working to get a new computer but that isn't happening anytime soon so I work with what I got.

    Even removing the .xml files doesn't make a difference. Also, I now installed another update of iTunes, but still having the same problem, and this time there are no .xml files or preference files whatsoever in the Application Data and Local Settings\Application Data iTunes folders. It seems like for some reason iTunes is unable to create these. What should I do?

  • Error Rounding Difference too high when reset cleared document using FBRA

    My Client has posted cleared document with T_Code F-51. This cleared document has cleared 6040 open items.
    And now, they want to reset and reverse that cleared document.
    We found error "Rounding difference too high" when we are reset cleared document using FBRA.
    Kindly need your advice.
    Many thanks in advance.
    Regards,

    Hello,
    Please let me know the ERROR number.
    Regards,
    Ravi

  • Reset Cleared Doc - Balance of the line item is not zero" Message no. F5136

    I have this error : Balance of the line item is not zero" Message no. F5136
    This error arise when we tried to reset cleared document dated June 6,2007 during data migration from Legacy system to SAP.
    We wanted to reset this cleared document because it was wrong executed (cleared) way back 2007.
    The entries are:
    Debit to GL (B/S) --> 3,758.48
    Credit (1100039-Vendor) with special GL (408319) --> 3,758.48
    =====================================================
    For us to correct the clearing, we need to reset first the cleared document  via FBRA, however, this error arise saying "Balance of the line item is not zero" with Message no. F5136.
    I read several posted issue here, however, it doesn't resolve my problem.
    Hoping to hear from your inputs on this problem.
    Regards,
    macalonge

    Dear:
                    SAP  Note 400530 - FBRA - F5136: Balance of line items not zero
                    describes your issue as
    Summary
    Symptom
    A payment using a payment card fails, in other words, the payment is reversed using Transaction FBRC where the customer or vendor item is reopened.It is not possible to reset a payment document posted again for the open customer or vendor item by using Transaction FBRA, "Reset Cleared Items" and it responds with the error message "Balance of the line items is not zero".
    Other terms
    Error message F5136, FBRA, FBRC, payment cards
    Solution
    A solution is available in the Support Package for Release 4.0B and 4.6C. An advance correction is possible. The solution consists of a repair report, so that the current payment document can be reset by means of 'Reset Cleared Items', and of a correction.
    1. Repair-report ZREPAIR_BSEGC_FBRA:Create it temporarily as a test report using Transaction SE38. First the current payment/clearing document must be cleaned up of payment card data by means of the repair-report. Afterwards you can reset the payment document by means of 'Reset Cleared Items'. The report takes the current payment document as a parameter. In this case only changes are made to the database if the option "DO_UPD" is set.
    2. Advance correction:Supplement the interface for function module CREDIT_CARD_POST_REFUSAL with table parameter T_BSEG with reference type BSEG. The following describes the procedure in more detail.
    a) Transaction SE37: Enter function module CREDIT_CARD_POST_REFUSAL and choose "Change".
    b) On the "Tables" tab page, create parameter T_BSEG with reference to structure BSEG.
    c) Save and activate the function module.
    3. After you implemented the correction or the R/3 Support Packages valid for this note, read Note 450081 to avoid the unwanted deletion of payment card data.
    Hope it will help
    Regards

  • Reset Cleared Items Massively

    Dear all,
    I need to reset a lot of cleared documents.
    Can I do it massively or I have to insert one by one in FBRA?
    Thanks in advance
    Alberto

    Hi,
    There is no mass reset functionality, but you can use LSMW or eCATT to record FBRA.
    Regards,
    Eli

  • Reset Cleared Items - for huge number of line items

    Hi Everyone,
    Is there any way where we could reset cleared items for one clearing document (cleared close to 19000 line items) aside from FBRA? Perhaps another program which can be executed in the background? We are timing out due to the sheer volume of data.
    Are there any other options that we can explore?
    Thanks and regards,
    Joey

    Hi Tony,
    Unfortunately, it is not an executable program in background when we do SE38. Since it has no selection screens, we cannot setup a variant as well. In FBRA, you are only allowed to hit save as soon as you confirm that you want the clearing reset. It is during this time when we hit the time out.
    We have thought of this as well but asking the basis team to extend the time out session would probably be hard to get due to stringent approvals needed.
    Thanks for your advise.
    Regards,
    Joey

  • Reverse a reset clear document

    Hello ,
    When I am trying to reverse a reset-cleared document, it is throwing the following error :-
    "Document xxxxxx cannot be reversed due to clearing resets".
    I followed the foll steps.
    1.There was an invoice of 100$.
    2.Incoming payment of 100$-.
    3.Reset cleared the payment by choosing the option "whole clearing" and "create a new open item".
    4.A new open credit item is created.
    5.Now i need to reverse this new open credit item. It throws the above message.
    Please help.
    Thanks in advance
    Debashish

    Hi
    The below  link may provide you some help.
    error while resetting a cleared document
    Thanks
    kamala

Maybe you are looking for

  • Placing Flash Video in Specific Location on Web Page

    Hi- Basic (I think) question here regarding Flash video on a web page created with DW8. I am trying to figure out how to have several thumbnail images on the right hand side of the page link in such a way that when they are clicked they will play the

  • How can i find the location of an app from the search bar?

    I need to delete an app on my ipad3. I know it's on there b/c I can find it in the search bar. But for the life of me, I can't find where the icon is, so I can delete it. The search bar doesn't tell me where on the pad it is. I have 10-11 pages of ap

  • Report takes long time to loadq

    Hello, I am a developer and have to analyse the behaviour of CR concerning a certain report: It takes about 7 seconds to load this report into the designer and I am wondering, what could cause this delay. Just to make sure: I am not talking about ren

  • The business requirement is invoice clearing process is automated

    Hi sap gurus can any one tell me the below process the business requirement is invoice clearing process is automated how is that possible in sap is there any process we need to follow

  • Booklet printing HP Color LaserJet CP1514n missing

     Printer Type HP Color LaserJet CP1514n.Service ID: 19027 Firmware datecode: 20130923 Start condition : Win7 (64-bit). HP UPD version: 6.0.0.18849  61.175.1.18849Action:  Print in any application - Dialog : Print properties --> Finishing-->Pages per