Answered
Problem with attachMovie popup windows
I'm attempting to create popup windows within my flash
document using the attachMovie command. The windows are triggered
by text buttons on the stage. Should be pretty simple and it is
until I try to remove the clip to close it.
I used this code on my button to attach the popup window:
on (press) {
this.attachMovie("popup","window",1);
window._x = 50;
window._y = 50;
}
To remove it I have a button within the MC "popup" with this script attached:
on (press) {
this.removeMovieclip("window");
}
The MC does not dissapear though. Could this have something to do with levels? I'm confused, it seems that it should be simple.
Any feedback would be welcome.
I used this code on my button to attach the popup window:
on (press) {
this.attachMovie("popup","window",1);
window._x = 50;
window._y = 50;
}
To remove it I have a button within the MC "popup" with this script attached:
on (press) {
this.removeMovieclip("window");
}
The MC does not dissapear though. Could this have something to do with levels? I'm confused, it seems that it should be simple.
Any feedback would be welcome.