22May

vertex tweened animation

When you think in a mesh you are basically  thinking in vertexs.
In this cute example, our dear Ivan takes four 3D meshes, gets its surface information and place a sphere in each vertex’s position. When the stage is clicked, a new mesh is taken as reference and each sphere is tweened to the new vertex position. For tweening, we are using the famous Greensok’s TweenLite library (I love Greensock’s products Risa ).

vertexvertex

This example presents a simple technique for handling objects info and how to use them as reference for manipulating scene objects.

Live demo and full source code in our Wiki

Enjoy it!

  • Lacey

    Hi Dale,The accordion menu you caerted is really great. I am working actually on it for a friend. She does not know a lot about Actionscript, so I took the part.Actually I caerted a module, which is loaded into the menu as normal. The big problem actually is how can I call a function within the child SWF when i click the menu. The problem is following: I have several Menus and under each one is a movie now when I play the movie in MenuA and open MenuB MenuA’s movie still continues to play and I want to stop that, by calling a global function which sends a function call to all Menus to stop movie playing (or reinitiate the content).I wanted to hardcode it into your class, but it did not work out Maybe you can help me out.Thanks in advance.