# Refreshing the dynamic text field

**URL:** https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119
**Category:** Uncategorized
**Created:** [September 1, 2002, 9:28pm UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119 "2002-09-01T21:28:52Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Dianachka](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@Dianachka](https://forum.kirupa.com/u/Dianachka)
#### Post date: [September 1, 2002, 9:28pm UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/1 "2002-09-01T21:28:52Z")

</div>

Here is the problem:

when i update the text files and press refresh on my website, the old text shows up in the dynamic text field, i have to actually close the browser and open the site again to see the new text, is there a way to have the text refresh using the refresh button?

thanks so much,

Diana

---

<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: [September 1, 2002, 10:00pm UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/2 "2002-09-01T22:00:17Z")

</div>

I am not 100% sure on this, but I dont think the text refreshes with the button because only the swf refreshes all other files are still be referenced through cache… I encounter the same thing in my sites - I just close the site and reload it to check it. It isnt really a problem though because anyone who loads the site after your update will get the new text.

Peace

---

<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: [September 1, 2002, 11:01pm UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/3 "2002-09-01T23:01:26Z")

</div>

Try this code:

Attach this code to your refresh button.

on(release){  
myTextField.text = “”;  
}

Hope this helps

Kyle

---

<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: [September 1, 2002, 11:21pm UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/4 "2002-09-01T23:21:30Z")

</div>

I may be wrong, but I believe she was talking about using the BROWSER refresh button - which I dont think there is a work around for. However using icemans code and making a refrash button in your swf would be a great idea - I didnt think of that.

Peace

---

<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: [September 2, 2002, 1:11am UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/5 "2002-09-02T01:11:57Z")

</div>

yea a refresh button is cool, but i was wondering if this can be automatic and insinc with the refresh button itself…hmm still pondering on the idea,

but thanks for all the suggestions

Diana

---

<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: [September 2, 2002, 1:42am UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/6 "2002-09-02T01:42:51Z")

</div>

In fact I don’t know its usage,I hoped it can be discussed

\<hr\>updateAfterEvent();\<hr\>

---

<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: [September 2, 2002, 2:32am UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/7 "2002-09-02T02:32:38Z")

</div>

updateAfterEvent();

trying…

thanks, will let you know how it went 🙂

Diana

---

<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: [September 2, 2002, 2:42am UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/8 "2002-09-02T02:42:10Z")

</div>

onClipEvent(load){  
myTextField.text = “”;  
updateAfterEvent();

This will refresh that field every time you load the movie, if you put a blank movie clip on the first frame and attach this code.

Hope this helps

Kyle

---

<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: [September 2, 2002, 2:47am UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/9 "2002-09-02T02:47:56Z")

</div>

Try this…

rn = Math.round(Math.random()\*1000000);  
loadVariablesNum (“flashdata.txt?reload=”+rn,0);

(that is, if you are loading your data from an external .txt file)

---

<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: [September 2, 2002, 3:21am UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/10 "2002-09-02T03:21:50Z")

</div>

trying all the tips you are giving me, will let you know which ones does the trick.

again thanks,

Diana

---

<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: [September 2, 2002, 7:43am UTC](https://forum.kirupa.com/t/refreshing-the-dynamic-text-field/5119/11 "2002-09-02T07:43:38Z")

</div>

IE’s cache can be really anoying sometimes…i usualy clear my temp files if i want to see it properly

try hitting F5 on the keyboard or ctrl F5 to refresh but i dont think it will be any different… also i think that the fact that the text loaded from a loadVars action being cached could bring out some major security issues… but yeah i’m going to go hide in my hole now 🙂
