solving old problem's
so yea, back in 06, when ngcollabs and dragon/other thing eggs were the craze, I wanted to create my own version of the eggs, but using a swf. With my minimal knolwdge of AS2 I came up with this, this would make it that on march, the .swf would go to frame 2 and stay there forever..
onClipEvent (enterFrame) {
var my_date:Date = new Date();
day = my_date.getMonth();
year= my_date.getFullYear();
if (day==02 && year==2006) {
gotoAndStop(2);
} else if (day==03 && year==2006) {
gotoAndStop(2);
} else if (day==04 && year==2006) {
gotoAndStop(2);
} else if (day==05 && year==2006) {
gotoAndStop(2);
} else if (day==06 && year==2006) {
gotoAndStop(2);
} else if (day==07 && year==2006) {
gotoAndStop(2);
} else if (day==08 && year==2006) {
gotoAndStop(2);
} else if (day==09 && year==2006) {
gotoAndStop(2);
} else if (day==10 && year==2006) {
gotoAndStop(2);
} else if (day==11 && year==2006) {
gotoAndStop(2);
} else if (year==2007) {
gotoAndStop(2);
}
}
}
but alas, I came upon 3 error's that I dont think I ever figured out..
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 17: ')' expected
} else if (day==08 && year==2006) {
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 18: Statement must appear within on/onClipEvent handler
gotoAndStop(2);
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 19: Unexpected '}' encountered
} else if (day==09 && year==2006) {
so uhh, what did I screw up?..lol