I have a form which I've had working fine. (I think I bought it ages ago hence the commentary throughout the AS!) I've now been asked to add in a radio button (2 actually but I'm starting with the one!)I've added it in, nicking this component from another form I bought, seeing as already fully reskinned the first one, but in my end email I'm getting 'undefined' as the result.So. Below is my Actionscript (I kept getting typos between the AS and the PHP which was causing me grief, hence me just calling my fields sequential alphabet letters.)
kkk (oops! that's just jumped out at me!) is the radio button - essentially I have the radio button which is 'email' or 'phone' posting to a hidden input text field called kkk. I've had this field 'unhidden' so I can confirm this works in the swf, ie the field is being populated but then this is not communicating to the php.Below the actionscript is the php.
I'm developing an Adobe Air application for Android using ActionScript 3.0 (I'm not using Flex).I'm trying to use radio buttons and a radio button group, but they aren't available on ActionScript mobile.I'm using Flash Builder 4.5.1 Standard and when I want to import fl.controls it complains saying that it isn't available.Is there any other control that I can use instead of radio buttons?
I am having a problem getting radio button data into php and I can not seem to find any answers. My project is simple I have a group of radio buttons, when one is selected and a submit button is pressed I want the data from the radio button to populate the subject line of an email and send it.I can make a form work with input fields but not with radio button data.
I've got a huge survey I've made with lots and lots of groups of radio buttons. There are maybe 60 questions with 6 buttons each. Of these, I have a couple of groups that are really misbehaving. What's happening is for one question, the first button in the group seems independent of the rest. That is, I can check the first radio button and it never turns off when clicking others in the same group.
All my code is right. I'm using the exact same code with all the other groups and only two groups aren't working right. Ha. That's the funny thing, though, because everything works fine IN Flash, but publishing to a web page, these two groups stop working right.FWIW, I've set the first instance of the radio button with a name like "G10" then all the buttons in the group have the group name "Q10".I've tried several ways of fixing this including deleting the whole group and adding them again, copying a working group and renaming the parts. Nothing. The one thing that has worked (and don't ask me why) but adding a new single radio button with a new instance and group name has fixed other problem groups but not these two.
Does anyone know how you can deselect a radio button through as3? I have a program where the radio button remembers the users selection so when they return to the page the radio button they selected is still being displayed as selected. In some cases I want to get deselect the radio buttons so that when the user returns none of the radio buttons are selected. There has got to be a way to do this but I am not having much luck searching the net.
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'm using a random number int to get a number between 1 and 75 and use that number to find an image and 3 statements with it (images are called 1.jpg 2.jpg 3.jpg....... and i get the statements from XML files 1.xml 2.xml 3.xml.......)i get the right image and the right statements but when i want to check if someone answered correctly my script doesn't work.i have an array for the images, the xml files and the answers but only the answers array doesn't work correctly.here is the array:
PHP Code: var answers:Array = [stelling_2,stelling_3,stelling_1,stelling_2,stelling_1,stelling_2,stelling_2,stelling_2,ste
Using the Radio button component and I have 10 groups of buttons. Each group has a group name of g1, g2, etc for each yes/no button. I want to determine which button was clicked. When I run the code below I only get the first one and then each other button clicked I don't get a trace statement back.
var rbListener:Object = new Object(); rbListener.click = function(evt_obj:Object) { trace("The selected radio button group name is "+evt_obj.target.groupName); }; for (rb=1; rb<=10; rb++) { _root["g"+rb].addEventListener("click",rbListener); }
I am having some problems with a small survey swf i am making in actionscript 3. I have multiple choice questions on different frames using radio buttons and i need the users selections shown in a dynamic text button along each frame and also on the last frame of the survey.
Another problem i am getting is i need the last radio button clicked to be stored, so if the user clicks lets say 'rb_2' on frame 1, clicks next to go to frame 2, then if they were to go back to frame 1 again 'rb_2' is still selected.
Thought it would be easy using the 'Shared Object Class' but from reading tutorials i cannot get it working.
I have a set of radio buttons which i need to retrieve the value from, store the value and pass it on to the next scene. I have tried using radio_btn.data, but it doesnt work.
I'm creating radio buttons with actionscript. How can I access the circular part of the radio button? I want to change the size because it's too big!
I tried putting the component into the library and then changing the physical size of the up, over, down, disabled, etc. circles, but this did not work. Is there a programatic way to access the circle?
I'm having such trouble accessing the value of the selected radio button in a group.I put 5 radio buttons on the stage and gave them all the groupName of 'Question1' in the component inspector. They each have their own instance names and a value which is also set in the component inspector.When I go to access the group (via Test Movie) and check which value is selected I get this error:
'Access of undefined property Question1'Here's the code I'm using:
var Radio1:String = new String();Radio1 = Question1.selection.value; SubmitBtn.addEventListener(MouseEvent.CLICK, clickHandler); function clickHandler(eventObj:MouseEvent):void { trace("clicked"); trace(Radio1);}
Other problems I'm having with this code is the flash player doesn't believe the value of the radio object is a string...so what is the data type of the value property?
Anyone know of a way to make the default blue highlight around a radio button component when it is selected be LARGER and a different color? So for example, if I wanted to turn it green or red and make the highlight thicker?
I know how to set the style for a radio button in AS3, but is it possible to apply a text format style to a radio button group, rather than each individual button?
I have a pretty large quiz/survey with 60 questions (4 questions per page and 15 pages) and I get a deselection bug come up at pages 5, 10, 15 for no apparent reason! I have checked the code vigourously for any errors and I can't see anyWhat happens is that a particular question within those pages stated above - when the alternate radio button is selected, it does not deselect the other radio button in the group.
There was no real clear solution to this other than build the questions dynamically from an XML file. I would really love to do this but my AS3 skills are not advanced enough to be able to program everything dynamically and I currently don't have time to learn these skills as the flash file is due like yesterday
I've done is a few days of tutorials and stuff on the Internet. I'm knocking together a prototype for a University project. I have a radio button list, and once a button is selected and submit is pressed it takes the user to a certain frame. Each radio button represents a different condition, and for the distance condition I want it to take the user to one of two frames; one which shows the animation close up, and one which shows it far away. Before I attempted to have this button selection send the user to one of two frames, I had it working just sending them to the one. This is the code that I used:
iam new to flex, can any one say ,how to validate the radio button is selected or not in flex 3 if my question is wrong, regarding the validation of radio group