Search code examples
appceleratoranimated-gif

How do I do an animated imageView in appcelerator?


  loader_array = [];
  for (var i=1; i <= 24; i++) {
    loader_array.push('/images/system/block_loaders/' + i + '.png');
  };

  var loadingSpinner = Ti.UI.createImageView({
    images: loader_array,
    duration: 100,
    repeatCount: 100,
    opacity: 0.5
  });
  self.add(loadingSpinner);

When I do that, I get nothing. But if I do a single image from that set and use image instead of images, it works fine. So what am I doing wrong?


Solution

  • Try This One if Works answered by brian kurzius