you may need to include a random digit to prevent caching especially if "mid" is the same value each time the function attempts to load the php page.

var rand:Number = Math.floor(Math.random() * 100)
loadVariablesNum("live_flash.php?mid="+mid+"&r="+rand, 0, "GET");




On Apr 19, 2008, at 12:43 PM, Scott Wilhelm (HireAWebGeek.com) wrote:

Hello:



I'm trying to update a dynamic text field that is being loaded with
variables brought in from a php file loaded in within a setinterval
function...for some reason though, it will not update the text field, even
though I have the it in the function...I'm, using AS2...



This is the script I have so far:



setInterval(updatescoreboard(), 1000, "");



function updatescoreboard() {

loadVariablesNum("live_flash.php?mid="+mid, 0, "GET");

_level0.t1s.text = t1s;

}



Any ideas/suggestions to get this to work?



Thanks,



Scott

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to