I'm trying to get the position of the current cursor track. I have the following code.
Code: Select all
cursorTrack = host.createCursorTrack("ct", "ct", 2, 0, true)
cursorTrack.position().addValueObserver(getCursorTrackPositionObserver, 0);
function getCursorTrackPositionObserver(value){
cursorTrackPositionObserver = value;
}
println('cursorTrackPosition = ' + cursorTrackPositionObserver);
any ideas?