.frameIndex()
The function .frameIndex() will change the frame of a given object. The function can also be used to return the current frame of an item. The function takes in a single parameter, that being the desired frame.
object.frameIndex(1);
//changes 'object' to frame 1
See Further:
- Dojo Practice