0

I've got an ActionScript 3 project in FlashDevelop. How can I embed an FXG file and use it? I've tried to import the file directly (import graphics.Filename) and instantiating it, but doesn't draw anything.

Andy
  • 95
  • 1
  • 7

1 Answers1

0

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.

Community
  • 1
  • 1
George Profenza
  • 50,687
  • 19
  • 144
  • 218