PDA

View Full Version : [FIXED][4.0.1] Ext.draw.Surface - wrong inline code example



LesJ
19 May 2011, 9:50 AM
The newly added (in 4.0.1) inline animation examples are not correct, see the code below.

Also, it might be helpful to mention that each sprite can be included in multiple groups by listing:

group: ['rectangles', 'orange'],


Current example

// Animate the rectangles across
rectangles.animate({
duration: 1000,
translate: {
x: 200
}
});


Corrected example


rectangles.animate({
duration: 1000,
to: {
translate: {
x: 200
}
}
});

evant
20 May 2011, 12:22 AM
I've updated the sample code in the example so it's correct. Also added the docs about group to Sprite, thanks.