spot my mistake?

Jim sims sims at ezpzapps.com
Tue Aug 6 01:55:52 EDT 2013


This fails to set the filename of an image area/object even though "the
files" returns the image name I want to use.

Can anyone spot my mistake?

TIA
sims
---

*on* mouseUp

   *put* specialFolderPath("documents") into imageFolder

   *put* "http://ezpzapps.com/hagar/a1010_1.jpg" into tImageToGet

   *put* "binfile:" before tImageToGet

   *put* tImageToGet into fld "toget"

   *put* specialFolderPath("documents") into tDoc

   *put* "file:"&tDoc&"/"&"a1010_1.jpg" into tFileLoc

   *put*  url tImageToGet into url tFileLoc

   *set* the defaultFolder to imageFolder

   *put* the Files into tFls

   *answer* "the files are"&cr& tFLs *-- THIS GIVES "a1010_1.jpg"*

   *put* imageFolder & "/" & "a1010_1.jpg" into tFLoad

   *set* the filename of image "testerz" to tFLoad

*end*  mouseUp



More information about the use-livecode mailing list