Flash :: Potential Bug With The RadioButton Component?
Sep 6, 2011
I've got a weird issue with the RadioButton(fl.controls) when I add it to the stage.Here's a quick way to reproduce the issue:create an empty MovieClipadd a RadioButton componentset the width of the component to a value smaller than 100trace the container width The container width will trace 100 even though the RadioButton instance on stage is less than 100 wide.If I add the component from code, it works if I invalidate the stage after adding the RadioButton first, then check the container width in a Event.RENDER handler.
I want to remove the so called "HitBox/HitArea" on the RadioButton component - I don't want the user to be able to click anywhere else except the button - and I don't want to just resize the hit area so it's as big as the button (the hit area is a square, and my button is a circle)... can this be done? or does the button absolutely depend on hit area? Part of my reason for asking this, is when I publish my .swf with the radiobutton - the hitarea is displaying as a big white rectangle that is covering the button and part of the text up... why is this?
How do I assign a value to a radiobutton when it's in a for loop to then trace out the value when radiobutton is clicked? I got this now, but it just sets all the radiobutton values to 10..
I want to extend the RadioButton component in Flex 3, adding a text input line to it in place of the label. Is it possible to do this?Alternately, is it possible to have a container -- such as an HBox -- delegate all properties to an internal component -- such as a RadioButton -- so that I could create a composite component that 'acts like' a radio button?
I am trying to execute the very simplistic animation of a bouncing ball-- I followed all the steps (three different ways from three different sources, but they were all fairly similar), and I cannot get my ball to bounce slowly. Instead, it just flips from up to down like a switch. I put easing -100 and 100 at the two different motion tween points, but still nothing... When I look at the onion skin view, I don't see the gradual movement- just the balls. What am I doing wrong, or does this have to do with flash not being compatible with the new snow leopard?
I have been searching around for a while now, and cant find anything. In Flex, I need to be able to change the fontWeight of a RadioButton that is selected to bold. So, when a RadioButton is selected, it would call a function in AS3 that would set the fontWeight of that selected RadioButton...
valveRadioGroup.addEventListener(Event.CHANGE, changeRadioHandler); private function changeRadioHandler(event:Event):void { //change this RadioButton's fontWeight to bold
I am making a quiz application for mobile.The questions are comming from xml. How can i make multiline Radiobuttons? I tried to do a skinclass but it didn't worked.In this code i make the RadioButtons.
I assumed that Flash worked on a PC the same as it does with a Mac, but I have received several complaints that my portfolio doesn't function properly on a Mac. Having recently worked at an all Mac production studion, I'm seeing functionality is broken in many areas.
suppose one has two buttons "left" and a "right ".the 'left' moves to the leftand the "right" to the rightand the goal is to move the object "ball"based on this potential requires that script to do this?
I want to have 4 radio buttons Then which ever radiobutton the user has chosen I want Flash to use it later on.
[URL]
however I receive the following errors why?
**Error** Scene=Scene 1, layer=action, frame=1:Line 4: The class or interface 'fl.controls.RadioButtonGroup' could not be loaded. var myradioGroup:RadioButtonGroup=new RadioButtonGroup("Group 1"); **Error** Scene=Scene 1, layer=action, frame=1:Line 13: The class or interface 'MouseEvent' could not be loaded. function showResult(event:MouseEvent):void { Total ActionScript Errors: 2 Reported Errors: 2
i was wondering if there is a way to disable radio button selection after a choice has been made?I tried radioButtonGroup.selected = false, didnt work, nor did radioButtonGroup.enabled = false.For example, when i initialize my radiobuttongroup in the setup.enabled radio button in the setup, so user can select choice.radiobuttongroup.enabled = true.After which, i have a checkAnswer button to check that regardless of choice radiobutton group.enabled = false. that way, the user will not be able to choose choice 1, after which, blah, i am going to choose choice 2/3/4/5/...Or is it, tough luck bum, if u want to do it that way, comboBox/the other button are the only way to go?
I want to change the skin of a radiobutton with images which are called dynamically. I know how to modify radiobutton's sking but I want to call particular images for over, selected icons. Can it be possible in Actionscript 3?
I am having troubles adding a radiobutton to a VBox in actionscript.
var radioButton:RadioButton = new RadioButton(); radioButton.groupName = "source"; radioButton.label = "label";
[Code].....
I first created these radiobuttons in mxml and it worked fine, but now that the radiobuttons need to be dynamically generated in actionscript it doesnt work.
When stepping through in the debugger I get to a binding error (1009) when trying to execute the addchild statement and nothing shows up in the VBox.
Recently i worked in a project where i used 5 radio button to select a page number. Now the clients wants a big radio button. how can i increase the size of radio button in flex?
In my flex app I have some radio buttons. When a user clicks the radio button, I want to popup an Alert, and if the user clicks ok the radio button will change, otherwise their change will be discarded.
How do I accomplish that? I tried event.preventDefault(); while handling the click event, but that didn't do anything.
I'm trying to convert a number of Flash activities that I wrote in AS2 and re-write them in AS3. I've managed to convert one that is a simple question/answer activity that uses the radio button components from Flash CS5.The problem is, the project looks and functions fine from within Flash (no compiler errors), but if I open it as a standalone swf, it's clear that Flash Player doesn't like something in my code (the radio buttons and all other button instances start flashing and appear skewed). I'll copy/paste my code below if anyone cares to read it. I would narrow in on the offending code, but I really don't know where that is...
ActionScript Code: // ------------------- check answer function function checkAnswerBtn_listener(eventObject:MouseEvent) {
I am using the FFP Lightweight components set tickbox (this component is available at flashcomponents.net)I want to put script in each tickbox to uncheck the other box next it if it gets chosen (so a user can't select yes and no)I also want to add or subtract a value from a variable.[code]
I have a movie clip called form with 3 input boxes in it, I then pass these variables to a PHP page that emails them out to a specific email address, all well and good and this works fine.
However, I need to add a yes/no query to the form using radiobuttons, what I can't figure out is how to actually grab the variable for the radiobutton in the PHP, I had originally believed that the variable would just be the groupname of the radiobuttons however this doesn't work.
I suspect the radiobuttons variable isn't actually being passed to the script at all
For the record I'm using MX2004, AS2.0 and the submitting code on my submit button is:
on (release) { form.loadVariables("/testarea51/email.php", "POST"); }
I'm creating a form in flash where the radiobuttons line up horizontally (i'm not in control of design). But i cannot get an accurate width on the radiobuttons. For some reason every time i check for a width it's 100 pixels. Upon adding the button the textField doesn't have an accurate width either, so i can't even go by it.
I created a change event, and when i trace the textfield width and x position they are correct, but i need to be able to correctly place these objects upon creation.
I am using the FFP Lightweight components set tickbox (this component is available at flashcomponents.net)for YES and NO questions....I want to put script in each tickbox to uncheck the other box next it if it gets chosen (so a user can't select yes and noI also want to add or subtract a value from a variable...heres a sample of what i put on each tickbox instance... the syntax is definitely wrong:
on(release){ value = n14.getValue() if value = (true)
I have a datagrid that I want to add a column of radio button using AS3 (instead of mxml). I was able to do this with a custom itemRenderer. var dgc:DataGridColumn = new DataGridColumn(); dgc.itemRenderer = new ClassFactory(com.mypackage.RadioBtnColumnItemRenderer);
In my RadioBtnColumnItemRenderer.mxml, I have a box with a radioButton... like so: <?xml version="1.0" encoding="utf-8"?> <mx:Box xmlns:mx="[URL]" horizontalAlign="center" verticalAlign="middle"> <mx:RadioButton id="btnRadio" groupName="btnRadioSelect"/> </mx:Box>
When I run the application, the radio button shows up in the column as it should. However, I cannot select just ONE of the radio buttons. I am able to select all of them, but I don't want this... I want the ability to select one and then if I select another one, then the first one is unselected and the current one becomes selected (just like you would expect radio buttons to work).