Flash CS4 and the missing Vector3D class

I’ve been using the new 3D functionality in Flash Player 10 and got this error earlier today:

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

Quote boggling since the docs say it’s a global class as long as you have the publish settings player version set to 10. Took me a while to work it out. If this happens to you then add this at the top of your class:

import flash.geom.*;

Comments: None so far...be the first!

Leave a reply

Your email address will not be published. Required fields are marked *

I don’t wanna kill anybody. But if I gotta get out that door, and you’re standing in my way, one way or the other, you’re gettin’ outta my way.

— Mr. Pink