Button is not working on 2nd load
I have a main swf that loads movies into a clip movieHolder. It loads one movie initially and a button is selected then plays to a frame which loads another movie once a button is pressed in this movie it plays to a frame and at this point / frame I have this code:
stop();
_parent.movieHolder.loadMovie("Q_1.swf");
_parent.attachMovie("title_foundational", "ttl_foundational", 1, {_x: 217, _y: 5});
_parent.attachMovie("buttonblank", "butt_blank", 2, {_x: 22, _y: 5});
_parent.butt_blank.gotoAndStop (1);
_parent.butt_blank._alpha = 100;
_parent.butt_blank.onRelease = function() {
_parent.gotoAndStop ("secondframe");
}
The butt_blank is what I am having trouble with. The first time it returns the user to the right place back to the first loaded movie, subsequently when the buttons are clicked the movies again load properly and the code does load the butt_blank, but the code does NOTHING. The user stays on the same frame.
This is the code that runds when the user returns to "secondframe"
movieHolder.loadMovie("ShopOutsideAnim01.swf", "ShopOutside");
ttl_foundational.removeMovieClip();
butt_blank.removeMovieClip();
Any help is greatly appreciated!