Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 93817

Re: Edge Commons SVG - How do I reference an SVG element directly without a click or mouse over event?

$
0
0

You are using the SVG feature not quite right.

The workflow should look like this:

(1) You have a SVG placed as an image natively in Animate

(2) You use Edge Commons ONCE to convert it to an interactive SVG by calling EC.SVG.accessSVG(...) ONCE

(3) In the done callback you now have access to the svg document. You can use it here to change properties withing the SVG here or you can save the reference to the svg document in a variable to access/use it at another place (e.g. trigger, click handler etc.)

OR

you can save references to inner parts of the SVG like a path/polygon/group etc. You can see that in my sample project "Geek Shirt Designer (SVG+PHP) Edge Animate" in the EdgeDocks market: Marketplace for Adobe Edge Animate, Edge Reflow and Edge Code: Free Components and Tutorials | EdgeDocks.com

Hope that helps!

 

Happy Animating!

Simon

EdgeDocks.com


Viewing all articles
Browse latest Browse all 93817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>