Page 1 of 1

import snapshot can't work on the Android mobile

Posted: Sat Jan 05, 2013 5:06 am
by seshee1234
Hello,

I've found some problems while I'm using the "import snapshot" function

It can work successfully on PC,but can't work on the Android mobile device


Here's the code

Code: Select all

import snapshot from rect (100,100,100,100)
What goes wrong?
Thanks so much

Hao

Re: import snapshot can't work on the Android mobile

Posted: Sat Jan 05, 2013 2:15 pm
by Klaus
Hi seshee1234,

try without the parens:
...
import snapshot from rect 100,100,100,100
...

Best

Klaus

Re: import snapshot can't work on the Android mobile

Posted: Sat Jan 05, 2013 2:44 pm
by Dixie
Not that import snapshot from rect 100,100,100,100 would show anything !.. :-)

Dixie

Re: import snapshot can't work on the Android mobile

Posted: Sat Jan 05, 2013 2:52 pm
by Klaus
OUCH! Yes, so true, Dixie 8)
This was a attention-span test, right? :D :D :D

P.S.
@seshee1234: Take an other (and slightly bigger) rect!

Re: import snapshot can't work on the Android mobile

Posted: Sat Jan 05, 2013 4:56 pm
by seshee1234
oops! I make a stupid mistake!

but in my program,i have a bigger rect like (221,370,436,479)

it just won't work on my Android phone!

Code: Select all

import snapshot from rect 221,370,436,479
answer the number of images in this card
the snapshot function suppose to create an image,right?
but it returns zero!
WHY??

THANKS for your help!!

Re: import snapshot can't work on the Android mobile

Posted: Sat Jan 05, 2013 5:52 pm
by Dixie
Does it help if you specify the object from which you wish to take the snapshot... as in

Code: Select all

on mouseUp
   --import snapshot from image 1
   import snapshot from rect 20,30,100,90 of this card
end mouseUp
Dixie