Xml image gallery question

Hi all this is my first post and I hope im in the right place.
Just a quick question - how hard would it be to add a text box with the percentage loaded to the gallery to go with the status bar. Excellent tutorial by the way my gallery is starting to work like a drem

Thanks in advance

it should be very easy, at least if im thinkign of the same thing u r
add a dynamic text box called loadedTxt
this.onEnterFrame = function() { filesize = picture.getBytesTotal(); loaded = picture.getBytesLoaded(); percentage = loaded/filesizepreloader._visible = true; if (loaded != filesize) { preloader.preload_bar._xscale = 100*precentage; loadedTxt.text = percentage + “%”} else { preloader._visible = false; if (picture._alpha<100) { picture._alpha += 10; } } };that should work

Is there something that I need to change on this to get my own to work. I have added a dynamic text box and altered the code and I keep getting actionscript errors saying

[color=blue]Error Scene=Scene 1, layer=action, frame=1:Line 41: Left side of assignment operator must be variable or property.
percentage = loaded/filesizepreloader._visible = true;[/color]
[color=blue]Total ActionScript Errors: 1 Reported Errors: 1[/color]

any ideas what I’m doing wrong.

Thanks in advance

oops sorry my bad, 1 i stuffed up the syntax and 2 i forgot to wrap code around it, sorry. ok i am pretty sure that this will work, once again, sorry for the confusion

 
this.onEnterFrame = function() { 
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
percentage = loaded/filesize;
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*percentage;
loadedTxt.text = percentage + "%"
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10; 
} 
} 
};

Thats Brilliant!. Thanks a lot. Just one more thing How hard would it be to use individual buttons to load each image for example after viewing image one could you then have a button to load say image 6 or image 12 etc.

You know if you had a line of small buttons under the gallery.

Thanks

sorry, i’m not to good at XML/Flash integration (or even XML) so i can’t help u here, good luck