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;
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.
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.
Just new in forum and just new in as3 programming. All i want to do is to make some physics simulations (i'm physics teacher...). So i made my first sim with the following code, just to simulate a simple motion with constant velocity. It works ok, except the part i need to reset the display by the means to start the motion all over again (reset button). Then the motion starts but the traces of the previous motion remains on stage. I tried the null command (sp=null) but the sim could not start again because the sp nedded to be non-null...
I have an issue with adding a reset button to my drag and drop movie clips.The problem is, if a student drags a movie clip to a wrong location on the SWF file I want them to be able to hit a reset button that would take them the same SWF that they opened and what would showup would a clear page for them to restart their drag and drop exercise.I know how to make the button for this just want the proper action script to be able for user to start over with no movie clip symbols on the page.
reset in google yields only its use for timers.However I have code bg.reset() which I suppose puts the background back to the beginning of its timeline.
With out getting into a ton of background I am wondering if there is a command that will reset all the variables in a swf at once with out having to do them individually?
I've googled and searched my books and can't find anything. Another option I could see is having the current flash reload, that would set everything back to the start but I couldn't find how to do that either.
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.
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 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'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'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.
When the combo box is changed it will add items to another combo box, i.e if africa is chosen, all the countries in africa will be listed in the second combo box.
At the moment i am manually adding in all the countries, _root.combo1.addItem("Label", "Data");
for 60 countries that would be messy code, is there a way to do it in an array cause my advanced actionsript isnt that good. But i will need to be able to get the data of a country out later ....
I have a combo box under a mask and I've done some research and discovered that I need to embed the fonts in to it in order for the text to show. I don't want to embed my own fonts, I just want to use the basic default font and get this working, yet I can't seem to find any tutorials that tell you how to do this, they all seem to be about setting the font colour, size and type.