- Hey! you were supposed to type something!
- I guess you have nothing to say...too bad.
- FlashInterface rocks!
- You like pushing my buttons, don't you?
- Ummmm...okay, this is a little awkward, what was I supposed to send?
- Don't be shy, just type anything. You will feel better. I promise!
- Well if you aren't going to talk to me, I'm outta here! Later.
private function dispatch():void
{
var str:String = !txtInput.text ? messages.item[count++ % messages.item.length()] : txtInput.text;
FlashInterface.dispatchEvent({type:'talkToFlash', data:str});
txtInput.text = "";
}
]]>