Copy link to clipboard
Copied
hi:
I use the "UrlLoader" class to load google tts connection, and will always be an error "Stream Error".
But the browser or other language, this is not as3 internal problems. I use the connection "http://translate.google.com/translate_tts?tl=en&q=thank". I hope to be able to answer my questions.
var s:URLLoader = new URLLoader();
s.dataFormat = URLLoaderDataFormat.BINARY
s.addEventListener(Event.COMPLETE, onload);
var rrr:URLRequest = new URLRequest("http://translate.google.com/translate_tts?tl=en&q=put%20the%20chicken%20and%20onions%20in%20skillet%...");
rrr.contentType = URLRequestMethod.GET;
s.load(rrr);
Copy link to clipboard
Copied
what are you doing in your onload function?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now