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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection Problems -- Some people it updates, some people not...

Status
Not open for further replies.

tkinter

Technical User
Jul 31, 2002
24
0
0
US
Hey guys -- mainly oldnewbie...I'm having a connection problem -- Heres my code so far...

Code:
//Create the LoadVars object and load data into it
ind = new Array();
name = new Array();
team = new Array();
hp = new Array();
ap = new Array();
x = new Array();
y = new Array();

ih = new String()
nh = new String()
th = new String()
hh = new String()
ah = new String()
xh = new String()
yh = new String()

nh = ""
th = ""
hah = ""
xyh = ""

myData = new LoadVars();
myData.load("[URL unfurl="true"]http://68.59.134.62/live.php");[/URL]
myData.onLoad = function(succes){
    for(var i=0; i<33; i++){
        ind[i] = this[&quot;ind&quot;+i];
        name[i] = this[&quot;name&quot;+i];
        team[i] = this[&quot;team&quot;+i];
        hp[i] = this[&quot;hp&quot;+i];
        ap[i] = this[&quot;ap&quot;+i];
        x[i] = this[&quot;x&quot;+i];
        y[i] = this[&quot;y&quot;+i];
        // A few traces to check...
		
		nh = nh + name[i] + &quot;<br>&quot;;
		th = th + team[i] + &quot;<br>&quot;;
		hah = hah + hp[i] + &quot;, &quot; + ap[i] + &quot;<br>&quot;;
		xyh = xyh + x[i] + &quot;, &quot; + y[i] + &quot;<br>&quot;;
        //trace(&quot;ind&quot;+i+&quot;: &quot;+ind[i]);
        //trace(&quot;name&quot;+i+&quot;: &quot;+name[i]);
        //trace(&quot;team&quot;+i+&quot;: &quot;+team[i]);
        //trace(&quot;hp&quot;+i+&quot;: &quot;+hp[i]);
    }
		NamesTxt.htmlText = nh;
		TeamsTxt.htmlText = th;
		hpapTxt.htmlText = hah;
		xyTxt.htmlText = xyh;

};
myData.unload
myData = null

Now, my problem, I have 2 layers, 1 with the actionscript in like 15 frames (not 15 keyframes), and the text boxes in a 2nd frame -- now the problem is...some people see it refresh, others dont.

What would be the best way to be refreshing this php in flash?? -- if the people go to live.php in IE -- and hit refresh, it takes no time at all to refresh all the data.

Why are some people not getting the refresh and others are?

Oldnewbie, if you want the files to look at email me at tktiger@tkwired.com -- I will send them to you...I need to have everyone that sees the flash document to be able to be getting these refreshed values pretty quickly.
 
You can allways e-mail me the files, but as I said, I'm not too familiar with arrays, and even less with server side scripting. If it's just a refresh problem, I may be able to do something, but no promises!

BTW, none of your links above work for me!
 
I sent you the files oldnewbie.

Good luck, I really need help with this...its going to be a very sweet webapp.
 
It seems to work if I set loop to true in the html, or force the movie to gotoAndPlay(1); on frame 15?
 
I've had the loop set to true this whole time.

On the webpage it doesn't work.

Would it be a 'cross-site scripting' thing that IE is protecting against?...because it seems to get it a first time...but not refresh it.

I've also found a really weird occurance -- if I have the webpage open, and the webpage isn't properly updating, I can open the .swf and it will refresh the one on the webpage as its refreshing!

I think its possibly not getting the php over and over again because of...well, I dont know...

I'm guessing the .onload function isn't running because I dont see any errors, etc...
 
Could someone who's used to getting this data help me?

I believe its a cross-site scripting block that IE has...but its not on another site!

argh!

Could one of you guys help me with this?
 
I did see your live php page updating at some point last night (connecting directly to it), but it doesn't seem to be updating since. Is it?
 
Hey old, test it again...clear your cache, refresh, and try it again, it should be updating...I hope.

My problem is, some people it updates, some people it dont.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top