Flint Particle System Forum - Emitter at stage.mouseX, Y Sun, 26 Dec 2010 18:29:46 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Emitter at stage.mouseX, Y http://flintparticles.org/forum/comments.php?DiscussionID=228&Focus=830#Comment_830 http://flintparticles.org/forum/comments.php?DiscussionID=228&Focus=830#Comment_830 Tue, 23 Jun 2009 22:56:10 +0100 ianhill090776 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 http://flintparticles.org/forum/comments.php?DiscussionID=228&Focus=831#Comment_831 Tue, 23 Jun 2009 23:10:50 +0100 ianhill090776
should be
function firework (event:Event):void {

Thanks again for Flint! ]]>