Help with Flash widget + variables

Aug 19, 2007 at 8:23 PM
Hi all

I have been running a flash based instant messaging widget and am trying to convert it to run on the facebook platform. I can get it to work but my flash code includes variables such as id=1&username=ben&screen=red etc I have added the flash code to the Default FBML in the developer application section and it works fine (but only if I manually add these variables) heres my Default FBML code

<fb:swf swfsrc="http://www.minimobs.com/gui/loader.swf" imgsrc="http://www.minimobs.com/facebook_minimobs.gif" type="application/x-shockwave-flash" quality="high" scale="noscale" salign="t" name="minimobs" bgcolor="FFFFFF" allowscriptaccess="always" wmode="transparent" width="180" height="420"></embed>

I thought it might be in a querystring when adding the widget something like:
http://www.facebook.com/add.php?apikey=e87e6e4b261ac11b224389dddcf9539f&id=2&username=ben&skin=v3&screen=red

I have found this widget which seems to have done what I need.
http://www.facebook.com/add.php?api_key=558ca6debe70b30dd7c11990b6ce940f&next=http://www.layoutcodez.net/facebook/pets/done.php&v=1.0&pet=fish&name=a%20fish&me=ben

Passing those variables in the add url ends up with this in the final rendered flash on a users profile
src="http://www.layoutcodez.net/pets/fish.swf?cn=a%20fish&an=ben&clrra=100&clrga=100&clr_ba=100"

Seeing the above iam guessing that querystring is the way to go but how do I get facebook to use it, any ideas?