In my gallery, I've been trying to use a simple preloader for the images. All it consists of is a percentage status in text. However, I wanted to change the format of the text and can't seem to do it right. I'm not sure if it's the placement or what. Can anyone help with this? I'm using AS2, and below is the code with the problem.
largePreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = String(Math.floor((loadedBytes/totalBytes) * 100)) + " %";
var myformat:TextFormat = new TextFormat();
myformat.font = "Arial";
myformat.size = 24;
myformat.bold = true;
myformat.align = "center";
my_text.setTextFormat(myformat);
};
largePreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = String(Math.floor((loadedBytes/totalBytes) * 100)) + " %";
var myformat:TextFormat = new TextFormat();
myformat.font = "Arial";
myformat.size = 24;
myformat.bold = true;
myformat.align = "center";
my_text.setTextFormat(myformat);
};