Prisoner8
07-10-2001, 08:23 AM
Hey everyone,
I'm having a problem passing variables into a flash movie using an http request.
Here's the situation. My company makes casino games that involve real money. If a players internet connection goes down during a game, we have to be able to jump back into the game at the same point where the connection broke. Our databases keep track of all this information, so thats no problem, they'll just provide the information to the game to set it back up. The problem i'm having is getting flash to interpret this data properly.
The request i'm using as a test is something like this...
game.swf?var1=value1&var2=value2 etc.
Flash is interpreting some of these properly. For example, I can specify a value that will tell flash to go to the proper frame label or set the value of a dynamic text field on the stage.
What doesnt work is telling a dynamic text field inside an MC what to display or telling an MC to go to a particular frame. Even using parseInt(varName) to ensure it's not trying to go to a label instead of a frame number doesn't help.
Does anyone have any idea why flash can get and use variables properly in some cases but not others? I've bee ntrying everything imaginable for hours on end and can't get it all to work.
TIA for any help/advice
Cheers,
J.
I'm having a problem passing variables into a flash movie using an http request.
Here's the situation. My company makes casino games that involve real money. If a players internet connection goes down during a game, we have to be able to jump back into the game at the same point where the connection broke. Our databases keep track of all this information, so thats no problem, they'll just provide the information to the game to set it back up. The problem i'm having is getting flash to interpret this data properly.
The request i'm using as a test is something like this...
game.swf?var1=value1&var2=value2 etc.
Flash is interpreting some of these properly. For example, I can specify a value that will tell flash to go to the proper frame label or set the value of a dynamic text field on the stage.
What doesnt work is telling a dynamic text field inside an MC what to display or telling an MC to go to a particular frame. Even using parseInt(varName) to ensure it's not trying to go to a label instead of a frame number doesn't help.
Does anyone have any idea why flash can get and use variables properly in some cases but not others? I've bee ntrying everything imaginable for hours on end and can't get it all to work.
TIA for any help/advice
Cheers,
J.