Вопрос

when I create vector images in InkScape or any similar program. How would I embed them or otherwise load them in flashdevelop? I've been googling for a while but I am stuck now. I tried the following:

  • .svg with regular embed code -> works, but with no gradients. Also colors seems to be strange.
  • .emf with regular embed code -> doesn't work I get an error
  • .wmf with regular embed code -> doesn't work, I get the same error
  • Using the class load method -> doesn't recognise any of the files as importable

The error:

  • Error: '../../lib/art/GreenTank.emf' does not have a recognized extension, and a mimeType was not provided
  • Error: Unable to transcode ../../lib/art/GreenTank.emf.

I was wondering if there was another way of accomplishing this. Or if I did anything wrong?

Thank you in advance.

Это было полезно?

Решение

I put up an question similar to this before, and detailed how to use the Inkskape fxgs in flex, maybe that will help:

FXG Editor for Flex

Другие советы

Okay. Found it.

FGX is the format to go. It supports most of the inkscape features and inkscape can save to this format with an extension(svg2fxg).

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top