Flint Particle System Forum - Quadratic.easeIn on blast example 2011-12-13T07:37:57+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Quadratic.easeIn on blast example http://flintparticles.org/forum/comments.php?DiscussionID=346&Focus=1180#Comment_1180 2010-04-18T14:35:33+01:00 2011-12-13T07:37:57+00:00 neonblue http://flintparticles.org/forum/account.php?u=351 I'm trying to work with the blast example but I cannot get past the age function. The code hinting in Flash Builder comes up with 3 different quadratic functions; non of them seem to work ...
org.flintparticles.common.energyEasing
org.flintparticles.common.easing
mx.effects.easing

I assume it's either 1 or 2; but I've tried both. I get the following error:
1067: Implicit coercion of a value of type Number to an unrelated type Function. blasttext.mxml /test/src line 46 Flex Problem

This is the line (copied from the demo):
emitter.addAction( new Age( Quadratic.easeIn(6,6) ));]]>
Quadratic.easeIn on blast example http://flintparticles.org/forum/comments.php?DiscussionID=346&Focus=1182#Comment_1182 2010-04-18T22:06:57+01:00 2011-12-13T07:37:57+00:00 neonblue http://flintparticles.org/forum/account.php?u=351 BTW, if I take off the (6,6) it works ok. Quadratic.easeIn on blast example http://flintparticles.org/forum/comments.php?DiscussionID=346&Focus=1185#Comment_1185 2010-04-20T18:28:12+01:00 2011-12-13T07:37:57+00:00 Richard http://flintparticles.org/forum/account.php?u=1 The parameter used by the Age action is a function, not the result of running a function. So to use the Quadratic.easeIn function, you need import ...
import org.flintparticles.common.energyEasing.Quadratic;
emitter.addAction( new Age( Quadratic.easeIn ) );
]]>