Hey 12stoners, check out below. sorry, I chewed up my initial post and retyped it below.
Hey 12stoners,
You ever have 3 good, solid arguments for somebody, say.... a method, actually let's say a class constructor to be more precise, and when you present your 3 arguments, and the class constructor looks good and ready to receive the three arguments, and then suddenly they're all like, 1136: Incorrect number of arguments. Expected 0
Here's the situation, I downloaded a great little coverflow project from HOT XXX iTUNES COVERFLOW PORN (thanks, buddy!) and it worked like a charm - just what I needed!
It even compiled file - so next step to integrate it into my big project was to toss the classes into packages so it'll fit into my as library. right? wrong? why? because. don't argue, we weren't expecting any arguments.
the constructor really looks like it want it, right?
public function Coverflow(_width:Number, _height:Number, __stage:Stage = null):void {
}
from how I call the init function on the main document class
private function init():void {
coverflow=new Coverflow(stage.stageWidth,stage.stageHeight,stage);
addChild(coverflow);
}
I don't get it - it worked before.
Any and all comments could be found useful - even the useless ones. Thanks.
ah.....
sorry, I thought this was more pure actionscript, I didn't realize how many items (more than 0!) were linked from the library!
that's what broke it - it was taking the constructor as if it were a ref to the class itself - or something.
merh...
Maybe i misunderstand, but i am fairly sure you don't want to put a Void type return on a constructor since it returns the instance of the class.
?