Flint Particle System Forum - DisplayObjectEmitter override functions error2011-12-13T00:48:07+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
DisplayObjectEmitter override functions errorhttp://flintparticles.org/forum/comments.php?DiscussionID=35&Focus=169#Comment_1692008-05-26T19:48:48+01:002011-12-13T00:48:07+00:00sandersnakehttp://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 errorhttp://flintparticles.org/forum/comments.php?DiscussionID=35&Focus=170#Comment_1702008-05-26T20:33:50+01:002011-12-13T00:48:07+00:00Richardhttp://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 errorhttp://flintparticles.org/forum/comments.php?DiscussionID=35&Focus=175#Comment_1752008-05-27T10:38:38+01:002011-12-13T00:48:07+00:00sandersnakehttp://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 ;-)]]>