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.  
    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 protected function particleCreated( particle:Particle ):void {
    ...
    }

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

    Anybody knows how to fix this?
    • CommentAuthorRichard
    • CommentTimeMay 26th 2008
     
    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, 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 );
  2.  
    Thx Richard you're right I used the 0.94 version.
    Should have read the release notes ;-)