Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorneonblue
- CommentTimeApr 18th 2010
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 though...
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) )); -
- CommentAuthorneonblue
- CommentTimeApr 18th 2010
BTW, if I take off the (6,6) it works ok. -
- CommentAuthorRichard
- CommentTimeApr 20th 2010
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 needimport org.flintparticles.common.energyEasing.Quadratic;
emitter.addAction( new Age( Quadratic.easeIn ) );
1 to 3 of 3
