animation.repeat value limits
playing with animation.repeat,
is a 0 value supposed to represent infinite repeats?
It seems to be defaulting to 1 when set as 0.
incredibly high values also seem to revert to 1
(10000000000 for example)
what are the upper and lower limits for this value?
and is there an easy way to set to infinite repeats?
iphone sdk 3.1, TI 1.0, mobile sdk 1.1.2
4 Answers
-
Untested workaround: Place the animation in a method, then attach an event to the animation which will call this method once the animation is complete. Then call the method once to start the loop. Removing the listener should stop the loop.
-
thanks, the suggestion is appreciated.
Ive have already been playing with that approach, I was looking/hoping for an actual feature that I may have missed in the docs.
This is in reference to a particle generator, so Im really testing the limits of the graphics updates more than anything else.
(woo hoo, fun times) -
Yep, I figured so. The docs are pretty incomplete and/or inaccurate IMO, so I wish good luck.
-
Simply set -1