終於還到張圖俾魚 |||
I am programing an iphone game with facebook networking , a Chinese app, as the default locale of Facebook iphone API is EN, I have to change it.
1. find the line in the FBLoginDialog.m
static NSString* kLoginURL = @”http://www.facebook.com/login.php”;
change it to login page of hongkong
static NSString* kLoginURL = @”http://zh-hk.facebook.com/login.php”;
or whatever locale you want
2. login your application settings, change “language”
又在朋友的同人誌參一腳, 今次是列支及烏克蘭天地配(畫面屬開發中版本)
這為八模(惡搞o靚模, Hetalia的八位女角)系列的其中一張
其他的先賣個關子啦XD
原本是出本子, 可惜成為上班族的各位同伴沒人能趕及deadline
結果變成postcard啦(逃)
(本子該會在下次RG出現)
同場應該還有之前的列支發售
唔買都泥睇下
檔位: J7 523 World ,CW 29
詳情: http://www.cwhk.org/php2/CwCircleBook.php?apply_id=4346
Interesting game tutorials here
Interesting example here
A quite good open source flash video player
var header:URLRequestHeader = new URLRequestHeader(“Content-type”, “application/octet-stream”); var jpgURLRequest:URLRequest = new URLRequest(“http://kurisi3.no-ip.org/test/storejpg/save_jpg.php?name=sketch.jpg”); jpgURLRequest.requestHeaders.push(header); jpgURLRequest.method = URLRequestMethod.POST; jpgURLRequest.data = jpgStream; navigateToURL(jpgURLRequest, “_blank”);
PHP code here
if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
{
$fname = $_GET["name"];
// get bytearray
$jpgData = $GLOBALS["HTTP_RAW_POST_DATA"];
//save jpg file
$fp = fopen($fname,”w+”);
fwrite($fp, $jpgData);
fclose($fp);
// add headers for download dialog-box
header(‘Content-Type: image/jpeg’);
header(“Content-Disposition: attachment; filename=$fname”);
print $fname;
}
else print “no raw data received”;
Calling FBJS from AS3, we need to use LocalConnection. Here is the codes
var connection:LocalConnection = new LocalConnection();









Recent Comments