views:

323

answers:

1

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.

+1  A: 

Try this..

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

trace(paramList["fb_sig_user"];

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

Xaero Degreaz