1 Reply Latest reply on Aug 24, 2006 7:41 AM by pipeski

    Tween class - time lag in first use

      I'm using the Tween class to slide a menu in from the left side of the page. The code I'm using for the motion (including some timing code) is attached.

      My problem is that when I first call the function, the tween takes over a second (and looks really jerky). Subsequent calls to this function result in a time of around 0.4s (the time specified).

      I'm guessing that the initial lag is caused by the Tween class initialising for the first time... does anyone have a suggestion as to how I can overcome this lag, preferably without any cheesy hacks?

      Any ideas gratefully accepted.