1 Reply Latest reply on Feb 11, 2007 10:54 PM by SymTsb

    tweens to multiple locations

      i was on this page: http://www.alumiiinium.com/about.html and was wondering how it is possible to make a tween between each of the objects. specifically, you click a button and it slides from object 1 to object 3, but if you go back to object 1 then to click on object 9, it slides aswell like there is a tween. a way i can think of making this possible is by making a tween animation with every combination of clickable items, like a tween from picture 1 to 2, 1 to 3, 1 to 4... 2 to 1, 2 to 3... and so on, with 10^2 combinations.

      another way would be to do it with code. example: on (press) {filmstrip._x=950}, but this way it would just pop to its spot without a sliding animation.

      what is the most efficient way to go about making and coding something similar like on this page?
        • 1. Re: tweens to multiple locations
          SymTsb Level 2
          probably done using a single function that is called with parameters for a given button. function takes parameters to control the speed factor of the tween, the distance traveled etc. Then you could just use the Tween class to move the object the proper distance. this way, you don't need to handle every possible tween possible on a case by case basis which would make the file size astronomical.