SVG + Semantics in Actionscript 3
At inEvo we are developing our AS3 SVG framework. This framework enable SVG render and edition.
It now as a new concept that enable new partnerships between SVG and AS3. The new concept is SVG + Semantics.
Adding Semantics to SVG nodes and elements enables behaviour and context information to any SVG graphical element. From the post:
"To this effects we used the class attribute from SVG nodes. Adding a class we can create “special” nodes that can relate graphical information with behaviour. To make this more clear, just imagine that you have any graphical SVG node (a path, a group..) a you add the class “collidable”. At this point all these node will have collision detection and send events of collision that you can work with after (alert, highlight, have collision movement,..). So, we have a SVG node with behaviour regarding its graphical representation.
Another example is physics. A graphical element allows you to set it as “physic body” and drag it around with physical behaviour."
This new concept allows any externally created (illustrator et al) SVG objects to come alive on AS3 and to use the power of actionscript, and so, flash, to create new kinds of behaviours. Having a flash application that can accept SVG files and objects and even give them propose and logic is really poweful and should be tried on other platforms like Java, silverlight, ruby, etc..
The post also has a demo video of an application that uses this to good effect.
- tiago.cardoso's blog
- Login or register to post comments