dan.morton
09-03-2006, 08:34 PM
iv been trying to get a link inside a combo box to load a html page in a iframe but with no joy! does any one no how to do it and willing to share the wisdom?
import mx.controls.ComboBox;
var myComboBox:ComboBox;
var myDataProvider:Array = new Array();
myDataProvider = [{label:"Room 01", data"room01.html","ifrmvr")}, {label:"Room 02", data:"room02.html"}];
myComboBox.dataProvider = myDataProvider;
var myComboBoxListener:Object = new Object();
myComboBoxListener.close = function()
{
//trace(myComboBox.selectedItem.data);
getURL(myComboBox.selectedItem.data);
};
myComboBox.addEventListener("close", myComboBoxListener);
iv been using this code which is on the main timeline but i cant get it to work!
"ifrmvr" is the iframe target
import mx.controls.ComboBox;
var myComboBox:ComboBox;
var myDataProvider:Array = new Array();
myDataProvider = [{label:"Room 01", data"room01.html","ifrmvr")}, {label:"Room 02", data:"room02.html"}];
myComboBox.dataProvider = myDataProvider;
var myComboBoxListener:Object = new Object();
myComboBoxListener.close = function()
{
//trace(myComboBox.selectedItem.data);
getURL(myComboBox.selectedItem.data);
};
myComboBox.addEventListener("close", myComboBoxListener);
iv been using this code which is on the main timeline but i cant get it to work!
"ifrmvr" is the iframe target