Hello Everyone
i am truly a newbie in as2, i have test the script in local flash “Test Movie” everything was perfect, however when i try to put the files into my remote server, the getBytesLoaded()
return to “0” and getBytesTotal() return to “-1” and the loader component scaleContent=true function was not working also,until i press “F5” refresh button, then everything back to normal, i dont know what is going wrong with my script, please anyone can help me?
i am using Flash CS3, as2.0 and ie7 and the dimension of my loader is 100x100 px
this is my script:
import mx.controls.Loader;
my_ldr.scaleContent = true;
this.onEnterFrame = function() {
var total = _root.my_ldr.getBytesTotal();
var loaded = _root.my_ldr.getBytesLoaded();
var perc = Math.round((loaded/total)*100);
CheckLoaded.text = loaded;
CheckTotal.text = total;
Checkperc.text = perc;
};
my_ldr.contentPath = http://www.flash-mx.com/images/image2.jpg;
this is my screen shoot Thank You Very Much:p:
timoru