Picture gallery Problem

I am having a problem with my picture gallery. I posted a thread trying to figure out how to get a button to play and external swf with a picture gallery in it. I figured out how to play the external swf off of the button release HOWEVER the pictures gallery created in the external swf is not working. There are no pictures coming up and when i got to put the NEXT button it is pulling up my output window and is constantly play the word NaN. Is it possible to have a picture galllery in an external swf? If so does anyone know what I might have done wrong? Please any help will do this is the last of my page =(