# Help Please, Variable Problem (I Think)

**URL:** <https://forum.kirupa.com/t/help-please-variable-problem-i-think/186175>\
**Category:** flash\
**Created:** [April 19, 2006, 3:57pm UTC](https://forum.kirupa.com/t/help-please-variable-problem-i-think/186175 "2006-04-19T15:57:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryanbuchanan](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@bryanbuchanan](https://forum.kirupa.com/u/bryanbuchanan)\
**Post date:** [April 19, 2006, 3:57pm UTC](https://forum.kirupa.com/t/help-please-variable-problem-i-think/186175/1 "2006-04-19T15:57:02Z")

</div>

I have a SWF as the header to my website.  
When the page is loaded, it loads a random SWF from a designated folder.

_loadVariablesNum(“billboards/count.php”, 0, “POST”);  
loadMovie(“billboards/billboard”+num+".swf", “\_root.stage”);_

count.php counts the # of swf files in the folder it can choose from and returns a random number for one of them, for example: “&num=3”

it tries to load “billboard.swf” and ignores the num variable, any idea what am I doing wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![neutrino](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@neutrino](https://forum.kirupa.com/u/neutrino)\
**Post date:** [April 20, 2006, 5:58am UTC](https://forum.kirupa.com/t/help-please-variable-problem-i-think/186175/2 "2006-04-20T05:58:11Z")

</div>

try eval(“billboards/billboard”+num+".swf")
