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.*;
Share Article

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

Leave a reply

Please fill in the form fields and improve Skynet by completing the captcha!

Thank you! All comments are moderated so yours will appear shortly.

Bad art was as good as good art. Grammar and spelling were no longer important. To be clean was no better than to be filthy. Good manners were no better than bad. Family life was derided as an outdated bourgeois concept. Criminals deserved as much sympathy as their victims. Many homes and classrooms became disorderly – if there was neither right nor wrong there could be no basis for punishment or reward. Violence and soft pornography became accepted in the media. Thus was sown the wind; and we are now reaping the whirlwind.

— Norman Tebbit