I am trying to populate a text box with different text on each frame. I am using Enter Frame to control loading the new text, but I lose the formatting when I do that.
and here is the code to apply the style to the text box:Code:this.addEventListener (Event.ENTER_FRAME, popUpText); function popUpText (event:Event):void{ Object(this).PopUp_mc.pop_txt.htmlText=textArray[(currentFrame-1)]; }
Why am I losing my formatting the moment I put it in a funtion? It works fine by itself, but then I it won't update on each frame.Code:Object(this).PopUp_mc.pop_txt.setTextFormat(myTF);
Thanks!


Reply With Quote