chemicaluser
09-06-2008, 04:12 PM
Hi everyone, I'm just playing around in flash and I am trying to figure out how to solve this error.
ArgumentError: Error #1063: Argument count mismatch on banner/directoryFocusOut(). Expected 0, got 1.
I have done some reading up but I can't figure out what is causing the error b/c my function does have the evt:MouseEvent.
var timeCounter = 0;
b1.buttonMode = true;
b1.addEventListener(MouseEvent.CLICK, f_b1click)
function f_b1click (evt:MouseEvent) :void {
if (timeCounter == 0) {
TweenMax.to(aboutustext, 3, {alpha:0, y:560, ease:Expo.easeOut});
TweenMax.to(mcdark, 3, {delay:2, alpha:0, x:-960 ,ease:Expo.easeOut});
++timeCounter;
setTimeout(f_b1click,5000); //1000 = one second delay
} else {
MovieClip(this.parent).gotoAndPlay(2);
timeCounter = 0;
}
}
Any suggestions would be appretiated.
Thanks
ArgumentError: Error #1063: Argument count mismatch on banner/directoryFocusOut(). Expected 0, got 1.
I have done some reading up but I can't figure out what is causing the error b/c my function does have the evt:MouseEvent.
var timeCounter = 0;
b1.buttonMode = true;
b1.addEventListener(MouseEvent.CLICK, f_b1click)
function f_b1click (evt:MouseEvent) :void {
if (timeCounter == 0) {
TweenMax.to(aboutustext, 3, {alpha:0, y:560, ease:Expo.easeOut});
TweenMax.to(mcdark, 3, {delay:2, alpha:0, x:-960 ,ease:Expo.easeOut});
++timeCounter;
setTimeout(f_b1click,5000); //1000 = one second delay
} else {
MovieClip(this.parent).gotoAndPlay(2);
timeCounter = 0;
}
}
Any suggestions would be appretiated.
Thanks