Forum Moderators: open

Message Too Old, No Replies

External txt file problem

         

smeargol

6:44 am on Aug 10, 2005 (gmt 0)



Hi flash gourou i have a big problem.

First exuse me for my bad english.

Sommaire.asp give a string like that :
Titre1=Kenya&Titre2=Mali and so on
I put the county in a dynamic text field name Titre1, Titre2…
The below code work fine in flash (CTRL+Enter) but they do not work in an html page. Why?

SommaireASP = new LoadVars();
SommaireASP.load("http://www.#*$!.com/Sommaire.asp?ID=Voyage");
SommaireASP.ref = this;
SommaireASP.onLoad = function(succes) {
if (succes) {
for (var i = 1; i<6; i++) {
this.ref["Titre"+i].text = this["Titre"+i];
this.ref["Bulle"+i].text = this["Bulle"+i];
}
} else {
trace("chargement impossible actuellement");
}
};

BlobFisk

9:49 am on Aug 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, smeargol!

I'm not quite sure I understand your question - are you trying to use this code in an HTML page?