# Problem with loadVars

**URL:** <https://forum.kirupa.com/t/problem-with-loadvars/60066>\
**Category:** flash\
**Created:** [August 6, 2004, 2:57am UTC](https://forum.kirupa.com/t/problem-with-loadvars/60066 "2004-08-06T02:57:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eudora](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@eudora](https://forum.kirupa.com/u/eudora)\
**Post date:** [August 6, 2004, 2:57am UTC](https://forum.kirupa.com/t/problem-with-loadvars/60066/1 "2004-08-06T02:57:36Z")

</div>

Hi all,

I have 2 loadVars - myVars, myPictures

basically i have defined their onLoad functions

so in myVars, i call for

```auto
myPictures.load("http://www.fakedevil.com/lurgee/pictures2.php?id="+this._parent.link2.text+"&time=" add getTimer(), "");

```

pictures2.php is working cos I just check so by rite the variables loaded should change… but somehow each time I check those variables in myPictures.onLoad, the variables are always the same. I checked these online as well… am i doing something wrong?  
;(

---

<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:** [August 6, 2004, 3:00am UTC](https://forum.kirupa.com/t/problem-with-loadvars/60066/2 "2004-08-06T03:00:10Z")

</div>

try this:

```auto
myPictures.load("http://www.fakedevil.com/lurgee/pictures2.php?id="+this._parent.link2.text+"&time="+getTimer());

```

---

<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:** [August 6, 2004, 3:20am UTC](https://forum.kirupa.com/t/problem-with-loadvars/60066/3 "2004-08-06T03:20:47Z")

</div>

same result… ☹

---

<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:** [August 6, 2004, 3:39am UTC](https://forum.kirupa.com/t/problem-with-loadvars/60066/4 "2004-08-06T03:39:18Z")

</div>

is there somewhere i can clear the variables loaded earlier and reload them with new variables?

---

<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:** [August 6, 2004, 5:33am UTC](https://forum.kirupa.com/t/problem-with-loadvars/60066/5 "2004-08-06T05:33:52Z")

</div>

anyone? i tried with a new movie with 2 buttons each asking myVars to load a different php file… apparently the variables loaded are appended… can someone teach me how to reload?

---

<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:** [August 7, 2004, 2:38pm UTC](https://forum.kirupa.com/t/problem-with-loadvars/60066/6 "2004-08-07T14:38:57Z")

</div>

Not sure why getTimer doesn’t work. You can try this,

```auto

myPictures.load (http://www.fakedevil.com/lurgee/pictures2.php?id=" + this._parent.link2.text + "&antiCache=" + new Date ().getTime ());

```

This should ensure that a new page is requested everytime from the server. Another thing  
you can try is, see whether the page is loaded back correctly by sending the antiCache variable back along with the contents of the file. And display it somewhere in the flash file. They you would know whether a new page was requested.

Also try to see if the php script is working from the browser directly with the url you are generating in the flash movie.
