News for hackers. Stuff that matters.
Re:Flash CS5 will export to HTML5 Canvas by briansmith on Sunday April 11, 2010 @11:26AM (#1257010)
Wouldn't SVG be a much more natural target for Flash than <canvas> is? What is the benefit of <canvas> over SVG?

It seems like it would be easier to do effective hardware acceleration for SVG than it would be to do the same for <canvas>.

Re:Flash CS5 will export to HTML5 Canvas by briansmith on Sunday April 11, 2010 @02:27PM (#1257332)
I found the answer in http://opensource.adobe.com/wiki/display/flexsdk/FXG+1.0+Spe.... The HTML5 Canvas support is just a Javascript-based interpreter for these FXG files, as you can see when they zoom in on the source code in the video.:

"When initial work on an XML-based graphics interchange format began, the natural first thought was to use SVG. However, there are key differences between SVG and Flash Player's graphics capabilities. These include core differences in SVG and Flash's rendering model with regards to filters, transforms and text. Additionally, the interchange format needed to be able to support future Flash Player features, which would not necessarily map to SVG features. As such, the decision was made to go with a new interchange format, FXG, instead of having a non-standard implementation of SVG. FXG does borrow from SVG whenever possible.

"It is important to note that this specification follows much of the SVG specification format organization as well as copying related concept prose. The SVG specification is available at http://www.w3.org/TR/SVG/.

Re:Flash CS5 will export to HTML5 Canvas by yason on Sunday April 11, 2010 @12:13PM (#1257092)
You need a underlying accelerated 2D operations in both cases, like an implementation based on OpenVG.

It's just that <canvas> has a shitload more momentum than SVG ever had.

Re:Flash CS5 will export to HTML5 Canvas by voidpointer on Sunday April 11, 2010 @11:49AM (#1257052)
Adobe used to be behind SVG a lot before the acquisition of (referred to as the merger with) Macromedia.
Re:Flash CS5 will export to HTML5 Canvas by Sephr on Sunday April 11, 2010 @02:07PM (#1257288)
Event listeners would be much easier too. You can just add them to svg child nodes instead of doing your own logic on a canvas.
Re:Flash CS5 will export to HTML5 Canvas by daleharvey on Sunday April 11, 2010 @12:14PM (#1257101)
with flash being able to export to iphone apps and now canvas, I am guessing they have done more of the work necessary to uncouple the ide format from the swf format and that exporting to svg shouldnt be too hard either.

webgl could be another candidate.