• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to load svg (vector) image dinamicaly.

Contributor ,
Feb 23, 2015 Feb 23, 2015

Copy link to clipboard

Copied

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.

TOPICS
ActionScript

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 24, 2015 Feb 24, 2015

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines