Listening on a dynamic texbox?
Is it possible to act of the changed value of a dynamic textbox using AS3? I'm using the code which I believe is right (it's not producing errors), but it just won't work. Here's the code:
Code:
Code:
function moveHolderO(evt:Event):void{
addEventListener(Event.ENTER_FRAME, moveHolderOpen);
function moveHolderOpen(evt:Event):void{
if(gamertagHolder.x>stage.stageWidth-350){
gamertagHolder.x -= 10;
}
}
}
gamertagHolder.gamertag.addEventListener(Event.CHANGE, listenMoveHolder);
function listenMoveHolder(evt:Event):void{
addEventListener(Event.ENTER_FRAME, moveHolderO);
}
So if you need a brief explaination of what this does, it grabs a gamertag (Xbox Live) from a text string in a file, if the text has changed, the Flash notices the change, and tells the movieclip holding the dynamic text box to smoothly move out from the right of the screen (350px) revealing the new name. 2 seconds later the box disappears again. Any help appreciated!