int64 MoveSprite(string, string, int, int, int, string)

Moves a sprite onto and around a view.

Security

Trust Level Required: Full Trust

Parameters

Name Description
callbackName string
The name of a callback on your page that you would like KioWare to call when complete.
spriteId string
The target sprite.
viewInd int
The zero-based index of the target view. If the sprite is not located on the requested view, it will be moved there.
x int
The x coordinate; oriented from the left side of the display.
y int
The y coordinate; oriented from the top of the display.
devName (Optional) string
Optional device name from the Config Tool. Default value: null.

Return

The queue id number, or 0.

Remarks

The viewInd is a zero-based index relative to the order of views passed to CreateViews. Each sprite is it's own entity; in other words, they may only be on one view at a time.

Examples


if(!KioTouchDevice.MoveSprite(null, 'LeftMenu', 0, 0, 0))
	alert('Failed');

Requirements

KioWare for Windows version 8.18 or greater.