Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Actionscript 3: Loading ai files dynamically?

Is it possible to dynamically load vector files, in this case .ai files in Actionscript 3? You can import them to the stage, but I want to do this dynamically, is there a way to do this?

like image 687
koeri Avatar asked Nov 25 '22 21:11

koeri


1 Answers

You could save the vector data in an XML format such as SVG (Illustrator supports this), then load it using URLLoader, parse the data and draw it into a Shape object.

There are a few AS3 SVG parsers available on the web: http://www.google.com/search?q=svg+as3

like image 101
geo Avatar answered Dec 09 '22 11:12

geo