Pez Cuckow
Pez Cuckow

Reputation: 14422

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

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 doesn't seem to have worked.

Upvotes: 0

Views: 670

Answers (1)

Xaero Degreaz
Xaero Degreaz

Reputation: 26

Try this..

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

trace(paramList["fb_sig_user"];

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

Upvotes: 1

Related Questions