Adding a percentage symbol in field

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

frame = int(loadedbytes/(totalbytes/100) + “%”);

root.mainloader.loader.place.test = frame+"%"

thanks guys :slight_smile:

kenny thanks mate but i tried your code and the result was that the frame field failed to work.

eki your code worked like a charm

thanks again guys, i really appreciate this

kind regards

w9914420

Sorry, man. I should have looked at all of your code.

any time