Page 1 of 1
referenced image not appearing in mobile builds
Posted: Tue May 12, 2015 1:12 pm
by sms5138
Hi everyone,
I'm trying to replace text in a field with an image that i've created, and have been using the following code:
Code: Select all
on textChanged
repeat with x = 1 to the number of chars of me
set the imageSource of char x of me to 231002
end repeat
end textChanged
This works quite well on OSX, and Windows, but when testing the android, and ios emulators it does not appear to work at all?
Does anyone have any idea why this might be? Any advice would be greatly appreciated.
Thanks!
-Sean
Re: referenced image not appearing in mobile builds
Posted: Tue May 12, 2015 1:24 pm
by Klaus
Hi Sean,
please check this, maybe it will help:
http://forums.livecode.com/viewtopic.ph ... ce#p125147
Best
Klaus
Re: referenced image not appearing in mobile builds
Posted: Tue May 12, 2015 1:28 pm
by Simon
Hi Sean,
Not sure what you had in mind but would "ask password" work in this case?
Simon
Re: referenced image not appearing in mobile builds
Posted: Tue May 12, 2015 3:49 pm
by sms5138
Hi guys,
thanks for the quick reply, and useful information. I may have explained my issue incorrectly. when using the code above on a standalone application running on mac osx, and windows 7/8.1 i get the following result:
https://drive.google.com/open?id=0Bymry ... authuser=0
When i build a standalone application for android, or ios. i get this:
https://drive.google.com/open?id=0Bymry ... authuser=0
**please let me know if the images did not show up**
i really liked the idea of being able to use my own image to visually hide the text within a field, and wondered why it is not carrying over to the mobile versions? the resources you've provided may be able to do this, but i'm not quite sure how to implement them accordingly.
Again, thank you in advance for your help!
-Sean
Re: referenced image not appearing in mobile builds
Posted: Tue May 12, 2015 4:58 pm
by MaxV
On mobile you can use native text field:
Code: Select all
mobilecontrolcreate "input","myinput"
mobilecontrolset "myinput","Contenttype","password"
mobilecontrolset "myinput","rect",myrect
mobilecontrolset "myinput","visible",true
Re: referenced image not appearing in mobile builds
Posted: Wed May 13, 2015 9:20 pm
by sms5138
Hi everyone,
Thanks to all your great suggestions i believe i've been able to get it to work how i've been hoping!
Thanks again!
-Sean