Can Adobe AIR display SVG?

I see that Adobe AIR uses WebKit as a render, and I see that WebKit (at least the most recent build) has some SVG support. Does this mean (and anyone specifically tried) that the Adobe AIR application can display SVG on an HTML page?

+4
source share
4 answers

While this is useful (and what you still don't know), Flex can embed SVG at run time , which effectively converts it to SWF format and inserts it as a resource.

[Embed(source="assets/frog.svg")] [Bindable] public var SvgAsset:Class; 

Additional information in Adobe asset article attachment .

+4
source

If ActionScript 2: use the com.itechnica.svg library (PathToArray) to load the SVGs during the execution of the SWF and display them (uses XML for parsing SVGs):

Using the SVG path data in Flash , click the Download button in the right pane .


If ActionScript 3: use the com.zavoo.svg library (SvgPath) to load the SVGs during the execution of the SWF and display them (uses RegExp to parse the SVGs):

The source code for SvgLoad and SvgDraw , the download button on the lower left.

+3
source

No , according to an article in the Adobe AIR Development Center. What's new in HTML, HTML5, CSS, and JavaScript in AIR 2.5? .

Svg

Another feature recently gained is of great interest is SVG support. While present in WebKit, the current version of Adobe AIR does not support SVG.

The main reason not to include it was problems with the runtime (adding it would increase the size of the runtime by 15-20 percent). Initially, the main causes of pain regarding AIR were runtime size, integration with the operating system and native API, tag support, and new CSS and JavaScript presentation properties. These priorities, associated with a declining interest in SVG graphics, have led to SVG support not being included in the current version of Adobe AIR.

However, the renewed interest in rich JavaScript applications running on HTML5 canvas and fast JavaScript engines have increased the number of requests for vector script graphics via SVG. Thus, adding support for SVG graphics is possible with the next version of AIR.

+2
source

Adobe AIR can only support SVG after Adobe updates its version of WebKit (AIR HTML rendering engine) and enables SVG support in its version of WebKit. Maybe the business solution is not (i.e. Flash).

0
source

Source: https://habr.com/ru/post/1276834/


All Articles