desmodromics
06-18-2009, 03:08 AM
hello world,
im newbie in Flash and ActionScript things. :)
I want to counting how long the dataGrid loads all the data.
I've try his code :
var date1:Date = new Date;
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("http://localhost/final/Flash/DB-Single/get_db.php"));
var date2:Date = new Date();
trace( date2.valueOf() - date1.valueOf() );
trace ( date2.getTime() - date1.getTime() );
loadTimeTB.text = "Loaded : "+ (date2.valueOf() - date1.valueOf()) +" Milliseconds";
but the result is 1 or 0 Milliseconds. i think its kinda wierd. because the dataGrid load takes a longer time than 1 Millisecond.
anyone can help me? or give me any ideas?
thanks before lads.
-desMO-
im newbie in Flash and ActionScript things. :)
I want to counting how long the dataGrid loads all the data.
I've try his code :
var date1:Date = new Date;
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("http://localhost/final/Flash/DB-Single/get_db.php"));
var date2:Date = new Date();
trace( date2.valueOf() - date1.valueOf() );
trace ( date2.getTime() - date1.getTime() );
loadTimeTB.text = "Loaded : "+ (date2.valueOf() - date1.valueOf()) +" Milliseconds";
but the result is 1 or 0 Milliseconds. i think its kinda wierd. because the dataGrid load takes a longer time than 1 Millisecond.
anyone can help me? or give me any ideas?
thanks before lads.
-desMO-