View Full Version : Loading vector image
bhuvan
02-13-2009, 04:12 PM
Hi,
I am new to flex and just learning how to use it. I was wondering whether it is possible to load vector images at runtime? i hope i am not asking something silly :-)
Martin__
02-13-2009, 04:36 PM
hi,
no this is not a silly question ;)
there are some svg libraries available and written in as3, try to google on the subject, though i cannot say how good they are since i never used them.
svg is a vector file format
another way could be to save the vectors as swf and load them using the swfloader component
greetings
bhuvan
02-13-2009, 04:40 PM
Thank you Martin. I will look for svg libraries then.
Sekhar
02-13-2009, 05:02 PM
You can use the regular Image control to load SVG, but you'll have to embed it (can't load at run time). E.g.,
<mx:Image width="600" height="400" source="@Embed('images/xyz.svg')"/>
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.