Flint Particle System Forum - Strange error with Fade() 2011-12-13T00:23:49+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Strange error with Fade() http://flintparticles.org/forum/comments.php?DiscussionID=205&Focus=779#Comment_779 2009-04-28T16:52:09+01:00 2011-12-13T00:23:49+00:00 TheDude http://flintparticles.org/forum/account.php?u=87 For some reason everytime I try to use emitter.addAction( new Fade( 1.0, 0 ) ); I get the following; 1067: Implicit coercion of a value of type int to an unrelated type ...
I get the following;

1067: Implicit coercion of a value of type int to an unrelated type flash.display:MovieClip.
1136: Incorrect number of arguments. Expected 3.
1067: Implicit coercion of a value of type fl.transitions:Fade to an unrelated type org.flintparticles.common.actions:Action.


Seems like the syntax was correct, any ideas?]]>
Strange error with Fade() http://flintparticles.org/forum/comments.php?DiscussionID=205&Focus=780#Comment_780 2009-04-28T16:58:09+01:00 2011-12-13T00:23:49+00:00 TripleH http://flintparticles.org/forum/account.php?u=183 Did you import org.flintparticles.common.actions.*? It seems like it's trying to use the built in Flash function Fade instead of the Flint one ( based on the Flint Fade only requiring 2 inputs ). Strange error with Fade() http://flintparticles.org/forum/comments.php?DiscussionID=205&Focus=782#Comment_782 2009-04-30T18:16:06+01:00 2011-12-13T00:23:49+00:00 TheDude http://flintparticles.org/forum/account.php?u=87 Yeah you're right. It was conflicting with the Tween class. Now I know what the problem is, but how to solve it? ---baffled.
---baffled.]]>
Strange error with Fade() http://flintparticles.org/forum/comments.php?DiscussionID=205&Focus=785#Comment_785 2009-05-05T07:46:26+01:00 2009-05-05T07:46:40+01:00 Richard http://flintparticles.org/forum/account.php?u=1 Just add import org.flintparticles.common.actions.Fade; at the top of your script. If you don't specify the imports, Flash will guess (wrongly), and will add this import when compiling your ...
import org.flintparticles.common.actions.Fade;
at the top of your script. If you don't specify the imports, Flash will guess (wrongly), and will add this import when compiling your code

import fl.transitions.Fade;]]>
Strange error with Fade() http://flintparticles.org/forum/comments.php?DiscussionID=205&Focus=786#Comment_786 2009-05-06T12:54:11+01:00 2011-12-13T00:23:49+00:00 TheDude http://flintparticles.org/forum/account.php?u=87 Thanks Richard! Strange error with Fade() http://flintparticles.org/forum/comments.php?DiscussionID=205&Focus=1400#Comment_1400 2010-10-07T15:57:31+01:00 2011-12-13T00:23:49+00:00 baoputzi http://flintparticles.org/forum/account.php?u=419 I encountered the same when using flint 2d together with transition manager - is there any other workaround ? your import advice did not help thx
thx]]>
Strange error with Fade() http://flintparticles.org/forum/comments.php?DiscussionID=205&Focus=1401#Comment_1401 2010-10-09T16:11:00+01:00 2011-12-13T00:23:49+00:00 Richard http://flintparticles.org/forum/account.php?u=1 If you're using both Fade classes, you need to specify exactly which you want, so add the import at the top and then also specify the action like this... import ...
import org.flintparticles.common.actions.Fade;

emitter.addAction( new org.flintparticles.common.actions.Fade( 1.0, 0 ) );
]]>