You'll need old number, new number and then calculate the delta.
You should connect your widget counter to the text object called new number and place this script OnSetText.
dim old, delta as xpTextObject
scene.GetObjectByName("oldValue", old)
scene.GetObjectByName("deltaValue", delta)
delta.Text = text - old.Text
dim up, down as xpBaseObject
scene.GetSceneDirectorByName("upArrow", up)
scene.GetSceneDirectorByName("downArrow", down)
if delta.Text > 0
up.play
up.autostop = true
else
down.play
down.autostop = true
end if
old.Text = text
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
------------------------------