Flint Particle System Forum - DisplayObjectEmitter override functions error 2011-12-13T00:48:07+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher DisplayObjectEmitter override functions error http://flintparticles.org/forum/comments.php?DiscussionID=35&Focus=169#Comment_169 2008-05-26T19:48:48+01:00 2011-12-13T00:48:07+00:00 sandersnake http://flintparticles.org/forum/account.php?u=4 These functions are causing a "method markes override must override another method" error in Flex Builder 3: override protected function render( time:Number ):void { ... } override ...
override protected function render( time:Number ):void {
...
}

override protected function particleCreated( particle:Particle ):void {
...
}

override protected function particleDestroyed( particle:Particle ):void {
...
}

Anybody knows how to fix this?]]>
DisplayObjectEmitter override functions error http://flintparticles.org/forum/comments.php?DiscussionID=35&Focus=170#Comment_170 2008-05-26T20:33:50+01:00 2011-12-13T00:48:07+00:00 Richard http://flintparticles.org/forum/account.php?u=1 Which version of Flint are you using? These methods were moved to the renderer in version 1.0. Version 1.0 only has one type of emitter, the Emitter, but uses different renderers (BitmapRenderer, ...
Version 1.0 only has one type of emitter, the Emitter, but uses different renderers (BitmapRenderer, DisplayObjectRenderer, etc) for different display techniques. Earlier versions combined the emitter and renderer functionality into one class.

If you're trying to change a version 0.9.x project to version 1.0.x you need to replace the DisplayObjectEmitter with an Emitter and a DisplayObjectRenderer -

// create the emitter
var emitter:Emitter = new Emitter();
// create the renderer
var renderer:Renderer = new DisplayObjectRenderer();
// set the renderer to display the particles from the emitter
emitter.renderer = renderer;
// place the renderer on the stage
addChild( renderer );
]]>
DisplayObjectEmitter override functions error http://flintparticles.org/forum/comments.php?DiscussionID=35&Focus=175#Comment_175 2008-05-27T10:38:38+01:00 2011-12-13T00:48:07+00:00 sandersnake http://flintparticles.org/forum/account.php?u=4 Thx Richard you're right I used the 0.94 version. Should have read the release notes ;-) Should have read the release notes ;-)]]>