referenced image not appearing in mobile builds

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
sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

referenced image not appearing in mobile builds

Post by sms5138 » Tue May 12, 2015 1:12 pm

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

Klaus
Posts: 14267
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: referenced image not appearing in mobile builds

Post by Klaus » Tue May 12, 2015 1:24 pm

Hi Sean,

please check this, maybe it will help:
http://forums.livecode.com/viewtopic.ph ... ce#p125147


Best

Klaus

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: referenced image not appearing in mobile builds

Post by Simon » Tue May 12, 2015 1:28 pm

Hi Sean,
Not sure what you had in mind but would "ask password" work in this case?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: referenced image not appearing in mobile builds

Post by sms5138 » Tue May 12, 2015 3:49 pm

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

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: referenced image not appearing in mobile builds

Post by MaxV » Tue May 12, 2015 4:58 pm

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
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: referenced image not appearing in mobile builds

Post by sms5138 » Wed May 13, 2015 9:20 pm

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

Post Reply