# Loading Dynamic Text On server

**URL:** <https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762>\
**Category:** flash\
**Created:** [November 7, 2002, 5:56am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762 "2002-11-07T05:56:40Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![l9Ul](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@l9Ul](https://forum.kirupa.com/u/l9Ul)\
**Post date:** [November 7, 2002, 5:56am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/1 "2002-11-07T05:56:40Z")

</div>

# \*Action in first frame:

# loadText = new loadVars(); loadText.load(“LINK.txt”); loadText.onLoad = function() { \_root.INFO.htmlText = this.LINK1; }; stop();

\*text loads okay

# \*Action in a movie clip:

on (release)  
{  
\_root.gotoAndStop(2);  
}

# on (rollOver) { loadText = new loadVars(); loadText.load(“LINK.TXT”); loadText.onLoad = function() { \_root.INFO.htmlText = this.LINK1; }; }

\*On mouseover, the dynamic text doesn’t load and the text loaded before (from frame 1 action) dissapears…

So wuts going on there? ;( HELP~

OH…BTW everything works fine OFFLINE (load swf from HD) … this problem occurs when i upload everything onto the server and try to load swf from the net…

---

<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:** [November 7, 2002, 6:51am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/2 "2002-11-07T06:51:40Z")

</div>

y dont u have a look at this thread: [http://www.kirupaforum.com/showthread.php?s=&threadid=8292](http://www.kirupaforum.com/showthread.php?s=&threadid=8292)

and another thing: Why do u want to load variables 2 times in the movie:q: :q:

---

<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:** [November 7, 2002, 7:40am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/3 "2002-11-07T07:40:22Z")

</div>

Try loading variables into \_root:

loadText.load(“LINK.txt”, \_root);

---

<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:** [November 7, 2002, 7:43am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/4 "2002-11-07T07:43:14Z")

</div>

> \*Originally posted by Dravos \*  
> \*\*Try loading variables into \_root:

loadText.load(“LINK.txt”, \_root); \*\*

not sure if u really can do that!!

---

<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:** [November 7, 2002, 7:51am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/5 "2002-11-07T07:51:24Z")

</div>

?? Can u not, i must be thinking of something else, just ignore that last comment then!!

---

<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:** [November 7, 2002, 7:54am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/6 "2002-11-07T07:54:45Z")

</div>

Just looked at the actionscript dictionaryt

\<B\>Usage\</B\>

loadVariables (“url” ,level/“target” [, variables])

so it should be able to handle

loadText.load(“LINK.txt”, \_root);

---

<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:** [November 7, 2002, 8:12am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/7 "2002-11-07T08:12:56Z")

</div>

look again at the mx reference:

LoadVars.load

Availability

Flash Player 6.

Usage

myLoadVars.load.[SIZE=5]**(url)**[/SIZE]

Parameters

url The URL from which to download the variables.

Returns

A string.

Description

Method; downloads variables from the specified URL, parses the variable data, and places the resulting variables into loadVarsObject. Any properties in loadVarsObject with the same names as downloaded variables are overwritten. Any properties in loadVarsObject with different names than downloaded variables are not deleted. This is an asynchronous action.

The downloaded data must be in the MIME content type application/x-www-urlform-encoded. This is the same format used by loadVariables.

This method is similar to the XML.load method of the XML object

---

<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:** [November 7, 2002, 9:40am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/8 "2002-11-07T09:40:10Z")

</div>

I should really drink some coffee when i wake up

dravos.\_status=dumbass;

it didnt even match what i was looking at, too much scripting can be bad 😛

SOrry h88

---

<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:** [November 7, 2002, 9:48am UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/9 "2002-11-07T09:48:53Z")

</div>

> \*Originally posted by Dravos \*  
> **dravos.\_status=dumbass;**

liked it, ill change my status as the above one 😛

yours,  
h88

---

<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:** [November 7, 2002, 2:16pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/10 "2002-11-07T14:16:21Z")

</div>

Well…i loaded the text first to make sure that text can be loaded. Still dunno wuts wrong…i mean how come it works fine on my HD and not on the net…why dont’ you look at the swf i uploaded…😉 (INFO is the Instance Name of the dynamic text beside \* , rollover codes are loaded into movie clip LINK.A and LINK.B)

[http://9unet.hypermart.net/](http://9unet.hypermart.net/)

thanks for the reply…

---

<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:** [November 7, 2002, 3:56pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/11 "2002-11-07T15:56:12Z")

</div>

could u post ur code plz!

yours,  
h88

---

<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:** [November 7, 2002, 4:28pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/12 "2002-11-07T16:28:02Z")

</div>

i tried that one, it Worked!

```php
loadText = new LoadVars()
loadText.load("LINK.txt");
loadText.onLoad = function(){
getURL(loadText.LINK1)
}

```

Hope this helps!

yours,  
h88

---

<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:** [November 7, 2002, 4:29pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/13 "2002-11-07T16:29:25Z")

</div>

Button code would be:

```php
stop();
aaa.onRelease = function(){
	_root.gotoAndPlay(2);
}

```

yours,  
h88

---

<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:** [November 7, 2002, 5:37pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/14 "2002-11-07T17:37:53Z")

</div>

Still the same problem…

I included the code…if u still wanna take a look at it…

Try running the swf off u’r HD then try running the one i uploaded on to [http://9unet.hypermart.net/](http://9unet.hypermart.net/)  
u’ll see the difference…(the rollover doesn’t work anymore)…  
Thanks again for u’r reply

---

<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:** [November 7, 2002, 10:50pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/15 "2002-11-07T22:50:37Z")

</div>

on (rollOver) {  
loadText = new loadVars();  
loadText.load(“LINK.TXT”);  
loadText.onLoad = function() {  
\_root.INFO.htmlText = \_root.loadText.LINK1; //\<\<\<\<\<  
};  
}

“\_root.loadText.LINK1”  
instead of  
“this.LINK1”

:rambo:

---

<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:** [November 7, 2002, 11:18pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/16 "2002-11-07T23:18:46Z")

</div>

:P, forgot to add \_root, some silly … 😛 😛

yours,  
h88

---

<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:** [November 7, 2002, 11:24pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/17 "2002-11-07T23:24:21Z")

</div>

Arh more problem…  
looks to me that the text file is reloaded everytime when a rollover event occurs…which cause a long delay(server is slow?)…

that doesn’t happen offline…geezzz …why can’t the stuff i do offline be exactly the same as online…

wut can i do to solve this? preloaders? dl all the textfile on the client’s pc first? if i do that how do i link to those files?

☹

---

<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:** [November 7, 2002, 11:31pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-on-server/7762/18 "2002-11-07T23:31:01Z")

</div>

y dont u just load ur textfiles Once!
