Forum C# pushing data in

pushing data in

Postby illusion » May 7th, 2010, 10:28 pm

Hi,

Firstly, player.io seems very awesome :) a very nice job you guys/girls have done!! :)
Secondly I'm not sure how to phrase my subject, so sorry for not searching first.

How would I go about putting data into the game.
So far example;

I have a web page (say plain old html) with a form on it, it has a text box for my name and a button which submits, underneath that it has the swf game file (say fridge magnets).
When I click on the button I want my name to be pushed into the game, so the page refreshes and the game now has my name displayed.

Now I know you can have text boxes in flash and stuff, but I want to know how to push data in and just wanted a simple example to explain what I wanted :)

Thanks

Illusion
illusion
 
Posts: 1
Joined: May 7th, 2010, 10:13 pm

Re: pushing data in

Postby Oliver » May 10th, 2010, 9:41 am

There are two ways you might want to look at

FlashVars: An argument to the embed tag. You'd use this when you have data during the page load that you wish to pass to the flash file.

ExternalInterface: (red) A way for flash to talk with javascript (or other flash files) that are currently live. You'd use this to call into or out from running flash files.

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am


Return to C#