# Flash vars and xml

**URL:** https://forum.kirupa.com/t/flash-vars-and-xml/258958
**Category:** Uncategorized
**Created:** [April 29, 2008, 8:38pm UTC](https://forum.kirupa.com/t/flash-vars-and-xml/258958 "2008-04-29T20:38:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nsolcis](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nsolcis](https://forum.kirupa.com/u/nsolcis)
#### Post date: [April 29, 2008, 8:38pm UTC](https://forum.kirupa.com/t/flash-vars-and-xml/258958/1 "2008-04-29T20:38:50Z")

</div>

hi all,  
i’m having an issue passing flash vars to my externaly loaded swf,  
the swf i’m loading will display the flash vars in a dynamic txt feild but it seems as though the xml load command it uses to populate itself cant access them

heres an example

[http://www.memedex.com/surveybuilder.php?user\_id=3&surveyIdn=62200](http://www.memedex.com/surveybuilder.php?user_id=3&surveyIdn=62200)

you can see the number 3 in the upper left, and bottom right, these are the flash var for the user id, however the xml doesnt seem to get the value since it doesnt populate the movie, and therefore the link is invalid,

var userIdn:Number = \_level0.userIdn;  
var survey\_id:Number = \_level0.survey\_id;  
xml.load(“[http://www.memedex.com/api/getsurveyresultsxml.php?user\_id="+userIdn+"&survey\_id=](http://www.memedex.com/api/getsurveyresultsxml.php?user_id=%22+userIdn+%22&survey_id=)”+survey\_id);

i dont understand how the dynamic text box can read the flash var, but my xml AS cannot.  
any help is greatly appriciated.  
thanks in advance!
