Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorTheDude
- CommentTimeApr 28th 2009
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 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? -
- CommentAuthorTripleH
- CommentTimeApr 28th 2009
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 ). -
- CommentAuthorTheDude
- CommentTimeApr 30th 2009
Yeah you're right. It was conflicting with the Tween class. Now I know what the problem is, but how to solve it?
---baffled. -
- CommentAuthorRichard
- CommentTimeMay 5th 2009 edited
Just addimport 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 codeimport fl.transitions.Fade; -
- CommentAuthorTheDude
- CommentTimeMay 6th 2009
Thanks Richard! -
- CommentAuthorbaoputzi
- CommentTimeOct 7th 2010
I encountered the same when using flint 2d together with transition manager - is there any other workaround ? your import advice did not help
thx -
- CommentAuthorRichard
- CommentTimeOct 9th 2010
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 org.flintparticles.common.actions.Fade;
emitter.addAction( new org.flintparticles.common.actions.Fade( 1.0, 0 ) );
1 to 7 of 7
