# Need help with data input into swf

**URL:** <https://forum.kirupa.com/t/need-help-with-data-input-into-swf/260601>\
**Category:** flash\
**Created:** [May 17, 2008, 9:58am UTC](https://forum.kirupa.com/t/need-help-with-data-input-into-swf/260601 "2008-05-17T09:58:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raduapostoleanu](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@raduapostoleanu](https://forum.kirupa.com/u/raduapostoleanu)\
**Post date:** [May 17, 2008, 9:58am UTC](https://forum.kirupa.com/t/need-help-with-data-input-into-swf/260601/1 "2008-05-17T09:58:37Z")

</div>

Hello, i am trying to make a simple poker game and i have encountered a problem in the development of the program.

i have a server-user based idea of the game, the server randoms the cards and puts them in a txt file with the help of some php script on a server.  
the output of the php file on the server is like this, a .txt file that has the folowing code in it “&c1=131&c2=51&c3=54&c4=21&c5=123&c6=23&c7=34&c8=91&c9=61”(this is a part of it)  
(c1=card 1 )

after this i load the variables into a the swf using “loadVariablesNum();” function.  
and i have dynamic text boxes named c1,c2,c3…  
the problem is :  
-when i play the swf file it works perfectly(double click on the swf), but when i play it using localhost on my firefox browser(localhost/file.swf) the variables aren’t recognized anymore. It is like the swf doesn’t import anything.

i couldn’t figure it out,

thanks  
radu
