var snd:Sound = new Sound();
/*new Sound(new URLRequest("http://translate.google.com/translate_tts?q=" + sField.text)).play();*/
var req:URLRequest = new URLRequest("http://translate.google.com/translate_tts?tl=en&q=" + sField.text);
snd.load(req);
channel = snd.play();
I’m trying to include some text to speech function into my flash, the code above works perfectly fine when i open my class in AS3, however it fails when I uses adobe air to run my class
can someone tell me why?
below is the error message:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.