Okay, here is a sample, that wastes memory. It reads variables from server (database) continuosly (onLoad is called when previous loading is complete). Memory usage grows every minute, so it is unusable.
load_lv=new LoadVars();
load_lv.load("/path/to/php/file.php");
load_lv.onLoad=function(success:Boolean)
{
if(success)
{
load_lv.load("/path/to/php/file.php");
}
}
Why is this simple sample wasting memory? Does someone know how to rewrite it to resolve this issue?
load_lv=new LoadVars();
load_lv.load("/path/to/php/file.php");
load_lv.onLoad=function(success:Boolean)
{
if(success)
{
load_lv.load("/path/to/php/file.php");
}
}
Why is this simple sample wasting memory? Does someone know how to rewrite it to resolve this issue?