Skip to main content
Participant
April 30, 2012
Question

1046: Type was not found or was not a compile-time constant: Vector3D error while compiling

  • April 30, 2012
  • 1 reply
  • 4117 views

I am using Flex Builder 3.2 for compiling my flex code and i am getting errors during compilation.

1046: Type was not found or was not a compile-time constant: Vector3D

1046: Type was not found or was not a compile-time constant: Matrix3D

1046: Type was not found or was not a compile-time constant: GraphicsStroke

I am not using any of the classes mentioned above. Please let me know if I am missing something.

This topic has been closed for replies.

1 reply

August 17, 2012

Hi,

Plese include import flash.geom.*;  at the top of your class, this package needs to be included for above classes to to be used.

also

change the version of flash player that your project targets to version 10. Right click on the project in flex/flash builder and choose properties. Then you can change that value in the Compiler screen.

Thanks,

Kanchan Ladwani | kladwani@infocepts.com