Pop-Up window help

im using this tutorial http://kirupa.com/developer/mx/centered_popup.htm to use buttons that i have put into an externally loaded swf. For some reason when i preview the swf containing the buttons it works fine, but when i test it using it when loaded into the main page, nothing happens. any help would be great, thanks.