Setting the default source path for Image controls

Bob Earp rjearp at hotmail.com
Thu Jan 18 14:37:26 EST 2007


Many thanks David, Jim and especially Tereza for your help.
 
I already use external folders for audio and video files, and set relative paths for them when opening the stack, saving them in globals.  They're easy as you're setting the target file when you either "play" them or use a player.  The images were more difficult as I didn't want to set the fileName property of every image control in the stack when opening it !!
 
I ended up setting the defaultFolder to the graphics folder path on opening the stack (after doing the audio & video paths), and then I just set the fileName of each image control to the bare filename of the image (no path) when placing the image control on a cd, and all seems to work fine.
 
The only weird thing is that if you are editing, you'll see the whole file path in the Source field of the Image control properties window even though you've only originally set it to just the filename.  Maybe a logical way of doing things, but confusing none the less !!
 
Thanks again, Bob...
 
Bob Earp, in snowy White Rock, BC
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d


More information about the use-livecode mailing list