how to show filter in SVG to Flash

47 views
Skip to first unread message

bindu

unread,
Jul 16, 2009, 2:31:46 AM7/16/09
to AS3 SVG Renderer
i need to show blur filter effect , how to apply blur filter in svg
anf svg to flash

josbram

unread,
Jul 16, 2009, 3:23:45 AM7/16/09
to AS3 SVG Renderer
hi, you need to render the SVG file like a flash object fisrt and then
you can apply blur filter to the flash object.

bindu

unread,
Jul 16, 2009, 3:40:40 AM7/16/09
to AS3 SVG Renderer
thanx for reply
Can you please share some example

josbram

unread,
Jul 16, 2009, 4:43:34 AM7/16/09
to AS3 SVG Renderer
are you working with FLASH or FLEX?

i have some examples for FLEX, but not for flash. it must be like
flash, however.

i'm not sure if you can apply filters to svg object in as3 directly.
if you cannot you should render manually the svg file to as3 object. i
have an example, how to apply effects to as3 object from svg here:
http://josbram.delifrut.cl/blog/svg-to-degrafa/
it's in spanish because i dont't speak english well, i'm chilean.

greetings!

Colbert Philippe

unread,
Jul 17, 2009, 10:54:37 AM7/17/09
to as3svgr...@googlegroups.com
Hi!  Thanks for the reply to my question!
 
Can you be a bit more explicite when you say "you need to render the SVG file like a flash object fisrt"?
 
In AS3, I don't know how to render the SVG file?   If you know how to do it, let me know.
 
Colbert Philippe

josbram

unread,
Jul 17, 2009, 2:34:08 PM7/17/09
to AS3 SVG Renderer
ok, i will try to be a litle more explicite.

in as3 you can draw any polygon, circles, lines, etc. but you cannot
to modify their properties.

there is a library called DEGRAFA you can create degrafa circles,
degrafa lines, degrafa polygon, etc and you can modify it as you
want.

the best of degrafa it's compatible with svg definition. you can read
a file svg and you can traslate it to degrafa object easily.

in the example on my page i make it, but the code is a litle extense.

now, i don't know if you want to apply a filter to all the svg file or
only to apply filter effects by parts. let me know!

greetins!

On Jul 17, 10:54 am, Colbert Philippe <colbert.phili...@gmail.com>
wrote:
> Hi!  Thanks for the reply to my question!
>
> Can you be a bit more explicite when you say "you need to render the SVG
> file like a flash object fisrt"?
>
> In AS3, I don't know how to render the SVG file?   If you know how to do it,
> let me know.
>
> Colbert Philippe
>

bindu

unread,
Jul 20, 2009, 2:40:09 AM7/20/09
to AS3 SVG Renderer
hi


i want to show filter on part . and i m working in flash .
My problem is i m making a drawing application in which i have to make
a airbrush with blur effect . i am using SVG format to save that data
to server . But i dont know how to save blur effect in SVG file
format . For SVG to Swf how to implement it

josbram

unread,
Jul 20, 2009, 2:59:55 AM7/20/09
to AS3 SVG Renderer
wow, it's look like not easy hahaha.
i think you cannot to save the blur effect directly, may be you need
to calculate the transformation matrix and save it in the svg file,
but i don't know how to.
i'm sorry my experience with as3 is not as much as to help you to do
it.

for svg to as3 to swf i made this code
http://josbram.delifrut.cl/files/flex/degrafa_svg/degrafa_svg.zip

it's read a svg file and convert the svg data in as3 object then you
can apply effect to the as3 object.
for this example you need the degrafa library, you can use the
binaries that there are in my example or download de src file from
degrafa.org

sorry by my english, bye.

bindu

unread,
Jul 23, 2009, 2:07:42 AM7/23/09
to AS3 SVG Renderer
how to make transformation matrix and save in the svg file. And how
to revert back it in flash

On Jul 20, 11:59 am, josbram <josb...@gmail.com> wrote:
> wow, it's look like not easy hahaha.
>  i think you cannot to save the blur effect directly, may be you need
> to calculate the transformation  matrix and save it in the svg file,
> but i don't know how to.
> i'm sorry my experience with as3 is not as much as to help you to do
> it.
>
> for svg to as3 to swf i made this codehttp://josbram.delifrut.cl/files/flex/degrafa_svg/degrafa_svg.zip
Reply all
Reply to author
Forward
0 new messages