Skip to main content
Participant
February 8, 2011
Question

svg and as2

  • February 8, 2011
  • 1 reply
  • 949 views

i managed to load an svg tiny file on flashlite 3.0. Is there any way to load an svg file dynamically through as2? (i suppose that as long as it is loaded in flashlite there is also a way to load it by as2). Thank you in advance!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 8, 2011

you can use the loadvars class to load an svg or use the xml class.  you'll find it easier to parse your svg file if you using the xml class.

Participant
February 9, 2011

First of all, thank you for your immediate response! maybe my question was a little vague! but i do not only want to load an svg (and parse it) but mainly i want to render it in as2 (is there for example anything like loadAndPlay(mytinysvgfile.svg) command?).   Thank you again!

kglad
Community Expert
Community Expert
February 9, 2011

no.  you'll need to create your own code to parse the svg file.

you can search for an as2 framework that someone else created and made available.  i'm not sure that exists but if creating your own code is out of the question that would be an option you might want to check.