I was trying to control a popup textbox with AS, but I couldn't get the tween to reset and be reused. Finally gave up and just animated the text box to pop up instead. I am able to get it to play if I use
Code:
Object(this).popUpAnim_mc.gotoAndPlay("anim");
however, as soon as I put it in a function, it stops working. The trace, however does come up so the function itself is fine.
Code:
this.addEventListener(Event.ENTER_FRAME,popAnim);
function popAnim(event:Event):void{
	Object(this).popUpAnim_mc.gotoAndPlay("anim");
	trace("anim");
}
I will be adding an 'if statement' to this code and control whether or not it plays or is static with information from an array. But I can't even get it to run just in a simple function. what am I overlooking??

Thanks!