1) Take a photo and place into img "myPic"
2) Create another image (img "drawArea) with rect = to img "myPic"
3) layer img "drawArea" to top
4) Choose brush tool
5) use touchMove to drag from pX to pY
6) On the desktop works well. I can draw on top of the photo
7) On Android Device (Nexus tablet) nothing happens after I choose brush tool. The photo displays, but I can't draw.
My code looks like this:
BUTTON SCRIPT:
Code: Select all
global activeTool
on mouseUp
set the layer of image "drawArea" to top
put true into activeTool
choose brush tool
set the brush to 32
end mouseUp
Code: Select all
global activeTool
on openCard
set the rect of image "drawArea" to the rect of image "myPic"
set the layer of image "drawArea" to top
end openCard
on touchMove pID, pX, pY
if activeTool is true then
drag from pX to pY
else
exit touchMove
end if
end touchMove
Thank you