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

    • CommentAuthorchien
    • CommentTimeJul 10th 2008 edited
     
    Seriously. It has got to be something really stupid that I just am not getting. this looks like an incredibly powerful tool set.

    I have tried snowfall and a few others and they all compile with errors. The libraries are definitely in the path. some of the errors come up with velx or vely.

    I have cut and pasted code directly from the various sources but no changes.

    The only demo that I could get to compile with no errors was StarFountain from the London Slide Show but it does nothing after the compile.

    Any help would be appreciated.

    chien
    • CommentAuthorRichard
    • CommentTimeJul 11th 2008
     
    Hi

    What version of Flint are you using? What are the error messages?
    • CommentAuthorchien
    • CommentTimeJul 11th 2008
     
    The version is the latest 1.0.3 JUst downloaded a couple of days ago.


    The following is from snowfall:

    ScaleInit.as, line 122 1119: Access of possibly undefined property scale through a reference with static type Particle. particle.scale = -min;
    ScaleInit.as, line 126 1119: Access of possibly undefined property scale through a reference with static type Particle. particle.scale = _min + Math.random() * ( _max - _min );

    Thanks,
    chien
    • CommentAuthorRichard
    • CommentTimeJul 11th 2008 edited
     
    Hi Chien

    I can't even guess at why you're getting this error. Flint's Particle class has a scale property (do take a look and check, just in case you accidentally deleted it).

    Try simplifying the code and see what happens (e.g. remove the line that creates a ScaleInit).

    Or try just creating a particle and setting its scale property -

    import org.flintparticles.particles.Particle;
    var p:Particle = new Particle();
    p.scale = 2;

    You won't see anything but the objective is to find the simplest bit of code that causes the error, and thus narrow down the possible causes.

    It's probably a totally unexpected mistake so there's not a lot of advice I can give without sitting at your computer. All this assumes, of course, that you are trying the examples with no modifications at all.

    Debugging these sort of errors is a painstaking, and ultimately boring, task of narrowing down the possible causes until there's only one left, however unlikely that cause might be.
    • CommentAuthorchien
    • CommentTimeJul 12th 2008
     
    Thanks,

    I will attempt to do as you suggest. However I believe this is a more universal problem with either me or the environment.

    I have been able to get snowfall to work without using the document class and as an untitled document. However when I save the working fla and then try to run it again it does not compile giving errors such as:
    5001: The name of package 'org.flintparticles.initializers' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. J:\Adobe\Flash CS3\Adobe Flash CS3\Flint_1_0_3\org\flintparticles\initializers\Initializer.as.
    • CommentAuthorchien
    • CommentTimeJul 13th 2008
     
    With only the following code active, I have so far come to this:

    import org.flintparticles.emitters.Emitter;
    var emitter:Emitter = new Emitter();

    creates:

    ParticleCreator.as, Line 78 1061: Call to a possibly undefined method initialize through a reference with static type Particle. particle.initialize();


    chien
    • CommentAuthorRichard
    • CommentTimeJul 14th 2008 edited
     
    It sounds like a problem with your Particle class. Open your particle class (org/flintparticles/particles/Particle.as) in any text editor and compare it with this one - http://code.google.com/p/flint-particle-system/source/browse/trunk/src/org/flintparticles/particles/Particle.as. Is it the same?
    • CommentAuthorchien
    • CommentTimeJul 14th 2008
     
    OK, That cured the Snowfall problem. I had previously looked looked through the trunk and downloaded files that were modified after the date of the june release. Particles did not show a date later so I didn't download it. After taking a closer look at the release page of particles I see you did some work on r123 in June but that date was not reflected on the list in the particles dir.

    I continued to have various probs with other examples so I downloaded the entire current builds from the trunk. That cured all problems that I have encountered thus far.

    Thanks,

    chien