Flint Particle System Forum - How do I make it work? Wed, 17 Nov 2010 10:16:13 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher How do I make it work? http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=230#Comment_230 http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=230#Comment_230 Thu, 10 Jul 2008 23:09:58 +0100 chien
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 ]]>
How do I make it work? http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=233#Comment_233 http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=233#Comment_233 Fri, 11 Jul 2008 12:53:38 +0100 Richard
What version of Flint are you using? What are the error messages? ]]>
How do I make it work? http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=236#Comment_236 http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=236#Comment_236 Fri, 11 Jul 2008 14:25:56 +0100 chien

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 ]]>
How do I make it work? http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=237#Comment_237 http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=237#Comment_237 Fri, 11 Jul 2008 16:35:24 +0100 Richard
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. ]]>
How do I make it work? http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=238#Comment_238 http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=238#Comment_238 Sat, 12 Jul 2008 15:39:40 +0100 chien
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. ]]>
How do I make it work? http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=239#Comment_239 http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=239#Comment_239 Sun, 13 Jul 2008 17:07:24 +0100 chien
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 ]]>
How do I make it work? http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=240#Comment_240 http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=240#Comment_240 Mon, 14 Jul 2008 09:33:25 +0100 Richard http://code.google.com/p/flint-particle-system/source/browse/trunk/src/org/flintparticles/particles/Particle.as. Is it the same? ]]> How do I make it work? http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=241#Comment_241 http://flintparticles.org/forum/comments.php?DiscussionID=45&Focus=241#Comment_241 Mon, 14 Jul 2008 13:58:02 +0100 chien
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 ]]>