var req:URLRequest= new URLRequest( "http://translate.google.com/translate_tts
?ie=UTF-8&tl=zh-TW&q=" + encodeURI("中文"));
var snd:Sound = new Sound(req);
snd.play();
as3 text to speech
Adobe AIR to Google Play on Mac
touch ~/.bash_profile; open ~/.bash_profile
in TextEdit :
PATH="$PATH:/Applications/Adobe Flash Builder 4.6/sdks/4.6.0_AIR3.4/bin"
export PATH
save bash_profile (Command+S)
Terminal:
source ~/.bash_profile
test Version
adt -version
step2. create p12 for AIR
adt -certificate -cn yoururl.com.tw 1024-RSA googleplay.p12 123456
step3. after 2033/10/22
keytool -genkeypair -keystore googleplay.p12 -storetype pkcs12 -validity 8050
ref http://zengrong.net/post/1695.htm
eventlistener with params use Dictionary
var urls:Dictionary = new Dictionary();
urls[button0_btn] = "url0";
urls[button1_btn] = "url1";
urls[button2_btn] = "url3";
button0_btn.addEventListener(MouseEvent.CLICK, onClick);
button1_btn.addEventListener(MouseEvent.CLICK, onClick);
button2_btn.addEventListener(MouseEvent.CLICK, onClick);
function onClick(evt:MouseEvent):void{
trace(urls[evt.target]);
}
adobe AIR 3 use JSON library error
1- removed all the import com.adobe.serialization.json.JSON
2- changed each JSON.decode to JSON.parse
3- changed each JSON.encode to JSON.stringify
4- changed JSONParserror to Error
facebook desktop for adobe air can't logout
FacebookDesktop.as
'params.next = "http://static.ak.fbcdn.net/connect/xd_proxy.php#origin="+(appOrigin?appOrigin:"")'
and change it to
'params.next = "http://www.facebook.com/"'
This solved my problem.
