views:

34

answers:

1

I am doing some pre-production on a project that requires drawing on a 3d canvas, which I think flash is the best way to go. But there is a chance down the line that this client might want the site to show up on the ipad, iphone or other mobile devices that don't support flash.

So I was playing with the idea of doing everything in html and javascript except for the actual drawing/3D area. Almost like using flash as the element. I think html5 is too premature to start using this, but might be beneficial down the line. Chances are I will just go the entire flash route, but I thought it would be interesting to try.

Anyway, my question is pretty top level. 1) how hard would it be to drag an object from an html page using javascript, and dropping it into the flashplayer. And then manipulating it from there.

Are there any examples out there that have tried to do this?

A: 

Communication between Flash and an HTML page requires the use of ExternalInterface. That's a good place to start. These guys seem to have figured out some of the details.

As far as the iPad and iPhone are concerned, Flash just ain't gonna happen.

However, I don't think it's fair to say HTML5 is "too premature". Lots of people are doing lots of cool things with the canvas element. You could too. :)

Adam
Yeah I don't think flash is going to happen for the ipad, and when I mean premature I just mean the cross-browser problem. I know I can do everything I need with html5, but if the majority of the audience can't see it, then it won't work. So, I want to fall back on flash for that part, and then in phase 2 possibly use canvas for modern browsers. But htanks for the link
pfunc
Fair enough. `ExternalInterface` should do the trick then.
Adam