开发者

Embedded SWF in Facebook with MochiAds Loader, access FB flashvars?

开发者 https://www.devze.com 2022-12-13 05:54 出处:网络
I have a flash game embedded on Facebook but need access to the flashvars facebook passes to all embedded games. However I am using the mochiads preloader meaning that _root.fb_sig_user is always unde

I have a flash game embedded on Facebook but need access to the flashvars facebook passes to all embedded games. However I am using the mochiads preloader meaning that _root.fb_sig_user is always undefined?

How do I get to the variables?

stage.loaderInfo.parameters.fb_sig_user

Was my best guess and it do开发者_运维百科esn't seem to have worked.


Try this..

paramList = LoaderInfo(this.root.loaderInfo).parameters;

trace(paramList["fb_sig_user"];

fb_session = new FacebookSessionUtil("api_key","api_secret", stage.loaderInfo);
0

精彩评论

暂无评论...
验证码 换一张
取 消