crayola86
Programmer
- Jan 26, 2009
- 5
Hello,
I am creating a pop up dialog box within a movie clip which is activated by a button. I have managed to get the pop up box to open when the button is clicked. But after I close the pop up box and attempt to click the button again the pop up box does not re appear. In other words the button only works once. I have made sure both my button and mc have instance names, so I dont know where I am going wrong.
The code attached to the button is as follows:
on (release) {
castle_btn.loadMovie("popup_mc");
}
and the close button code within the movie clip is:
on (release) {
unloadMovie(this);
}
Both of these codes are working successfully, I am just wondering if anyone could enlighten me as to how I can refresh/reload the button so it works again
Thanks in advance : )
I am creating a pop up dialog box within a movie clip which is activated by a button. I have managed to get the pop up box to open when the button is clicked. But after I close the pop up box and attempt to click the button again the pop up box does not re appear. In other words the button only works once. I have made sure both my button and mc have instance names, so I dont know where I am going wrong.
The code attached to the button is as follows:
on (release) {
castle_btn.loadMovie("popup_mc");
}
and the close button code within the movie clip is:
on (release) {
unloadMovie(this);
}
Both of these codes are working successfully, I am just wondering if anyone could enlighten me as to how I can refresh/reload the button so it works again
Thanks in advance : )