XML image gallery — SO CLOSE TO WORKING!

hi guys.
i have been searching every xml thread on this site and cant find an answer to what i feel will be a simple problem for someone.

i have used kirupas xml image gallery tutorial. i am calling the gallery.swf into a main swf, in an empty mc. sounds simple right… working ok, excpet the gallery next and back buttons skip images at random.

you can see it working/not working at http://www.forcetwelve.net/petal
in the gallery section.

the code is identical to the xml tutorial.

i have read that it may be something to do with the listener on the buttons?

any help is SOOOO appreciated. thanks.

AG