my facebook game is only in playable state today, 3 days from the day i expected :(
the thing that i have missed
1) flash security problem, when loading crossdomain resourses. solution is easy just need to add Security.loadPolicyFile("http://profile.ak.fbcdn.net/crossdomain.xml");
2) flash window is always on top, it covered facebook UI. solution is easy too. set swfobject's params wmode: "opaque" or "transparent". i chosen opaque because transparent has performance hit
3) bug in my php code, map is always save in new entry. solution is
a) don't use UPDATEto check for existence of a user because it might return 0 when the update data is same as the existing data. use SELECT instead
b) mysqli doesn't has $mysqli->rows ionly $mysqli->affected_rows different from mysql api
4) not fully understood but it is something todo with IE cache swf in memory, therefore in IE, papervision is only on first time. to trick IE to reload it everytime i have to add a random number behind my swf file. e.g. play.swf?RANDOM. this not a best solution but it works for now
No comments:
Post a Comment