Forum Sitebox Pass url variables to swf via Sitebox

Discussion and help relating to the PlayerIO webpage and Facebook app hosting solution, Sitebox.

Pass url variables to swf via Sitebox

Postby Sandhesten » March 2nd, 2012, 2:32 am

I am using urls like this to let users invite friends to join their game:
http://example.com/?action=join&id=9FjK ... RVLVfcjZ4w

Can I grab the url variables and send them via flash vars to the swf using Sitebox? I didn't see a this mentioned in the Sitebox documentation.
Sandhesten
Paid Member
 
Posts: 6
Joined: June 15th, 2010, 8:00 pm

Re: Pass url variables to swf via Sitebox

Postby Henrik » March 2nd, 2012, 2:38 pm

You can use the {% print_variables %} tag to see what variables are passed into the template. All values posted in a form submit (POST) or in the querystring to a page, are automatically added as template variables prefixed with ”POST_” and ”GET_” respectively.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Pass url variables to swf via Sitebox

Postby Sandhesten » March 3rd, 2012, 1:53 am

Thanks! Exactly what I needed.

It even passes them automatically on to the swf with flashvars. Didn't have to do anything... Awesome :)
Sandhesten
Paid Member
 
Posts: 6
Joined: June 15th, 2010, 8:00 pm


Return to Sitebox



cron