Hello, very new here and this is my first post. So Im making an advent calendar and trying to use action script 2 to make the doors only open on their days and the previous doors automatically be open. I got it so that only the doors open on their days when clicked using(on the movie clip for door 14):
onClipEvent (enterFrame) {
this.displayDate = 14;
}
on (release) {
if (_parent.checkDate(this.displayDate)){
this.play();}
I've been using this code for the other doors eg here 13
onClipEvent (enterFrame) {
this.displayDate = 13;
}
on (release) {
if (_parent.checkDate(this.displayDate)){
this.play();}
}
Hi fruitbeard,
That seems to have worked perfectly, I dont know how many different ways I tried with this code but obviously not that one, thanks so much for the help I would have been stuck on this forever otherwise .