Flint Particle System Forum - Emitter at stage.mouseX, Y 2010-12-25T17:33:45+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Emitter at stage.mouseX, Y http://flintparticles.org/forum/comments.php?DiscussionID=228&Focus=830#Comment_830 2009-06-23T22:56:10+01:00 2010-12-25T17:33:45+00:00 ianhill090776 http://flintparticles.org/forum/account.php?u=212 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 ... 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!]]>
Emitter at stage.mouseX, Y http://flintparticles.org/forum/comments.php?DiscussionID=228&Focus=831#Comment_831 2009-06-23T23:10:50+01:00 2010-12-25T17:33:45+00:00 ianhill090776 http://flintparticles.org/forum/account.php?u=212 Fixed it, it was my AS3 newbieness should be function firework (event:Event):void { Thanks again for Flint!
should be
function firework (event:Event):void {

Thanks again for Flint!]]>