Hi everyone,
I’m trying to send a dynamic textbox instance name as a parameter, so I can use it in a function.
e.g.
btn_play.addEventListener(MouseEvent.MOUSE_DOWN, playVideo);
function playVideo(event.MouseEvent):void{
updateText(txt_inputbox);
}
function updateText(textboxName:string):void{
textboxName.text = “Hello World”
}
Is this actually possible if so what parameter type do I set textboxName as?
I cannot use the event.currentTarget as the function is called after clicking on a different button.
Any help would be much appreciated.
Thanks in advance.