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

    • CommentAuthorBijaj137
    • CommentTimeDec 12th 2008
     
    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 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?
    • CommentAuthorRichard
    • CommentTimeDec 13th 2008
     
    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 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.*;
    • CommentAuthorBijaj137
    • CommentTimeDec 13th 2008
     
    Thanks!

    I downloaded the code again and now it works.