event1=class()
function event1:paint(gc)
gc:drawString("XX",x1,y1)
timer.start(0.1)
end
function event1:timer()
x1=x1+1
y1=y1+1
platform.window.invalidate()
end
event2=class()
function event2:paint(gc)
gc:drawString("XXX",x2,y2)
timer.start(1)
end
function event2:timer()
x2=x2+1
y2=y2+1
platform.window.invalidate()
end
function on.paint(gc)
event1():paint(gc)
event2():paint(gc)
end
function on.timer()
event1():timer()
event2():timer()
end
------you know, it doesn't work. what should l do?