Flint Particle System Forum - begginer question, EmitterEvent. 2010-12-25T19:27:42+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher begginer question, EmitterEvent. http://flintparticles.org/forum/comments.php?DiscussionID=143&Focus=579#Comment_579 2008-12-12T14:01:12+00:00 2010-12-25T19:27:42+00:00 Bijaj137 http://flintparticles.org/forum/account.php?u=120 Hi! I am getting this error when I run the example code (Flint_2_0_0_examples\examples2D\Firework\Flash\Firework.fla) for Firework.fla. 1046: Type was not found or was not a compile-time ...
I am getting this error when I run the example code (Flint_2_0_0_examples\examples2D\Firework\Flash\Firework.fla) for Firework.fla.

1046: Type was not found or was not a compile-time constant: EmitterEvent.

I tried to import all events by adding this code in Frame1.as

import org.flintparticles.common.events.*;

but then i got the fallowing error

ArgumentError: Error #1063: Argument count mismatch on org.flintparticles.common.easing::Quadratic$/easeIn(). Expected 4, got 2.
at org.flintparticles.common.actions::Age/update()
at org.flintparticles.common.emitters::Emitter/update()
at org.flintparticles.common.emitters::Emitter/updateEventListener()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()

I did not change anything else, what did i do wrong?]]>
begginer question, EmitterEvent. http://flintparticles.org/forum/comments.php?DiscussionID=143&Focus=580#Comment_580 2008-12-13T18:29:18+00:00 2010-12-25T19:27:42+00:00 Richard http://flintparticles.org/forum/account.php?u=1 The example should have already contained this import - import org.flintparticles.common.events.EmitterEvent; If it did not, then you don't have the code from the download. The full list of ...
import org.flintparticles.common.events.EmitterEvent;

If it did not, then you don't have the code from the download. The full list of imports that you should have is

import org.flintparticles.common.actions.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.common.displayObjects.Dot;
import org.flintparticles.common.energyEasing.Quadratic;
import org.flintparticles.common.events.EmitterEvent;
import org.flintparticles.common.initializers.*;
import org.flintparticles.twoD.actions.*;
import org.flintparticles.twoD.emitters.Emitter2D;
import org.flintparticles.twoD.initializers.*;
import org.flintparticles.twoD.renderers.*;
import org.flintparticles.twoD.zones.*;
]]>
begginer question, EmitterEvent. http://flintparticles.org/forum/comments.php?DiscussionID=143&Focus=581#Comment_581 2008-12-13T19:21:39+00:00 2010-12-25T19:27:42+00:00 Bijaj137 http://flintparticles.org/forum/account.php?u=120 Thanks! I downloaded the code again and now it works.
I downloaded the code again and now it works.]]>