Can't rotate images on mobile phone

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shoshinsha
Posts: 35
Joined: Fri Jul 18, 2014 5:17 am

Can't rotate images on mobile phone

Post by shoshinsha » Thu Nov 27, 2014 7:52 am

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.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Can't rotate images on mobile phone

Post by LCNeil » Thu Nov 27, 2014 10:49 am

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 
--

shoshinsha
Posts: 35
Joined: Fri Jul 18, 2014 5:17 am

Re: Can't rotate images on mobile phone

Post by shoshinsha » Fri Nov 28, 2014 3:25 am

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.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Can't rotate images on mobile phone

Post by LCNeil » Fri Nov 28, 2014 10:21 am

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 
--

Post Reply