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();
Spent half a day for the solution, tried XFBML component, fb:fan, but found that firefox cannot render it.
The best solution, in terms of using FBML, could be using fb:iframe.
<fb:iframe
src=』http://www.facebook.com/connect/connect.php?
api_key=APIKEY&
channel_url=URL_CONTAINS_XD_RECEIVER.HTM&
id=PAGE_ID&
name=&
width=150&
connections=&
stream=&
logobar=&
css=』 >
</fb:iframe>
you can get page id of your app through Fan box tool
Reference: http://wiki.developers.facebook.com/index.php/Fan_Box
//import facebook api
require_one 『pathTolib/facebook/client/facebook.php』;
//create facebook instance
$ fb = new Facebook(apikey, secret);
//get current user id
$fb_user = $facebook->require_login();
//check if the user has added the app
if(!$facebook->api_client->users_isAppUser()){
$facebook->redirect($facebook->get_add_url());
}
//get photo data
$photoData = $facebook->api_client->users_getInfo($fb_user,’pic_big’);
$photo = $photoData[0]['pic_big'];
Great tutorials here
http://www.insideria.com/series-facebook-dev.html
Facebook API test tools
http://developers.facebook.com/tools.php
Flash Loading 的感慨
http://www.wowbox.com.tw/blog/article.asp?id=3209
做Flash用三格..
1. preloader
2.resources //將library 中recourses 輸出到第二格
3.init
FLASH程式優化


近期迴響