[
https://issues.apache.org/jira/browse/FLEX-33565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13664322#comment-13664322
]
OmPrakash Muppirala edited comment on FLEX-33565 at 5/22/13 5:53 PM:
---------------------------------------------------------------------
Agree with Alex. We should support both FXG and SVG.
Although I disagree that this is a bug. The docs [1] clearly say that "You do
not use the Embed command to reference FXG documents. Instead, you reference an
FXG document as a component, specifying the tag to be the name of the FXG file."
What you want can be achieved by simply instantiating the fxg as a class:
[Bindable] protected var _step1Icon:circle1;
(Note that circle-1 is an illegal class name. Changing it to circle1 should
just work)
The fxg document will be compiled into the app, the same effect as being
'embedded'.
We need to create and support a new mimetype "image/fxg" or something like that
if we want to be able to embed an FXG file like an image. Too much trouble to
go through to support this kind of usage, IMHO.
[1]
http://www.adobe.com/devnet/flex/quickstarts/embedding_assets.html#UsingFXGDocuments
was (Author: bigosmallm):
Agree with Alex. We should support both FXG and SVG.
Although I disagree that this is a bug. The docs [1] clearly say that "You do
not use the Embed command to reference FXG documents. Instead, you reference an
FXG document as a component, specifying the tag to be the name of the FXG file."
We need to create and support a new mimetype "image/fxg" or something like that
if we want to be able to embed an FXG file like an image.
[1]
http://www.adobe.com/devnet/flex/quickstarts/embedding_assets.html#UsingFXGDocuments
> No transcoder registered for mimeType 'text/fxg' error when embedding FXG
> -------------------------------------------------------------------------
>
> Key: FLEX-33565
> URL: https://issues.apache.org/jira/browse/FLEX-33565
> Project: Apache Flex
> Issue Type: Bug
> Affects Versions: Apache Flex 4.9.0
> Reporter: Justin Mclean
> Attachments: circle-1.fxg
>
>
> SVG resources cause warning:
> - The use of SVG has been deprecated since Flex 4. Please use FXG.
> [Embed(source="circle-1.svg")]
> [Bindable] protected var _step1Icon:Class;
> FXG resources can't be compiled and cause:
> - no transcoder registered for mimeType 'text/fxg'
> - Unable to transcode circle-1.fxg.
> [Embed(source="circle-1.fxg")]
> [Bindable] protected var _step1Icon:Class;
> (Reporting for another developer.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira