Flint Particle System Forum - Using ImageClass Thu, 23 Jun 2011 13:21:38 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Using ImageClass http://flintparticles.org/forum/comments.php?DiscussionID=36&Focus=183#Comment_183 http://flintparticles.org/forum/comments.php?DiscussionID=36&Focus=183#Comment_183 Wed, 04 Jun 2008 20:03:35 +0100 Distd
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 http://flintparticles.org/forum/comments.php?DiscussionID=36&Focus=184#Comment_184 Thu, 05 Jun 2008 07:45:31 +0100 Richard
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 http://flintparticles.org/forum/comments.php?DiscussionID=36&Focus=190#Comment_190 Thu, 05 Jun 2008 13:07:12 +0100 ericr 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 http://flintparticles.org/forum/comments.php?DiscussionID=36&Focus=201#Comment_201 Mon, 09 Jun 2008 11:09:58 +0100 Distd