# Variables within Flash MX

**URL:** <https://forum.kirupa.com/t/variables-within-flash-mx/9001>\
**Category:** flash\
**Created:** [December 2, 2002, 9:07pm UTC](https://forum.kirupa.com/t/variables-within-flash-mx/9001 "2002-12-02T21:07:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![s200](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@s200](https://forum.kirupa.com/u/s200)\
**Post date:** [December 2, 2002, 9:07pm UTC](https://forum.kirupa.com/t/variables-within-flash-mx/9001/1 "2002-12-02T21:07:37Z")

</div>

Flas and variables - if else statements

I’m new to flash and seem to have a problem with variables brought over from php.

I have a main movie loading in two other swf’s - one just gets the data from php on a loop to return variables as echo “word=$word&player=$player”;

Both variables are being returned into the movie as I have no problem with tem being shown in dynamic text boxes but if I try to use the variable player (which will only contain 1,2,3,or 4) in some if else statements it doesn’t seem to work ? If I enter the variable thru the browser as main.swf?player=1 all the if/else code works OK so I don’t think there’s a problem there.

Is there anything I need to do to set the variable differently. I just want the variable to be used to load a different swf file in the main.swf file depending on the number returned from php.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 6:14am UTC](https://forum.kirupa.com/t/variables-within-flash-mx/9001/2 "2002-12-03T06:14:00Z")

</div>

Are you saying that the varibles being returned from the php are equal to numerical values? Do you get a NaN statement when you try to do things with them?
