[size=3][font=Times New Roman]I would like to join the two scripts below so that when someone choose a selection from the first combo box, it sets the selections for the second and third combo boxes and opens the correct web site in a popup. For example if some one chooses TwoDoor in the first combo box I want it to open google in a popup, and populate the second combo box.[/font][/size]
[size=3][font=Times New Roman]/////////This is the script that links the three selections of the combo boxes together//////// [/font][/size]
[size=3][font=Times New Roman]Cars = [“TwoDoor”, “FourDoor”, “SUV”];[/font][/size]
[font=Times New Roman][size=3][/size][/font]
[size=3][font=Times New Roman]TwoDoor = [“Theme1”, “Theme2”];[/font][/size]
[size=3][font=Times New Roman]FourDoor = [“Theme3”, “Theme4”];[/font][/size]
[size=3][font=Times New Roman]SUV = [“Theme5”, “Theme6”];[/font][/size]
[size=3][font=Times New Roman]Theme1 = [“Color1”, “Color2”];[/font][/size]
[size=3][font=Times New Roman]Theme2 = [“Color3”, “Color4”];[/font][/size]
[size=3][font=Times New Roman]Theme3 = [“Color5”, “Color6”];[/font][/size]
[size=3][font=Times New Roman]Theme4 = [“Color7”, “Color8”];[/font][/size]
[size=3][font=Times New Roman]Theme5 = [“Color9”, “Color10”];[/font][/size]
[size=3][font=Times New Roman]Theme6 = [“Color11”, “Color12”];[/font][/size]
[size=3][font=Times New Roman]myCars.setDataProvider(Cars);[/font][/size]
[size=3][font=Times New Roman]myThemes.setDataProvider(TwoDoor);[/font][/size]
[size=3][font=Times New Roman]myColors.setDataProvider(Theme1);[/font][/size]
[size=3][font=Times New Roman]listener = {};[/font][/size]
[size=3][font=Times New Roman]listener.ref = this;[/font][/size]
[size=3][font=Times New Roman]listener.change = function(evt) {[/font][/size]
[size=3][font=Times New Roman]var choice = evt.target.selectedItem;[/font][/size]
[size=3][font=Times New Roman]myThemes.setDataProvider(this.ref[choice]);[/font][/size]
[size=3][font=Times New Roman]myThemes.dispatchEvent({type:“change”}); [/font][/size]
[size=3][font=Times New Roman]};[/font][/size]
[size=3][font=Times New Roman]myCars.addEventListener(“change”, listener);[/font][/size]
[size=3][font=Times New Roman]listener = {};[/font][/size]
[size=3][font=Times New Roman]listener.ref = this;[/font][/size]
[size=3][font=Times New Roman]listener.change = function(evt) {[/font][/size]
[size=3][font=Times New Roman]var choice = evt.target.selectedItem;[/font][/size]
[size=3][font=Times New Roman]myColors.setDataProvider(this.ref[choice]);[/font][/size]
[size=3][font=Times New Roman]};[/font][/size]
[size=3][font=Times New Roman]myThemes.addEventListener(“change”, listener);[/font][/size]
[size=3][font=Times New Roman]/////this script connects the selection in the combo box to a web site////[/font][/size]
[size=3][font=Times New Roman]var labels:Array = new Array( “google”, “web attack”, “Macromedia”, “ASP.Net”);[/font][/size]
[size=3][font=Times New Roman]var links:Array = new Array( “http://www.google.com”, “http://www.webattack.com”, “http://www.macromedia.com”, “http://www.asp.net”);[/font][/size]
[size=3][font=Times New Roman]for (var i=0; i<labels.length; i++) {[/font][/size]
[size=3][font=Times New Roman]_root.myCombo.addItem({label: labels*,[/font][/size]
[size=3][font=Times New Roman]data: links*}); [/font][/size]
[size=3][font=Times New Roman]}[/font][/size]
[size=3][font=Times New Roman]var obj:Object = new Object();[/font][/size]
[size=3][font=Times New Roman]obj.change = function (evt){[/font][/size]
[size=3][font=Times New Roman]selectedLab = evt.target.selectedItem[/font][/size]
[size=3][font=Times New Roman]trace(selectedLab.label);[/font][/size]
[size=3][font=Times New Roman]trace(selectedLab.data);[/font][/size]
[size=3][font=Times New Roman]getURL(selectedLab.data, “_blank”)[/font][/size]
[size=3][font=Times New Roman]}[/font][/size]
[size=3][font=Times New Roman]myCombo.addEventListener(“change”, obj);[/font][/size]