Flint Particle System Forum - Passing properties when using ImageClasses Sat, 10 Dec 2011 22:23:18 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Passing properties when using ImageClasses http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1551#Comment_1551 http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1551#Comment_1551 Thu, 17 Feb 2011 16:35:50 +0000 FlashDev2007
addInitializer(new ImageClasses([Rect, Circle, Ring],[1,10]));

The shapes take a color param in their constructor, at present I am randomizing the color in a base class for each shape. Is it possible to pass in parameters to their constructors? Or even better is there a way to pass in a new ImageClass for each item in the array to ImageClasses? ]]>
Passing properties when using ImageClasses http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1554#Comment_1554 http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1554#Comment_1554 Sun, 20 Feb 2011 01:00:26 +0000 Richard
addInitializer(new ImageClasses([ [Rect, 5, 10], [Circle, 5], [Ring, 3, 5] ], [1, 10, 1] ));

I'm not sure what you're asking with the second part of your question. Would you try explaining again. ]]>
Passing properties when using ImageClasses http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1558#Comment_1558 http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1558#Comment_1558 Mon, 21 Feb 2011 17:07:53 +0000 FlashDev2007 Passing properties when using ImageClasses http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1573#Comment_1573 http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1573#Comment_1573 Wed, 02 Mar 2011 16:34:15 +0000 killerspaz
It seemed to me SharedImages was for passing instances of DisplayObject, and ImageClasses was for passing classes - so which would be more appropriate?
In my mind his use case would warrant SharedImages usage - but again I didn't realize ImageClasses took such complex (and untyped) input.

Just my 2 cents, I've been having so much fun playing with Flint - and I've even built my own particle systems in AS3! Just trying to get a better handle on your framework (which is much more friendly than others I've used/implemented)! ]]>
Passing properties when using ImageClasses http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1576#Comment_1576 http://flintparticles.org/forum/comments.php?DiscussionID=457&Focus=1576#Comment_1576 Sun, 06 Mar 2011 15:32:02 +0000 Richard