Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't see data

Status
Not open for further replies.

rubbersoul

IS-IT--Management
Mar 20, 2003
88
CA
Let me try to explaining what's happening....
I have a flash movie....in that movie theres a section with some dynamic text box's.....it has the following actionscript code:

onClipEvent (load) {
loadVariablesNum(" 0, "GET");
}

I have taken that .swf and put it in a html page and called it index.html.
Now....if I go to run and type my page pops up....everything is cool...I see my dynamic text box and it has the data in it which is coming from games.php. However, as soon as I put my url....say it's I see my page again, and my dynamic text box....but no data in it??? I've changed the code above and put Code:

onClipEvent (load) {
loadVariablesNum(" 0, "GET");
}

and I get the same result.....
 
Off the top of my head, I'd leave out the port number in the url - it's not required and some servers will ignore it.

There's always a better way. The fun is trying to find it!
 
Are you trying to load the variables from another domain than the movie is in? If so Flash will block the process as a security measure. In MX2004 you can get around this with 'allowDomain'.

Or it could be a latency issue - loading from localhost is a very fast process due to the proximity of the server, but running on the web means delays in the data making a round trip - if you're trying to use the data immediately after the loadVariables call then the textbox will be blank as the data hasn't had time to arrive back from the server.
 
I'm hosting this site off my own PC. I have no domain setup. It's my XP box with IIS and mysql installed on it....

 
Then you should try leaving out the port # and/or a relative link.

Code:
on(release){
   loadVariablesNum("/games.php", 0, "GET");
}

The leading forward slash will cause IIS to add the URL to the beginning so the link above is actually
If they are in the same directory

Code:
on(release){
   loadVariablesNum("games.php", 0, "GET");
}

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top