Targeting svg groups and paths

#1

Using format.svg in openfl project is working fine, I can import and display correctly and I can read the names of the groups and paths using

import format.svg.Group;

and then
svgAsset.data.hasGroup(“icon”);
and
svgAsset.data.findGroup(“icon”)

to which svgAsset.data.findGroup(“icon”).children.length reports correctly 2

So my svg from Inkscape has a parent group called icon and sub paths called graphic and button

Does anybody know if you can selectively target these elements when rendering to a MovieClip to allow child control of separate MovieClip children

i.e. the ability to change the color or alpha of the button derived from the svg.

Thanks

0 Likes

#2

I’d love to see improvements to the SVG lib – this sounds possible.

1 Like