# Problem with a dynamic text

**URL:** https://forum.kirupa.com/t/problem-with-a-dynamic-text/4626
**Category:** Uncategorized
**Created:** [August 14, 2002, 8:28pm UTC](https://forum.kirupa.com/t/problem-with-a-dynamic-text/4626 "2002-08-14T20:28:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ibanez](https://avatars.discourse-cdn.com/v4/letter/i/a4c791/32.png) [@Ibanez](https://forum.kirupa.com/u/Ibanez)
#### Post date: [August 14, 2002, 8:28pm UTC](https://forum.kirupa.com/t/problem-with-a-dynamic-text/4626/1 "2002-08-14T20:28:12Z")

</div>

I’ve got a movie that i’m getting dynamic data from a data base. It displays the last five records in the database. What I want to do is place a button in the movie that does the math function for the asp and passes the variable then refreshes it in the movie. I know I’ve seen a tutorial in the past where it would pass the variable in the background and I could reload the text into the same text window. Does anyone know what I need to do?

[http://users.apex2000.net/rbrown/asp/flash\_db/blog.html](http://users.apex2000.net/rbrown/asp/flash_db/blog.html)

here is the source I have for the button:

on (release) {  
clicks = clicks + 1;  
count = clicks \* 5 + 1;  
displaycount = count;  
getURL(“[http://users.apex2000.net/rbrown/asp/flash\_db/demo.asp](http://users.apex2000.net/rbrown/asp/flash_db/demo.asp)”, “”, “POST”);  
loadVariables(“demo.asp”, “this”);  
}

---

<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 14, 2002, 8:49pm UTC](https://forum.kirupa.com/t/problem-with-a-dynamic-text/4626/2 "2002-08-14T20:49:42Z")

</div>

Well you have that code on a button I pressume and you have it loading the variable into ‘this’ which would be used for a movie clip or at least I have always thought.

```auto
**on (release) {
    [color=red]clicks ++;[/color]
    count = clicks * 5 + 1;
    displaycount = count;
    getURL("http://users.apex2000.net/rbrown/asp/flash_db/demo.asp", "", "POST");
    [color=red]loadVariables("demo.asp", "this");[/color]
}**

```

[color=red]clicks ++;[/color] is equal to what you had and it is much more neat and simple.

[color=red]loadVariables(“demo.asp”, “this”);[/color] and **“this”** may be a reason why your varibale is not going into flash so replace it for an actual location like the \_root timeline or a movie clip!

---

<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 14, 2002, 11:55pm UTC](https://forum.kirupa.com/t/problem-with-a-dynamic-text/4626/3 "2002-08-14T23:55:40Z")

</div>

that still takes me to the next page instead of reloading it in the text box. I’m pretty sure I’ve seen this done before. Is it possible?

---

<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 15, 2002, 7:18pm UTC](https://forum.kirupa.com/t/problem-with-a-dynamic-text/4626/4 "2002-08-15T19:18:51Z")

</div>

Does anyone else know what the problem could be?
