# AS3 Parameters

**URL:** <https://forum.kirupa.com/t/as3-parameters/315895>\
**Category:** flash\
**Created:** [November 7, 2010, 3:32am UTC](https://forum.kirupa.com/t/as3-parameters/315895 "2010-11-07T03:32:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VeddyCent](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@VeddyCent](https://forum.kirupa.com/u/VeddyCent)\
**Post date:** [November 7, 2010, 3:32am UTC](https://forum.kirupa.com/t/as3-parameters/315895/1 "2010-11-07T03:32:39Z")

</div>

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.
