Manipulating Paths in Rendered SVG

47 views
Skip to first unread message

Jason M. Hanna

unread,
Apr 30, 2009, 12:01:40 AM4/30/09
to AS3 SVG Renderer
Hi All,

I'm don't do much with graphic libraries, but I want to write a
component for one of my Flex applications that manipulates the fill
color (or other properties) of a path or element in a rendered SVG.

The SVG I'm working with is a map of countries and states/provinces.
Ideally I'd like to be able to change the fill of particular countries
or states/provinces based on the data set I'm trying to represent and
user input selections. Each path or group of paths in my SVG has an
"id" attribute that I can use to locate the correct path (i.e. US-TX).

Using your library, I'm able to render the original SVG in my Flex
application. (thanks for that!)

Now, for example, is it possible to change the fill of an individual
path without re-rendering the entire image?

Thanks,
-jmh

Message has been deleted
Message has been deleted

josbram

unread,
Apr 30, 2009, 12:14:53 AM4/30/09
to AS3 SVG Renderer
hi. have you seen this?

http://josbram.delifrut.cl/blog/svg-to-degrafa/

good luck!!

On Apr 30, 12:12 am, josbram <josb...@gmail.com> wrote:
> hi. have you sow this?
>
> http://josbram.delifrut.cl/blog/svg-to-degrafa/
>
> good luck!!
>
> On Apr 30, 12:01 am, "Jason M. Hanna"

Jason Hanna

unread,
Apr 30, 2009, 12:50:57 AM4/30/09
to as3svgr...@googlegroups.com
Hi josbram - I saw your original post but did not follow the link to your blog.

I wanted to discover the capabilities of this library before trying
any others. :-)

Sorry, my Spanish is weak. I had to translate your blog post to
English through Babel Fish.
http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2Fjosbram.delifrut.cl%2Fblog%2Fsvg-to-degrafa%2F&lp=es_en&btnTrUrl=Translate

I see this is almost exactly what I'm looking for. I will try it
tomorrow and send you some feedback.

Is the license for what you have developed also LGPL?

Thanks,
-jmh
Reply all
Reply to author
Forward
0 new messages