Skip to main content
Jhon Carlo
Inspiring
February 24, 2015
Question

How to load svg (vector) image dinamicaly.

  • February 24, 2015
  • 1 reply
  • 1412 views

Hallo!


I tryed to load dinamicaly an image svg (.ai) into flash but I can't.

At my level:

1) I know that flash can't import .svg file but it is possible convert svg in Adobe ilustrator .ai file;

2) I can import .ai file in flash with no problem;

3) I can load dinamicaly external  .jpg file with no problem;

If I try to load dinamicaly  .ai file in the same way that I use to load  .jpg file I get this message:

Error #2044: Unhandled ioError:. text=Error #2124: Loaded file is an unknown type. URL: file: .....

Is there any way to solve this problem?

Can someone help me?

Thank you.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 24, 2015

you can use the urlloader class to load the svg but it won't display an image until you parse the xml, Using SVG as a level design format - Zeh Fernando