Some possibilities (I haven’t tried any, so I’m not sure if they work):
(1) The Path element has a closed property for defining a path that loops back on itself. You could try setting this to true. See if setting a high currentIndex value (a value larger than the largest) causes it to loopback around.
(2) Same as (1) above, except instead of setting the currentIndex property directly, try using the PathView’s incrementCurrentIndex() function. I suppose it’s possible that this function has additional boundary logic in place that takes into account the closed property value setting and loops the currentIndex around properly.
(3) Worst case, you have to adjust the currentIndex in such a way that it forces the slot machine to rotate in one direction. It would be this sequence:
currentIndex = 0
currentIndex = count – 1
currentIndex = 0
currentIndex = count – 1
…
This sequence should make the PathView rotate in a single direction.
These are the only solutions I can think of. Perhaps someone else has some other ideas as well.
↧