If you do a search for “flash player 10 drawing 3d” the number one result will be senocular’s tutorial on doing cool drawingAPI stuff for Flash Player 10. The problem is all that code is written for that Flash IDE thingy – they still make that? :)
Anyway, I painstakingly hacked this together to make it work in Flex Builder. I tried to keep the code as similar to the original as possible so that the original tutorial will still apply here.
| view source |
It goes without saying that you’ll need to have Flex Builder configured to publish to Flash Player 10.
A few things that I discovered during the process here:
- Code hinting for the graphics package doesn’t work :(
- Code hinting for BitmapData doesn’t work :(
- Even worse is that your import for BitmapData can easily be replaced with BitmapDataChannel. Watch out for that.
- For some reason I couldn’t get Framework caching to work on this Flex project. It’s late so I gave up.
Pretty cool stuff. I’m still trying to get my head around half of this.





In regards to the code hinting, did you remember to upgrade Flex Builder to 3.0.2 update? I haven't tried it yet, but it might have fixed this problem.
@Josh, I totally forgot. Thanks for reminding me. I just updated and I get the correct code-hinting now. Rock on.