Jump to content
Search Community

herke

Members
  • Posts

    5
  • Joined

  • Last visited

herke's Achievements

0

Reputation

  1. Hey, Is it possible to use this when its in a class? i'm getting errors when trying the simplest example with this class: "ReferenceError: Error #1069: Property startTotal not found on PriceCalculator and there is no default value." package { import flash.display.MovieClip; import com.greensock.TweenMax; import com.greensock.easing.*; public class PriceCalculator extends MovieClip { var startTotal:Number = 100; var newTotal:Number = 200; public function PriceCalculator() { } public function updatePrices():void { TweenMax.to(this, 2, {startTotal:newTotal, onUpdate:updateTotal}); function updateTotal(){ trace(startTotal) } } } } is there any way round this? Cheers Neil
  2. Hi, Is it possible to tween a text area so it counts down numbers? Say my start number is 1000, I want it to count down to 0 over 4 seconds (so the text box will go 999, 998, 997 etc) Cheers Neil
  3. Hi, Im trying to get something to animate continuously, but im struggling with the yoyo/repeat as its not quite what i need. What i need is something like this: UP..DOWN..............(wait)..................UP..DOWN...........(wait)....etc when i use the yoyo/repeat combo it works like this: UP.......................(wait).........................DOWN............................(wait)................... etc so essentially i need it to do the tween back and forth, then wait an amount of time before doing it again. Is there a way of doing this? Cheers Neil
×
×
  • Create New...