PDA

View Full Version : combo box


srinuseshu
07-06-2007, 12:16 PM
hi ,
i have code for a simple player which plays ".swf" files. i want to introduce one more component combo box . combo box event "change" , is not working. i mean plz verify my code..


in my code there is a function called "vedoplayer". all the events are called from here..

import mx.controls.ComboBox;
[Event("change")]

class vedioplayer
{
private var combo:ComboBox;

function vedioplayer()
{
......
..........
.........
this.addEventListener('change',this) ;
like this somany listeners for play buttons.............etc


.........

combo.change = Delegate.create(this,this.comboAction);
......
.....
}

function comboAction()
{
trace("under combobox Action method");
}

}
this is the sample code but it displays there is no property with the name change..


how can i invoke comboAction function?? plz urgent....
thank you in adv & srinu

hangalot
07-06-2007, 01:37 PM
this is flex question really and then you might as well use mxml which will make things easier for you

dr_zeus
07-06-2007, 06:18 PM
Delegate.create(this,this.comboAction);

Actually, this looks like an AS2 question.

hangalot
07-07-2007, 04:20 PM
flex 1.5 prob