I'm using this line of code: new Sound(new URLRequest("http://translate.google.com/translate_tts?q=" + inputTxt_mc.text)).play(); Code (markup): everything works great testing it from the .fla but when i host the .swf anywhere online it doesn't work. is google blocking me? Anyone know whats up?
nah, it's googles site blocking me I can't edit their crossdomain. I need to proxy their page from one of my own php pages, anyone know how?
yeah thats exactly what i'm doing, it works perfect tested in the .fla but when I put the .swf on any site it's blocked. No online examples work either.
This one works on my server: http://www.flashcomponentstemplates.com/textSpeechTest/textSpeech.html var req:URLRequest= new URLRequest( "http://translate.google.com/translate_tts?tl=en&q=" + encodeURI(_inputPt.text)); var snd:Sound = new Sound(req); snd.play(); PHP: Obviously with a dynamic textfield called "_inputPt". The example I gave you on ActiveDen also has a link to an online example that works.