Flint Particle System Forum - Using ImageClass 2011-06-23T16:34:04+01:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Using ImageClass http://flintparticles.org/forum/comments.php?DiscussionID=36&Focus=183#Comment_183 2008-06-04T20:03:35+01:00 2011-06-23T16:34:04+01:00 Distd http://flintparticles.org/forum/account.php?u=31 Hi everyone, I just started using Flint particle system api and I might say it's awesome. I'm currently trying to figure out how to use ImageClass properly, how would I go about using an exported ...
emitters[index].addInitializer( new ImageClass(testParticle) );

But it's not working, I'm getting "Cannot access a property or method of a null object reference." error instead. I know I'm probably make some awfully simple mistake, but I'm relatively new to Flash so I'm not sure what's going on.

p.s. Yes I looked at the examples, but they seem to be using a different way of embedding images, I don't quite get it either.]]>
Using ImageClass http://flintparticles.org/forum/comments.php?DiscussionID=36&Focus=184#Comment_184 2008-06-05T07:45:31+01:00 2011-06-23T16:34:04+01:00 Richard http://flintparticles.org/forum/account.php?u=1 It sounds like it's not finding your image class. testparticle should be the class name of your exported image - this may or may not be the same as the name in the library, it depends what you've set ...
The examples on the website use meta-tags to embed resources - this is how it's done in Flex. In the svn repository, all the examples have both Flex and Flash versions. Take a look at the Flash version of the Flocking example to see the use of an embedded image as a particle. You can either check out the svn repository from http://flint-particle-system.googlecode.com/svn/trunk/, or browse it at http://code.google.com/p/flint-particle-system/source/browse. The example you need is at trunk/trunk/examples/Flocking/Flash.]]>
Using ImageClass http://flintparticles.org/forum/comments.php?DiscussionID=36&Focus=190#Comment_190 2008-06-05T13:07:12+01:00 2011-06-23T16:34:04+01:00 ericr http://flintparticles.org/forum/account.php?u=17 The examples on the website use meta-tags to embed resources - this is how it's done in Flex. I figured that's what was happening there. I've tried locating documentation for that syntax but ... The examples on the website use meta-tags to embed resources - this is how it's done in Flex.

I figured that's what was happening there. I've tried locating documentation for that syntax but can't find anything about it.

This is of particular interest because I'm setting up a dev environment based solely on the Flex SDK and Flash Develop and would like to understand how to embed objects directly into the project.

By the way, FlashDevelop has added Flash Player 10 (beta) support with code completion. This includes the new typed Vector object! Check it out here. (This is reason two that I'm setting up the FD+FSDK environment... ;) )]]>
Using ImageClass http://flintparticles.org/forum/comments.php?DiscussionID=36&Focus=201#Comment_201 2008-06-09T11:09:58+01:00 2011-06-23T16:34:04+01:00 Distd http://flintparticles.org/forum/account.php?u=31 Thanks a lot Richard, you're awesome just as your wonderful api is. Everything's working now, though I'm not sure what was the reason, seems like it was an error on my side.