Yep on mouseUp --/ the image from mobilePickPhoto uses the template image construct --set it off screen so we don't see ift flash / --set the loc of the templateImage to -10000,-10000 set the vis of the templateImage to false --NEWLINE --delete file (specialFolderPath("documents") & "/photos/" & the short ID of this card) set the filename of image "imageField1" of this card to "" --NEWLINE --/choose a photo/ mobilePickPhoto "library" lock screen if the result <> "cancel" then --/ make the filepath to save the chosen image/ put (specialFolderPath("documents") & "/photos/" & the short ID of this card) into thePath --/ put the image into a file in the photos folder / put the text of the last image of this card into URL("binfile:" & thePath) --/set the loc of image 1 to the loc of group "picgroup' so it will align/ set the loc of image "imageField1" to the loc of group "picgroup" --/ show the image on the card / set the filename of image "imageField1" of this card to thePath --/ destroy the image imported from the library / delete the last image of this card end if unlock screen end mouseUp
There is another change I made in there as well. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680671.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode