[TIMOB-447] changing images property on image view causes crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:53:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 0.9.2 |
Components | iOS |
Labels | ios, iphone |
Reporter | Nolan Wright |
Assignee | Jeff Haynie |
Created | 2011-04-15T02:29:31.000+0000 |
Updated | 2011-04-17T01:53:04.000+0000 |
Description
app is attached to ticket:
http://helpdesk.appcelerator.net/tickets/1224">http://helpdesk.appcelerator.net/tickets/1224
var win = Titanium.UI.currentWindow;
win.hideNavBar();
var WhenStillImgs = [];
var WhenMovingImgs = [];
WhenStillImgs.push('images/Kicking00.png');
WhenStillImgs.push('images/Kicking20.png');
WhenMovingImgs.push('images/Kicking00.png');
WhenMovingImgs.push('images/Kicking14.png');
var cartoonGuy = Titanium.UI.createImageView({
height:200,
width:200,
images:_WhenStillImgs,
duration:100, // in miliseconds, the time before next frame is shown
repeatCount:0, // 0 means animation repeats indefinitely, use > 1 to control repeat count
top:30
});
win.add(cartoonGuy);
cartoonGuy.start();
cartoonGuy.addEventListener('touchstart', function(e)
{
cartoonGuy.stop();
Ti.API.info('length ' + _WhenMovingImgs.length)
cartoonGuy.images=_WhenMovingImgs;
cartoonGuy.start();
});
fixed.