Search found 11 matches

by seamus_waldron
Wed Dec 21, 2011 10:50 pm
Forum: iOS Deployment
Topic: Images not displaying on device, OK in simulator
Replies: 3
Views: 3777

Re: Images not displaying on device, OK in simulator

Bingo! I am kicking myself as this was a solution I solved 10 months ago for getting to audio files and I had completely forgotten. So,my code looks like this: repeat with x = 1 to the number of images on this card put the topLeft of image X into localTopLeft put the filename of image X into  localF...
by seamus_waldron
Wed Dec 21, 2011 6:35 pm
Forum: iOS Deployment
Topic: Images not displaying on device, OK in simulator
Replies: 3
Views: 3777

Images not displaying on device, OK in simulator

My stack is designed in the LiveCode environment for a regular (non retina) iOS display My directory structure look like this: ./assets/iphone/ .assets/iphoneX2/ The stack uses images from ./assets/iphone/ and the images in the iPhone and iphoneX2 directory have the same names, just different dimens...
by seamus_waldron
Tue Jan 11, 2011 7:48 am
Forum: iOS Deployment
Topic: How to display local html page in browser control
Replies: 16
Views: 18456

Re: How to display local html page in browser control

I can confirm that, I finally had a chance to look at the stack with the URLEncode example in it (thanks! :-) and the spaces were being converted to +, when for this solution you need the spaces to be converted to %20.

Seamus
by seamus_waldron
Mon Jan 03, 2011 10:20 pm
Forum: iOS Deployment
Topic: How to display local html page in browser control
Replies: 16
Views: 18456

Re: How to display local html page in browser control

Hi Bernd , I did look at URLEncode, but couldn't get it to work correctly (I'm still new to LiveCode, so I suspect I was constructing the statement incorrectly). However, in this instance I do not need to do a full URLEncode as the only thing I want to do is to remove the spaces. Also, the replace f...
by seamus_waldron
Mon Jan 03, 2011 4:28 pm
Forum: iOS Deployment
Topic: How to display local html page in browser control
Replies: 16
Views: 18456

Re: How to display local html page in browser control

Okay, I have total success!!! It turns out that if you have spaces in the full URL of the local file, the page will not load. In the simulator, the function specialFolderPath("engine") will return a path that has several spaces (/Library/Application Support/iPhone Simulator/etc etc) On the device, s...
by seamus_waldron
Mon Jan 03, 2011 3:39 pm
Forum: iOS Deployment
Topic: How to display local html page in browser control
Replies: 16
Views: 18456

Re: How to display local html page in browser control

So, this is the line to load the local page that I used: iphoneControlSet sBrowserId, "url", "file://" & specialFolderPath("engine") & "/www/index.html" It absolutely does NOT work in the simulator, but guess what? It DID work on the real device. No idea what is going on. Many thanks for the suggest...
by seamus_waldron
Sun Jan 02, 2011 1:00 pm
Forum: iOS Deployment
Topic: How to display local html page in browser control
Replies: 16
Views: 18456

How to display local html page in browser control

I am trying to use the Browser Example code from the LiveCode installation to display local HTML pages in an instance of the browser control. I can't figure it out. My setup. I have two HTML pages and relevant images and javascript files in a sub-directory called 'www'. The main HTML file is called ...
by seamus_waldron
Wed Dec 22, 2010 11:27 pm
Forum: iOS Deployment
Topic: Calling a command on button press
Replies: 2
Views: 3121

Re: Calling a command on button press

Bernd,

Thanks for the reply, it confirmed that the problem must be with me, and sure enough, it was.

I have everything running fine now with the command defined in the script of the stack.

Seamus
by seamus_waldron
Mon Dec 20, 2010 1:04 pm
Forum: iOS Deployment
Topic: Calling a command on button press
Replies: 2
Views: 3121

Calling a command on button press

Here's the problem. I have 10 buttons. Each button does the same thing, except for one small variation. Obviously, it makes sense to use a command to do the processing and pass in any parameters. So, for the button "buttonNumber1", the code looks like this: on mouseDown displayNumber 1 end mouseDown...
by seamus_waldron
Mon Dec 13, 2010 4:41 pm
Forum: iOS Deployment
Topic: LiveCode 4.5.2 - Run app in simulator, how?
Replies: 1
Views: 2886

Re: LiveCode 4.5.2 - Run app in simulator, how?

Newby error. Re-read the PDF documentation and located the "Simulate" button. If you are reading this and trying to find it (I was looking straight at the button and failed to see it), then it is the last button on the right of the menubar. So, here's to some less dumb questions in the future :-) Se...
by seamus_waldron
Mon Dec 13, 2010 4:18 pm
Forum: iOS Deployment
Topic: LiveCode 4.5.2 - Run app in simulator, how?
Replies: 1
Views: 2886

LiveCode 4.5.2 - Run app in simulator, how?

Hi there, I'm new to LiveCode, but not new to iOS, though my iOS journey has been fraught to say the least. From what I can see, the video demos are using the plugin of the iOS module, which was for the beta. From the videos, it is easy to see how to run the app in progress in the xCode iOS Simulato...