Page 1 of 1

Can't rotate images on mobile phone

Posted: Thu Nov 27, 2014 7:52 am
by shoshinsha
Hi,

On LiveCode (on my computer) I'm able to rotate the image, but when I've built it as an iOS/Android app and installed it on the mobile phones the image could not be rotated.
I'm just using a simple script on a button:

Code: Select all

on mouseUp
   rotate img "mypic" by 90
end mouseUp
The image just stays still without rotating.

I'm using LiveCode 6.7. Tested on Sony Xperia v4.4.4 and iPod v8.1.

Thanks,
Vikki.

Re: Can't rotate images on mobile phone

Posted: Thu Nov 27, 2014 10:49 am
by LCNeil
Hi Vikki,

The rotate command is desktop specific so will not work on mobile devices. More clarifcation of this can be found in the LiveCode dictionary.

An alternative that you may wish to use is setting the "Angle" of an image. The following should give the same effect as rotate-

Code: Select all

 set the angle of image "mypic" to the angle of image "mypic" + 90
Kind Regards, 

Neil Roger 
-- 
LiveCode Support Team ~ http://www.livecode.com 
--

Re: Can't rotate images on mobile phone

Posted: Fri Nov 28, 2014 3:25 am
by shoshinsha
Hi Neil,

As I read on the dictionary for rotate command, its supporting platforms are: Desktop, Server, Web and Mobile, so I assumed that it would work on mobile devices...

Your workaround works well on mobile. Really appreciate your help and thank you so much! :D

Sincerely,
Vikki.

Re: Can't rotate images on mobile phone

Posted: Fri Nov 28, 2014 10:21 am
by LCNeil
Hi Vikki,

Thank you for letting us know about the documentation error. I missed this as I always look for the operating system icons when using the dictionary :) The rotate only has linux/win&mac icons.

We are currently in the process of updating our documentation so I will inform the relevant parties of this error.

Kind Regards, 

Neil Roger 
-- 
LiveCode Support Team ~ http://www.livecode.com 
--