Remember remember... (the fifth of november ?!) what is the main point about DirectFlex ? It "looks like" DirectX (at least the API layer does). But what does that mean exactly ? It means that a lot of things are the same. Not only design concepts but also prototypes and names. But because I'm quite sure that most of the flash developpers never did any DirectX programmation, I think it's worth a little explanation. I won't talk very precisely about class definitions and prototypes but I will just try to explain the global logic of DirectFlex' API layer and how to use it to draw a simple cube.
I was recently trying a few good old Nintendo 64 games on my eee-pc when I had the idea to try to import some characters to display them in Flash with DirectFlex. I'm not going to explain the full procedure here but simply show a proof of concept. Here it is, the"adult" Link character from "Zelda : Ocarina of Time" :
In a previous post (cf. Work with Flash 10 in Flex Builder 3), I explained how to start using Flash 10 with Flex Builder 3 in a "classic" Flex Project. But if you want to create a Flash 10 Flex Library Project, it is a little bit more tricky.