Flint Particle System Forum - Vector3d Error:1067 in Flash CS4 Mon, 12 Dec 2011 01:21:33 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=611#Comment_611 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=611#Comment_611 Sat, 10 Jan 2009 00:30:35 +0000 Sir_Ser I'm using Flint since 0.x version and i simply LOVE IT!

Now i'm getting stucked after trying CS4 version af Flash, because i know this file worked perfectly in CS3 and now with the implementation of 3d in flash libs those lines of code returns me this error:

CODE :
emitter.addInitializer( new Position( new PointZone( new Vector3D( 400, -10, 200 ) ) ) );
emitter.addInitializer( new Velocity( new DiscZone( new Vector3D( 0, 0, 0 ), new Vector3D( 0, 10, 0 ), 100, 50 ) ) );

ERROR:

1067: Implicit coercion of a value of type flash.geom:Vector3D to an unrelated type org.flintparticles.threeD.geom:Vector3D.

I tried to solve the problem by NOTimporting the Flint .as file org.flintparticles.threeD.geom.Vector3D , and using flash.geom.Vector3D , due to the fact that they're similar also in code, but this was not enough; i also tried by modifying the Flint library but i can't find where the problem is.

Can u help me please? ]]>
Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=616#Comment_616 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=616#Comment_616 Mon, 12 Jan 2009 10:36:19 +0000 Richard
import org.flintparticles.threeD.geom.Vector3D

at the top of your code, otherwise Flash will assume you want the new flash 3D class added in Flash 10 - flash.geom.Vector3D. ]]>
Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=621#Comment_621 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=621#Comment_621 Mon, 12 Jan 2009 17:04:29 +0000 Sir_Ser Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=622#Comment_622 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=622#Comment_622 Tue, 13 Jan 2009 08:46:02 +0000 Richard
emitter.addInitializer( new Position( new PointZone( new org.flintparticles.threeD.geom.Vector3D( 400, -10, 200 ) ) ) );
emitter.addInitializer( new Velocity( new DiscZone( new org.flintparticles.threeD.geom.Vector3D( 0, 0, 0 ), new org.flintparticles.threeD.geom.Vector3D( 0, 10, 0 ), 100, 50 ) ) );
]]>
Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=623#Comment_623 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=623#Comment_623 Wed, 14 Jan 2009 13:28:50 +0000 Sir_Ser Please note that i have updated via Svn at the lastest revision 226.
It returns me those two error at the lines u suggested me to use referred at Position.as

ERROR :

Position.as, Line 92 1067: Implicit coercion of a value of type org.flintparticles.threeD.geom:Quaternion to an unrelated type org.flintparticles.threeD.geom:Vector3D.

There line 92 that generates error in Position.as is : if( !e.rotation.equals( Quaternion.IDENTITY ) )

Position.as, Line 94 1119: Access of possibly undefined property rotationTransform through a reference with static type org.flintparticles.threeD.emitters:Emitter3D.

There line 94 that generates error in Position.as is : e.rotationTransform.transformVectorSelf( position );

Ill'help improving the lib! ]]>
Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=625#Comment_625 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=625#Comment_625 Thu, 15 Jan 2009 07:59:01 +0000 Richard Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=629#Comment_629 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=629#Comment_629 Fri, 16 Jan 2009 16:33:43 +0000 Sir_Ser Thanks for your time, help and quickness in your replies.
Excellent work by the way! ]]>
Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=1423#Comment_1423 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=1423#Comment_1423 Wed, 03 Nov 2010 11:07:39 +0000 joel
emitter.addInitializer( new Position( new BoxZone ( 1366, 768, 10, new org.flintparticles.threeD.geom.Vector3D( 0, 0, 400 ), new org.flintparticles.threeD.geom.Vector3D( 0, 1, 0 ), new org.flintparticles.threeD.geom.Vector3D( 0, 0, 1 ) ) ) );
emitter.addInitializer( new Velocity( new PointZone ( new org.flintparticles.threeD.geom.Vector3D ( 0, 0, 50 ) ) ) );

after updating to the latest version of everything.
I am using Flash cs5 if that makes any difference and am publishing it as flash player 10. ]]>
Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=1424#Comment_1424 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=1424#Comment_1424 Wed, 03 Nov 2010 11:10:21 +0000 joel
http://flintparticles.org/forum/comments.php?DiscussionID=84

I am almost there other than the issues listed above.

Thanks :) ]]>
Vector3d Error:1067 in Flash CS4 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=1429#Comment_1429 http://flintparticles.org/forum/comments.php?DiscussionID=152&Focus=1429#Comment_1429 Fri, 05 Nov 2010 08:42:30 +0000 Richard
I added a full script in answer to your questions on the other thread. Hopefully that answers this question too. ]]>