ok i have created a simple enough preloader, all i am wanting to do is add
a percentage symbol to the text field called “frame” my code is below
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
gotoAndStop(“Scene 1”, 4);
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.mainloader.loader) {
tellTarget (_root.faker) {
}
gotoAndStop (_root.frame);
}
_root.mainloader.loader.place.test = frame
If may sound like a dumb question when i can just add a percentage symbol on the stage. but I would much prefer to add it as code in the text field.
any help appreciated.
kind regards
w9914420