Ciao,
try with getURL (event.target.value , "_self");
and the data containing the url.
Hello,
I am currently trying to solve a problem of having a combo box with 3-4 links however instead of using the combo box to go to the url I would like to use the submit button to exectute the get url. So if the combo box has 3 links the submit button takes you to the link depending on which one is selected in the combo box.
Right now I only have the combo box set up using AS2. I wouldnt mind learning this in AS3 if someone knows how :)
my_cb.addItem({data:1, label:"First Item"});
my_cb.addItem({data:2, label:"Second Item"});
my_cb.addItem({data:3, label:"Third Item"});
my_cb.addItem({data:4, label:"Fourth Item"});
// Tell the combo change method to fire when the change event is
// fired by the combo box
my_cb.addEventListener ("change", onComboChange);
// Method called by the change event listener
function onComboChange (event:Object):Void
{
// Get the label and the data properties from the event object passed in
// to this method by the change event
var label:String = event.target.selectedItem.label;
var data:String = event.target.selectedItem.data;
// Trace the value to check it out
trace ("label : " + label);
trace ("data : " + data);
// Go to that url that is on the data property
getURL (data, "_self");
}
all this is placed on a single frame containing the combo box - I just cant figure out how to send the information from the combo box to the submit button. I am new to flash to please be specific in any help.
Thank you in advance!
-spencer
Ciao,
try with getURL (event.target.value , "_self");
and the data containing the url.
CSS.FlepStudio.org in english: css tutorials, free css template and css menu
Conversione da PSD a XHTML/CSS - Creazione siti web - Introduzione CSS3
Bookmarks