Flint Particle System Forum - Firework Example - Can't get it working help please... Tue, 13 Dec 2011 14:01:57 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Firework Example - Can't get it working help please... http://flintparticles.org/forum/comments.php?DiscussionID=305&Focus=1056#Comment_1056 http://flintparticles.org/forum/comments.php?DiscussionID=305&Focus=1056#Comment_1056 Thu, 21 Jan 2010 16:07:45 +0000 Dinkyfish
It's literally copy-pasted straight in, except I have it in the document class rather than on the timeline. I don't think I really need to put this in, but here's my code:

package {

import flash.display.MovieClip;
import flash.geom.Point;

public class BlastTest extends MovieClip
{
//Vars



//Constructor
public function BlastTest():void
{


var emitter:Emitter2D = new Emitter2D();

emitter.counter = new Blast( 700 );

emitter.addInitializer( new SharedImage( new Dot( 2 ) ) );
emitter.addInitializer( new ColorInit( 0xFFFFFF00, 0xFFFF6600 ) );
emitter.addInitializer( new Velocity( new DiscZone( new Point( 0, 0 ), 200, 120 ) ) );
emitter.addInitializer( new Lifetime( 5 ) );

emitter.addAction( new Age( Quadratic.easeIn ) );
emitter.addAction( new Move() );
emitter.addAction( new Fade() );
emitter.addAction( new Accelerate( 0, 50 ) );
emitter.addAction( new LinearDrag( 0.5 ) );

emitter.addEventListener( EmitterEvent.EMITTER_EMPTY, restart );

var renderer:BitmapRenderer = new BitmapRenderer( new Rectangle( 0, 0, 500, 400 ) );
renderer.addFilter( new BlurFilter( 2, 2, 1 ) );
renderer.addFilter( new ColorMatrixFilter( [ 1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0.95,0 ] ) );
renderer.addEmitter( emitter );
addChild( renderer );

emitter.x = 250;
emitter.y = 150;
emitter.start();
}

function restart( ev:EmitterEvent ):void
{
Emitter2D( ev.target ).start();
}
}
}

I'm not getting any errors, just a blank swf... ]]>
Firework Example - Can't get it working help please... http://flintparticles.org/forum/comments.php?DiscussionID=305&Focus=1059#Comment_1059 http://flintparticles.org/forum/comments.php?DiscussionID=305&Focus=1059#Comment_1059 Fri, 22 Jan 2010 11:38:54 +0000 Dinkyfish
I have even tried just creating a plain emitter and renderer, with no 'effects' applied to them and I'm still getting nothing. If anyone has any ideas please tell me, I don't have much time left to spend on this so if I can't get some sort of answer then I'm going to have to use an alternative system... ]]>
Firework Example - Can't get it working help please... http://flintparticles.org/forum/comments.php?DiscussionID=305&Focus=1062#Comment_1062 http://flintparticles.org/forum/comments.php?DiscussionID=305&Focus=1062#Comment_1062 Fri, 22 Jan 2010 15:54:13 +0000 Dinkyfish