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
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