# Loading Vars error

**URL:** <https://forum.kirupa.com/t/loading-vars-error/263116>\
**Category:** flash\
**Created:** [June 12, 2008, 6:16pm UTC](https://forum.kirupa.com/t/loading-vars-error/263116 "2008-06-12T18:16:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stupidsaint](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@stupidsaint](https://forum.kirupa.com/u/stupidsaint)\
**Post date:** [June 12, 2008, 6:16pm UTC](https://forum.kirupa.com/t/loading-vars-error/263116/1 "2008-06-12T18:16:38Z")

</div>

Hello

I am trying to load a movie into flash using an asp file to get the names of the url. the start will be “WEB\_ADDRESS” and then it will add a the end using script.

```auto
loadMovie("WEB_ADDRESS" + _root.myVars.fileName + *, "image"+ *)

```

it is looking into the ASP file and trying to fine fileName which is the problem. the filename has a number after it, in this case it is the variable \* but it is returning this

```auto

Error opening URL 
'BLAH_BLAH_BLAHfileName=undefined0'

```

the Blah is the start of the address which you dont need to know about but the undefined with the number after it should be what it is loading. undefined0 should be “fileName0”.

is there any way of making it think the \_root.myVars.fileName + \* is all one name?

Thanks

Stupid Saint

Life is only ever what you make of it

---

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [June 12, 2008, 8:45pm UTC](https://forum.kirupa.com/t/loading-vars-error/263116/2 "2008-06-12T20:45:59Z")

</div>

loadMovie(url:String, [method:String]) : Void

method is POST or GET…why do you have “image”+ \* there??

and can you put in place an example url …it hard to understand you blahs.

[http://yoursite.com/loadimage.asp?filename=filename0](http://yoursite.com/loadimage.asp?filename=filename0)

is that what you are wanting it to look like?

how are you defining your vars?

yourmovie.swf?filename=filename0?
