Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-447] changing images property on image view causes crash

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:04.000+0000
Affected Version/sn/a
Fix Version/s0.9.2
ComponentsiOS
Labelsios, iphone
ReporterNolan Wright
AssigneeJeff Haynie
Created2011-04-15T02:29:31.000+0000
Updated2011-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();

});

Comments

  1. Jeff Haynie 2011-04-15

    fixed.

JSON Source