# loadMovie

**URL:** <https://forum.kirupa.com/t/loadmovie/26199>\
**Category:** Uncategorized\
**Created:** [July 20, 2003, 9:21pm UTC](https://forum.kirupa.com/t/loadmovie/26199 "2003-07-20T21:21:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cuerotech](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@cuerotech](https://forum.kirupa.com/u/cuerotech)\
**Post date:** [July 20, 2003, 9:21pm UTC](https://forum.kirupa.com/t/loadmovie/26199/1 "2003-07-20T21:21:44Z")

</div>

im getting a variable ($background) from a php script. so i did echo “background=$background”; in the script so that i can still use the variable ‘background’ in flash. then, i try this: holder.loadMovie(background); and it equals onfloor.jpg, but i dont see onfloor.jpg loaded when i do this! if i just type “onfloor.jpg” it works fine…whats the deal?

---

<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:** [July 21, 2003, 3:01am UTC](https://forum.kirupa.com/t/loadmovie/26199/2 "2003-07-21T03:01:08Z")

</div>

It has to be a simple error. I’ve used string variables in loadMovie(); methods before. I know it works.

Try using trace() to make sure that the variable is loading correctly. If it is, then it has to be some issue with where the variable is located, compared to where your command is being called from.

---

<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:** [July 22, 2003, 12:34pm UTC](https://forum.kirupa.com/t/loadmovie/26199/3 "2003-07-22T12:34:30Z")

</div>

Try:

holder.loadMovie(""+background+"");

Regards,  
Viru.
