I'm trying to evaluate LiveCode, but running into something strange. Livecode (5.0.0 trial) on a Hackintosh (core 2 duo cpu, 2GB ram) running 10.6.8.
Create a new main stack, put two labels called 'xloc' and 'yloc' on the card, then put this code on the card:
Code: Select all
on mouseMove h,v
doMove h,v
end mouseMove
on touchMove h,v
doMove h,v
end touchMove
on doMove h,v
put h into field "xloc"
put v into field "yloc"
if not exists(graphic "demo" of card "easel") then create graphic "demo"
set the style of graphic "demo" of card "easel" to "line"
set the endArrow of graphic "demo" of card "easel" to false
set the lineSize of graphic "demo" of card "easel" to 30
set the arrowSize of graphic "demo" of card "easel" to 10
set the foreColor of graphic "demo" of card "easel" to 0,255,0
set the height of graphic "demo" of card "easel" to height of card "easel"
set the width of graphic "demo" of card "easel" to width of card "easel"
set the points of graphic "demo" to h,v & cr & h,v
end doMove
Well, sometimes you do.
Sometimes, though, you see a large green line that runs top to bottom on the card.
Sometimes, you see a green square, and the beachball comes on, and takes a while (> 1 second) to go away.
So, just out of curiosity, I set the target to be the iPad simulator, and ran it there. I don't get the pauses, which is great, but I also don't get the white card or the green dot. I see the numbers changing in the labels, so I know the event handler is being called, but nothing else seems to be happening.
Am I doing something completely bone-headed here? Am I tickling a garbage collection condition? Why the different behaviour between the app running on a Mac and on the iPad?
Thanks,
-Ken