Topic: custom buttons with multiple galleries flash embed

ok, i've looked at the code for embedding multiple galleries in flash and i've copied it to my project but i can't get it to work with my own buttons.  in the example the gallery buttons are movie clips but i want them to be buttons with over states.  i've named the instance of the button and put that in place of the name in the example ("sleek" and "moodz" are the names of the projects):

//Set button actions
sleek.onRelease = function(){

moodz.onRelease = function(){
function loadGallery(galName){
    _root.xmlDataPath = galName; 

but nothing happens when i press the buttons.  what am i missing?