TwelvestoneFlash

It's not my fault you expected 0 arguments!


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
mycho
 
2010-05-26

Hey 12stoners, check out below. sorry, I chewed up my initial post and retyped it below.

mycho
 
2010-05-26

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.

mycho
 
2010-05-27

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...

persist
 
2010-05-27

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.

?

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

It's not my fault you expected 0 arguments!