ActionScript 1/2 :: Combo Box Set Selection Can Not Appear
May 4, 2010
I have read several posting on this site and others. I can't seem to find the right solution to get my combo box to work. I am publishing for Flash player 10 and AS 2. The final file will be imported into a Articulate/PPT file.
I am simulating a form that my audience needs to fill out. For 2 text fields, I am using a combo box to allow them to select the proper input. If they leave the form screen, I need to save their answers so they do not have to start from the beginning. I am using global variables.
My problem occurs, when I try to populate the combo box using the audience's previously selected response. I have tried using setSelectedIndex. It works to the extent that the choice indicated highlights in the combo box, but the actual selection is not appearing in the text area. Do I need to set Combobox.text = selection?
i want a combo box that will change the mouse to wat ever i want(run a script wit each diff selection). i know it cant be that hard i just cant get it.
I have an editable mx:Combobox. I want to catch two events: When a user enters some text, or edits some text.When a user changes the selection (selects an item from the combo box).Is it possible? I have been using change event, but it is fired in both cases and I can't differentiate it. Is there a better way of doing this?
The problem I'm having is trying to figure out a way so that the "data2" will fill the text field "hint_txt" on ROLL_OVER of that items name in the list.I've tried to placing an event listener into the function that populates the combo box .this populates the combo box label and data with the Loaded XML File. This works
function changeHandler(ev:Event):void { menuText_mc.heading1_txt.text = ev.currentTarget.selectedItem.label;[code]......
I have two combo boxes. The first combo box's data is added through an XMLConnector object, the second combo box, I would like to populate through an on (change) event in the first combo box. The items in the second combo box would relate to the selection made in the first combo box.
I have attempted the following within the Actions for the first combo box:
on(change) { switch(this.value) { case "value1": comboBox2.addItem({Label:"Label",Data:"Data"}); break; } // end switch } // end event
which is not working.
should an event be dispatched by comboBox1 and a listener be attached to comboBox2? I can't find any examples of this on the internet.. but i might be using the wrong search terms.
I never realized that fl.getDocumentDOM().selection doesn't retain the selection order... <sniff>. I was hoping to build relationships based on the order. I guess I took if for granted that tools like Maya and Max store the selection buffer in order of what was selected. I'm trying to avoid: Select Object, <Press 'Parent' Button>, Select Parent, <Press 'Parent' Button>
i am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus
I have a combo box in swf B which I load in swf A.1: If I test swf B the combo box fills ok and expands ok. If I test swf A which loads swf B the combo box appears with data in it. But it does not expand.
I am new to Flash and I can find out how to make something happen when a selection is made in a combo box. All I want to do is go to the next frame when a selection is made, but I can't use on(release), because I keep getting "this is not a button" errors.
What script can reset a combobox ? After the user submitted the form all the information needs to go. I found how to do it for the field text and the checkboxes but not how to reset the combobox.
ok I am having an issue with a combo box being inside a MC.
when I click to have it show the list everything shows up fine. but when I select the item the combobox shows blank but the item is still showing as selected via actionscript checking it.
I currently have a combo box in my movie. The selections are 1, 2, 3, and 4. I would like to generate another X combo boxes of the same structure based on that number. I.e. Someone choose 2 in ComboBoxA. So 2 of ComboxB's are generated below that.
I've two Combo Box(cbFirst & cbSecond). I want to compare the value that has been selected by the user and based on the result, output is displayed. In both Combo Box I've provided the value.Here is my code:
var a:Number;var b:Number; function First(evt:Event):void{ a = evt.target.value; trace(a); }cbFirst.addEventListener(Event.CHANGE, First);
I am working on a project with Flash 8 AS2. I am trying to connect a ComboBox and some radio Buttons to a SQL DB.
I have managed to connect some text fields with loadVariables and send them to php (to be read with $_POST) and then send them to Flash with echo "&variable".$variable;. SO I am using only php to make the connection, no XML or other things.
The problem is that I don't know how to make some radio buttons and ComboBox to communicate with the sql DB.
What i need to do is, In Flash (FlashMX, CS3 or CS4) I need to place 2 combo boxes. by default the 1st one will be enabled and the 2nd will be disabled. First combo box will have country names and the 2nd will have state names. when a user selects the country name from the 1st combo box, the 2nd shuld then get enabled. and when a user selects the state from the 2nd combo box, there will be button next to it for clicking. on clicking the button, the values in each combo box shuld be selected and the user will be taken to a specific URL which will have the contents on current selected state in the current selected country.
The problem is the initial value of the ComboBox isn't set correctly. If I hard code the choices, then the initial value is set correctly. I can't hard code the choices.
i use combo box to display a list of items. The box'x length is smaller whereas the items length is large. So if i mouse over it i need to display the whole item as a data tip
if there was any way to specify the different items in a combo box, i wanted it to go to a different part of the site when u click on it heres what i have now (notice the combobox at bottom left)combo
I tried adding the combo box component to my mp3 player but ran into a little problem. When i choose an option from my combo list it just counts +1 in my song array. I figured the problem was in my playSong function but I tried changing some of that code around.
I have a small issue that I would like to correct. What script can reset a combobox ? After the user submitted the form all the information needs to go. I found how to do it for the field text and the checkboxes but not how to reset the combobox.
e.g. working; txtfirst.text = ""; workshop1_box.selected = false;
I'm trying to create something similar to this url...but don't understand how to do it programatically.[code]I've named my frames "Funny old man", "Angry mother", and so on and so forth. How can I accomplish this?
I am using a combo box with only 2 options.However when a user selects one of the options, I expect the choice they selected to be displayed but it's not.