First of all I love Livecode, I hadn't touched Hypercard for 12 years but its amazing how it all came back to me.
I'm building a project using Livecode for iPad deployment having a few issues with a simple game I am building. I realise LiveCode for iOS Deployment Pack is in development, so im just putting this out there so anyone with more experience (or brains) than me can help me out. As it stands some of the issues are real roadblocks and i'm unsure if its me or livecode!
iOS deployment issues:
1) do flushEvents("mousedown") does not seem to work on the iOS, so I have no way to prevent a horrible chain of multiple unwanted clicks
2) on idle does not seem to work on the iOS?
3) Animation - rotate and angle on images and graphics seems to be really slow on the iOS… not sure if this will change?
4) Wait with messages seems to block clicks (ie just wait) when on the iOS? so while its waiting its blocking clicks to buttons I need to be clickable! - any ideas?
5) Are there any general tips for reducing the filesize of iOS distributions and increasing speed?
Thanks in advance
Flushevents and other iOS issues
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 5
- Joined: Tue Oct 26, 2010 10:50 am
Re: Flushevents and other iOS issues
Now there are people in the forum I thought I would bounce this in the chance I get a reply. 

-
- Livecode Opensource Backer
- Posts: 3
- Joined: Thu Feb 17, 2011 12:32 am
Re: Flushevents and other iOS issues
Moonmonkey,
Here are a few things we found from going to iOS:
1) For FlushEvents: We had to resort to collecting touchEvents and canceling them in a repeat loop.
and then when you want to flushEvents
2) I've been told that the send command in time works better than idle.
3) I would make separate icons and switch icons in a button.
4) Instead of wait, could you use a "send to me in 300 milliseconds" command?
5) Obleo Beck has some suggestions for filesize:
"If your running into bottlenecks (aka slow and sluggish) performance app for iOS
There many things that can be done. Runrev (LiveCode) has some helpful info on there own blog. One area where they (RunRev) have yet to talk about is Optimize Resource Images.
iOS supports Optimize Images with pngcrush an command-line tool that compress and removes unnecessary comments, color profiles and etc. for image files. The optimize images will take up less space, load faster and draw less memory from the device.
The pngcrush command-line tool available from the web. (google it)
I found an free open source tool that adds an GUI interface to pngcrush and some other Image optimizations tools. What where looking for here is just PNGcrush.
ImageOptim is an tool that will allow you drag drop and process all your LiveCode iOS Image files at one time. Very simple to use and valuable for Optimizing performance with your LiveCode built iOS app. In ImageOptim menu item tools, select just: PNGcrush . for use with LiveCode iOS, as it supported for use with iOS. (It's in text within the Apple iOS programming guide, If you need more info.)
Get more Info and download ImageOptim
It works with mac OSX 10.5.8 later.
PNGcrush command-line tool is cross platform and works with Mac OSX , Unix, Linux and Windows."
Hope that some of that helps you.
-tikilittle
Here are a few things we found from going to iOS:
1) For FlushEvents: We had to resort to collecting touchEvents and canceling them in a repeat loop.
Code: Select all
on touchStart pId
global myMessages
set the itemdel to comma
put pId & comma after myMessages
end touchStart
Code: Select all
global myMessages
repeat for each item myitem in myMessages
cancel myitem
end repeat
3) I would make separate icons and switch icons in a button.
4) Instead of wait, could you use a "send to me in 300 milliseconds" command?
5) Obleo Beck has some suggestions for filesize:
"If your running into bottlenecks (aka slow and sluggish) performance app for iOS
There many things that can be done. Runrev (LiveCode) has some helpful info on there own blog. One area where they (RunRev) have yet to talk about is Optimize Resource Images.
iOS supports Optimize Images with pngcrush an command-line tool that compress and removes unnecessary comments, color profiles and etc. for image files. The optimize images will take up less space, load faster and draw less memory from the device.
The pngcrush command-line tool available from the web. (google it)
I found an free open source tool that adds an GUI interface to pngcrush and some other Image optimizations tools. What where looking for here is just PNGcrush.
ImageOptim is an tool that will allow you drag drop and process all your LiveCode iOS Image files at one time. Very simple to use and valuable for Optimizing performance with your LiveCode built iOS app. In ImageOptim menu item tools, select just: PNGcrush . for use with LiveCode iOS, as it supported for use with iOS. (It's in text within the Apple iOS programming guide, If you need more info.)
Get more Info and download ImageOptim
It works with mac OSX 10.5.8 later.
PNGcrush command-line tool is cross platform and works with Mac OSX , Unix, Linux and Windows."
Hope that some of that helps you.
-tikilittle