I'm having problems with getting the buttons inside my movie clip to work properly. When I click a button I want to load the movie clip according to the button and remove the current movie clip on the screen.I have 3 buttons on the main timeline with that works excellent with the same code below minus the path of the movie clip. However, the problem comes when I placed the 3 buttons inside of a movie clip it will not work (Please note I have also given it the path according the movie clip). I am attaching the .fla for your review.
stop();
var mc = this.createEmptyMovieClip("emptyMC", this.getNextHighestDepth());
_level0.MCTester.Squares.onRelease = function() {
mc.removeMovieClip();
mc.attachMovie("Squares", "Squares", this.getNextHighestDepth(), {_x:350, _y:90});
};
_level0.MCTester.Circle.onRelease = function() {
mc.removeMovieClip();
mc.attachMovie("Circle", "Circle", this.getNextHighestDepth(), {_x:350, _y:150});
};
_level0.MCTester.Rect.onRelease = function() {
mc.removeMovieClip();
mc.attachMovie("Rect","Rect", this.getNextHighestDepth(), {_x:350, _y:230});
};
Attached File(s)
-
Movie_Clip_Buttons.zip (93.53K)
Number of downloads: 91

New Topic/Question
Reply



MultiQuote




|