Selection of color and radio buttons

Hello

I have problems with a pretty basic function. I'm changing the color of a line that will act as a bar to scale on a picture of a microscope. Students have to choose between a white bar or black bar based on the selection of a radio button I wrote the code to listen to the selection and put the function to choose the color inside the function that draws the line, but it keeps selecting the first color in the 'if' statement, that is, it is followed by "line is black" even before clicking on an option button. It would lead to a change in the color of selectedData, but does not change the color of the line.

I'm sure it's something really obvious. I would really appreciate a look nine on that.

Thank you very much
Beatie

This was a conversation face this one, but just in case there are other poor things with problems of radio button, here's what I had to work to change the color of my scale bars:

Tags: Adobe Animate

Similar Questions

  • Resize the system checkbox and radio buttons system

    Is it possible to resize the system checkbox and radio buttons system. If we right click on one of them and go to properties, size controls are disabled. I wonder if it's feasible.

    Also I noticed that I could add the new radio buttons to do a right-click and choosing Add new button. Is it possible to achieve this programattically.

    Kind regards

    Austin

    AustinCann wrote:

    Is it possible to resize the system checkbox and radio buttons system. If we right click on one of them and go to properties, size controls are disabled. I wonder if it's feasible.

    As mentioned, system controls cannot be customized, because they depend on the windows theme. However, here are some Boolean values, so all you need to do is use an ordinary Boolean value and import the graphics that you want in the case of true and false. They can easily be made to look like an oversized check box. More details, especially about radio buttons can be found here.

    AustinCann wrote:

    Also I noticed that I could add the new radio buttons to do a right-click and choosing Add new button. Is it possible to achieve this programattically.

    You could probably do it in edit mode programmatically by using scripts. You can't do it at run time.

    To fill a RadioButton with new Boolean values, you can simply drag the new values Boolean inside or even shift-do drag an item to create a copy of it. Don't forget to change the labels to something intuitive.

  • CheckBox and radio button text color

    Hello

    This could be a very simple question, but I can't find the answer anywhere?

    How can I change the color of the labels on the radio buttons and checkboxes?

    I tried this:

    a1.setStyleProperty("textColor",0x990000);
    

    but I get this error:

    1061: Call to a possibly undefined method setStyleProperty through a reference with static type fl.controls:RadioButtonGroup.
    

    can anyone help?

    Thank you! : )

    You must use the TextFormat class to assign the text formatting...

    var newFormat:TextFormat = new TextFormat();
    Regardless of the font styles to apply

    newFormat.color = 0xFF0000;

    A1. SetStyle ("textFormat", newFormat);

  • How can we have a column with the text and radio button in the same row?

    Hello

    I have a column that need to have data with a radio button. Has been able to achieve this by using < trh:tableLayout >. But when I select the option button it moves to the next line. You want to stop this behavior of option button to move to the next line. This column also includes a hyperlink. If the text and the hyperlink are made invisible visible based on the action of the radio button.
    Adding one more doubt. A horizontalgrid of specific columns can make invisible?
    Any help would be appreciated.

    example code:
    < trh:cellFormat id = "cf8" halign = 'Start' >
    < af:activeOutputText value = "#{rank." Actions}"id ="aot2"/ >
    < af:goLink text = ' #{rank. " Actions}"id ="gl1 ".
    clientComponent = "true" visible = "false".
    targetFrame = "_blank" destination = "http:// + #{rank." BUTTON_URL} ">"
    < / af:goLink >
    < af:selectBooleanRadio text = "" id = "sbr1" > "
    < af:clientListener method = "selectCheckBox" type = "click on" / >
    < / af:selectBooleanRadio >
    < / trh:cellFormat >

    Thank you
    Nita

    Remove the components from . Put the other components like the direct children of the PanelGroupLayout:

    
      
        
        
        
        
          
        
      
    
    

    If you need to add some space between the components horizontan, you can put (s) between components.

    Dimitar

  • change the color of radio button

    Hi guys

    How can I change the color of a white radio button. I tried to add a class, but his does not work.

    V thanks a lot in advance

    Hi Ken and DottyDog,

    It's true, and it's Roger Johansson aka "456 Berea Street" always points back. And so it is really therefore also read its general articles.

    Hans G.

  • With the help of text boxes and radio buttons

    Hello!

    I tried to make a small Manager application where the user writes his name is on a TextBox and selects her sex between the two options in radio buttons (female or male). These information apears inside a text on another screen. I tried desperately to organize the code to make this work, but I haven´t successful.  Anyone of you Director community could help me with this give me an idea of how do to solve this problem?

    Thank you very much!!!

    Philippa

    I have downloaded a file that shows what you are trying to do - feel free to use all or part of it. Sorry, but I was not taking the time to comment the code for you - if you have any questions, ask at your

  • How to displaly the list of selection based on a radio button w\o send a page

    : P10_Fail is a radio button with value (Y or N)
    : P10_Reason is a selection of value list (lLOV) for 10 different values


    Objective:
    in the form: P10_result default radio button is N, when the user clicks on, I want the: P10_Reason appear and allow users to select the right. How can you do this without submitting the page first. That's if: P10_Fail N, it is unnecessary to select: P10_Reason. It seems that what I need is an attributes of the element on the question, but I can't understand what?


    Can U please help? It is a disappointment.




    Zen

    Zen

    Add the following code in the 'footer text.

    
    

    CITY

  • Prevent Question 2 Radio button selection until Question 1 Radio button selection

    I have a script (Javascript) messagebox to appear if the user tries to make a radio button selection to question 2, when they do not have a selection to question 1. However, the message box does not prevent the selection. the radio button is selected after the messagebox goes. How to prevent this? I tried to focus on the set of question 1 of option buttons, but it does not work.

    You could define question 2 in read-only or protected using 'access', until answered question 1.

  • PHP form validation and Radio button group

    Hi David,

    I'm trying to set the initial state of a group of radio voice against zero.

    Please look at the file http://ecopethandbags.com/contact.php . The initial state is set to 'No'

    In Dreamweaver, I've set the initial state to 'off '.

    I don't understand the code for radio buttons in my folder (see attachment).

    What I'm trying to do is to have the radio initially disabled but necessary task.

    I have 2 questions:

    (1) - how can I control the initial state of the radio group when I use PHP form validation?

    (2) - how can I set the validation, when one of the radio buttons is not verified by the user, a warning flag like "Please make a selection" appears.

    Thank you very much!

    Just change the following section of code:

    
    

    Remove the! $_POST. Like this:

    
    

    Checked = "checked" will be inserted in the code if the form has been sent, but no radio button has been selected.

  • Save the State of the Variables and radio buttons

    I designed a form that uses a Raddio Button with three choices. These selectibles toggle choice areas of the form. The user will save the form under a different name for archiving. Now if I save the form, the State of the option button and the variables used in the JS code is not stored. So if I open the file, the form does not reflect the State of the option button and variable.

    What is the best way to implement this?

    Can I save variables and the State of the option button (choice selected) when the user saves the form, and then restore the rear opening?

    Thank you.

    Without knowing more about what you do, it is difficult to give specific information. I'm not sure what you mean about the State of the option buttons, since when a form is saved, their State will not change when it is reopened. To back up data, you could certainly use a hidden field and read using a script that runs when the form is opened.

  • Help with effects of roll and radio button

    I searched the forum help and google and have not yet found an answer. Somehow I am trying to add a bar of menus with an option to sign up to a mailing list, I built bar and every thing becomes opaque number of specific pixels, however I can not understand how to apply the effect to scroll to the option button. the check mark opacity isn't check-able. If I missed a previous post or some info on this, it would also be a great help to be headed in the right direction.adobe help.JPG

    You can settle scroll to only button but the form itself. In the fill option, you can apply opacity.

    Thank you

    Sanjit

  • How to build a form with checkboxes and radio buttons?

    Current form widgets are great, but what happens if I need to create a little bit of more complicated shapes? Beside that, I love this program

    Hello

    Are you looking for a specific function to the forms?
    Please check this related thread:

    https://forums.Adobe.com/message/6335089

    Thank you

    Sanjit

  • Change the background fill color based on Radio button selections

    Hello

    I am very new script in LC, so I hit a wall on my last form. I am creating a form with a scale of 'leikert-like', however one of the stipulations (from my boss) is in this context of buttons are to be filled based radio which button is selected.

    For example, Question 1 has 4 radio buttons to choose: poor, fair, good, great. If the person completing the form selects poor, I wish the poor to fill background color. If someone chooses right, I would like to than this background color to be filled, as well as the background of the poor. Good selection would fill the colors of good, fair and poor; and selecting the big would fill the four colors.

    Someone has ideas of how / if possible? In my first tests, I got the button itself to change the colors, but not the background fill (which can be changed manually on the border palette).

    Any ideas would be much appreciated. Thank you!

    Aaron

    Here is the code that you can use in the event of modification of the ExclusionGroup (title default RadioButtonList) object. It is the parent of each individual option button object.

    for (var i=0;i
    

    This also assumes that the value of each option button is sequentially numbered from 1 to however many boxes option you have.

    Now, here's the thing. I'm assuming that each radio button has a different color. You might code for the colors yourself in JavaScript, but I manually chose the colors through UI Designers. Once all the colors of radio buttons have been defined, select a radio button and go see > XML Source. Where we see the element, add the presence of the attribute = "hidden". Do this for each option button. Here's what I mean:

                      
                      
                         
                          
                            
                         
                      
                      
    

    Kyle

  • How you gray out / disable fields in an option button if another radio button is selected in Adobe Acrobat Pro XI?

    How you gray out / disable fields in an option button if another radio button is selected Adobe Acrobat XI Pro?

    I have created a form where the user has three options to make a payment.

    1. charge on my credit card
    2. costs related to the bank account
    3. By check or money order

    My problem is, under each option, there are required fields that must be filled. So if the user chooses the first option, charges on my credit card, they would fill in the mandatory fields (card credit number, expiry etc.). But when they click on the "submit" button to send the form, he won't let them, because there are a of the fields required in the title of the second the second option, the costs related to the costs related to the bank account. Is there a way to gray out or disable the other two payment options when it is taken. I guess I'll have to use javascript, but what would be the coding and what field do I write under?

    Thanks in advance guys

    I do all the fields that are not required until the user selects the relevant box.

    For example, as soon as the user selects the credit card radio button, only credit card fields are required.

    It could be the script to make the credit card required/not required fields:

    var r = this.getField("PaymentMethod").value;     Use the name of the radio here group

    var CCfields is ['Field1', 'Field2', 'Field3'];.         Enter the names of the fields of credit card here

    If the user has chosen credit card as payment method, make the required credit card fields

    If (r == 'Credit Card') {}

    for (var i in CCfields) this.getField(CCfields[i]).required = true;

    }

    Else, no required credit card fields

    else (var i in CCfields) this.getField(CCfields[i]).required = false;

    You should do something similar for other types of 2 payment, for example

    If (r == "Bank account") {}

    do something

    }

    etc.

    ......

  • Calculation of the numeric fields radio button and checkbox-based response

    I am to change a form that was created by someone else.  I added checkboxes and radio buttons based on the need to form. I would like for the amount of check calculate automatically based on the selection of a radio button.  I've implemented some numeric fields to play with adding the amounts and placed them in the field 'Amount to check', but I can't seem to calculate.  Once I have to calculate correctly, I need to know how to automatically enter a number in the appropriate digital field based on the option button or check box selected.  Here is a picture of what I've put up.  Help, please!  I read all the forums, watched the videos and tried everything.  I'm so frustrated.

    MemberStatusHelp.jpg

    Don't know if I have the layout if correct me if Im wrong. I assume you have a radio button group on the top line for the first 3 check boxes and boxes (when the user selects one) for the following 2 lines (where the user can select independently of the other 3 above) with a final calculation at the end to check the amount field.

    You can either place the code on each change of each checkbox/radio button event to recalculate or just do it on the final checksum field. I tried putting a calculate on the last field to check the quantity, and it seems to do what it takes.

    Try this in the case of calculating the amount of check field

    var membershipAmount = 0;
    if ( (RadioButtonList.rawValue == "2") || (RadioButtonList.rawValue == "3") )
    {
        membershipAmount = 35;
    }
    
    if (CheckBox1.rawValue == "1" )
    {
        membershipAmount += 15;
    }
    
    if (CheckBox2.rawValue == "1" )
    {
        var txtAmount = TextField3.rawValue;
        var amt = 0;
        if ( (txtAmount != null ) && (! isNaN(txtAmount) ) )
        {
            amt = parseFloat(txtAmount);
        }
    
        membershipAmount += amt;
    }
    
    this.rawValue = membershipAmount;
    

Maybe you are looking for

  • Hello. How can I move files on dropbox on my icloud drive?

    My selection expires tomorrow... and I tried for awhile to load or save all dropbox to Icloud by car.  I have made sure in Icloud drive I activated dropbox, but read tips on how to do it, it does not. So when I select a folder in dropbox on the ipad,

  • Impossible to install Bootcamp and partition problem

    Hello guys, I really need your help. I can't install Windows more Bootcamp partition. So I read a lot of articles on the problem of the partition but it seems that I can not solve the problem at all and I think my problem is very critical. Here's how

  • My printer request password WPA security?

    Try to install a new HP printer.  He asks a WPA security password.  Where can I find?

  • WLAN-to-Peer

    I have two laptops from Toshiba 1 Tecra M12 Tecra T9000 One connects WLAN Intel PROset and the second with Toshiba Wireless LAN Client Manager. Facts:* Both can connect to a public access Point* M1 can connect to a peer-to-peer network* M1 can start

  • Cannot move the window after resizing

    From: bronzefree Resize the Media Center window and inadvertently it moved off the screen.  I tried using the 'move' tab bar tasks, does not.  The multi-directional arrow appears, but can not grasp anything.  My 'reduced' Media Center window seems pe