# @#{!^\[(§# Flash - sending variables with loadmovie

**URL:** https://forum.kirupa.com/t/flash-sending-variables-with-loadmovie/183813
**Category:** flash
**Created:** [March 30, 2006, 9:25am UTC](https://forum.kirupa.com/t/flash-sending-variables-with-loadmovie/183813 "2006-03-30T09:25:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rasper](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Rasper](https://forum.kirupa.com/u/Rasper)
#### Post date: [March 30, 2006, 9:25am UTC](https://forum.kirupa.com/t/flash-sending-variables-with-loadmovie/183813/1 "2006-03-30T09:25:12Z")

</div>

Why does everything in Flash have to be such a pain in the \*\*\*? You think you’re going to do something simple in 5 seconds of typing, but half of the times it turns out you’re wasting hours searching for a way around some stupid restriction of flash.

This time I made a movie that uses some variables that are specified in the .html (FlashVars). Sending these variables from html to the flash movie is no problem.  
But I tried to see if my movie still works when it’s loaded into a holder movieclip. So I use the following code to load the movie and send the same variables to it:

```php
mc_holder.loadMovie("imageviewer.swf?width=700&height=350&imageList=afbeeldingen.txt&settings=ivsettings1.xml");

```

Should be easy enough, but it doesn’t work.

> Error opening URL “file:///D|/%5FOPDRACHTEN/%5FIMAGEVIEWER/ImageViewer/imageviewer.swf? width=700&height=350&imageList=afbeeldingen.txt&settings=ivsettings1.xml”

So I tried this:

```php
mc_loader.width="700";
mc_loader.height="350";
mc_loader.imageList="afbeeldingen.txt";
mc_loader.settings="ivsettings1.xml";
mc_loader.loadMovie("imageviewer.swf", "GET");

```

Which returns this:

> Error opening URL “file:///D|/%5FOPDRACHTEN/%5FIMAGEVIEWER/ImageViewer/imageviewer.swf? width=700&height=350&imageList=afbeeldingen\*\*%2E **txt&settings=ivsettings1** %2E\*\*xml”

(notice the %2E where a period should be)

When I leave out the variables like this, it loads the movie, but without the variables of course.

```php
mc_loader.loadMovie("imageviewer.swf");

```

Anybody have an idea on how to find a way that works?

Please!

---

<div class="post-metadata">

### Author: ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)
#### Post date: [March 30, 2006, 5:30pm UTC](https://forum.kirupa.com/t/flash-sending-variables-with-loadmovie/183813/2 "2006-03-30T17:30:05Z")

</div>

You’re sending Vars from a SWF directly to another SWF. I don’t know if that works.

---

<div class="post-metadata">

### Author: ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)
#### Post date: [March 30, 2006, 5:41pm UTC](https://forum.kirupa.com/t/flash-sending-variables-with-loadmovie/183813/3 "2006-03-30T17:41:25Z")

</div>

have you tried using the full url path to the file? Like this:

```auto
mc_holder.loadMovie("http://www.somewebsite.com/imageviewer.swf?width=700&height=350&imageList=afbeeldingen.txt&settings=ivsettings1.xml");

```
