Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Play Animation then Event?

I'd like to play a little transition animation then play a movie but I'm not sure how to combine two events in series. Here's what I'm doing. Thanks for help.

// click button goto play movie

b3.addEventListener('click', function() {

var images = [];
for (var i=1;i<46;i++)
{
    images.push('img/count/Untitled' + ((i<46)?+i:i)+'.png');
}

var imageView = Titanium.UI.createImageView({
    images:images,
    duration:100, // in milliseconds, the time before next frame is shown
    repeatCount:0,  // 0 means animation repeats indefinitely, use > 1 to control repeat count
    top:0
});

// start animation
    imageView.start();

    var win1 = Ti.UI.createWindow({
        url:'pages/movie_local.js',
        title:'movie'
    });

    win1.open();

});
— asked April 6th 2010 by Mark Smillie
  • animate
  • transition
0 Comments

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.