# XML Gallery counting change

**URL:** <https://forum.kirupa.com/t/xml-gallery-counting-change/224555>\
**Category:** flash\
**Created:** [May 3, 2007, 8:42am UTC](https://forum.kirupa.com/t/xml-gallery-counting-change/224555 "2007-05-03T08:42:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drivebass](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@drivebass](https://forum.kirupa.com/u/drivebass)\
**Post date:** [May 3, 2007, 8:42am UTC](https://forum.kirupa.com/t/xml-gallery-counting-change/224555/1 "2007-05-03T08:42:36Z")

</div>

Hello,  
I’ve used the kirupa tutorial for building a photo gallery with xml.  
[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)

Can anyone help me on this:  
Everything works perfect but what i need is to start xml counting from 000  
so it can display 001 for first image instead of 1.  
I actually want this to count from 000 and not just add 00 for display in  
the text field because when the gallery reaches number 10 it will show 0010.  
can anyone help me?

Thank you
