How to add an FXG image to an AS3 FlashDevelop project?
I've got an ActionScript 3 project in FlashDevelop. How can I embed an FXG file and use i开发者_运维百科t? I've tried to import the file directly (import graphics.Filename
) and instantiating it, but doesn't draw anything.
AFAIK Adobe's plan for FXG was for use with the Flex Framework. You can see an example of how to use FXG with Flex.
If you embed the FXG in a pure AS3 project you pretty much have an XML an no built-in way to display it. You will need to use a 3rd party library to parse the XML and draw the data, which luckily the FXGParser library handles for you.
Also see this question.
精彩评论