Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

  1.  
    Hello all,
    Richard, thanks for the great framework. I've been playing with the Fireworks example, and I'm trying to make an emitter appear at stage.mouseX and stage.mouseY. However, I continue to get an argument count mismatch error when I click on the stage. I'm not sure if I have errors in my AS3 or if it's an agreement issue with Flint.

    //My code looks something like this:

    stage.addEventListener(MouseEvent.CLICK, firework);

    //I'm getting the error at the following line
    function firework():void {
    var emitter....
    //add counter
    //add initalizers
    //etc.
    emitter.x= stage.mouseX;
    emitter.y= stage.mouseY;
    emitter.start;
    }

    Any help would be appreciated.
    Thanks!
  2.  
    Fixed it, it was my AS3 newbieness

    should be
    function firework (event:Event):void {

    Thanks again for Flint!