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.
Asked
Active
Viewed 2,098 times
0

Andy
- 95
- 1
- 7
-
have you read this one? http://stackoverflow.com/questions/6805508/linking-symbol-to-class-actionscript – Jevgenij Dmitrijev Jul 24 '11 at 20:18
-
Sorry, it does work, I just got the instantiation wrong due to other code. How do I close this? – Andy Jul 24 '11 at 20:23
-
apparently I must register to delete or flag (or downvote)... – Andy Jul 25 '11 at 07:44
1 Answers
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