Storing images

Jan Schenkel janschenkel at yahoo.com
Tue Feb 4 08:15:01 EST 2003


--- Jim Hurley <jhurley at infostations.com> wrote:
> Isn't there another issue regarding where images are
> stored? My 
> knowledge  here is admittedly weak but I have had
> problems in the 
> past in referencing images stored on disk. To find
> the image a path, 
> either  absolute of relative (relative to the
> current default folder) 
> needs to be given. If, in distributing  the
> application, the user 
> should move the stack without bringing the images
> along there will be 
> problems.
> 
> I would much prefer to reference the file than
> import it as a control 
> for the many good reasons mentioned by others on
> this thread: The 
> ease of displaying multiple sizes in multiple
> locations, reduction of 
> file size, and, if only for religious reasons
> (religion defined 
> broadly), it is cleaner and cleanliness is next to
> you know Who. So 
> if there is a clean way to reference the file while
> avoiding the 
> problem of broken links when stacks become separated
> from images, I 
> would *greatly* appreciate an education in this
> matter.
> 
> Jim

Hi Jim,

Perhaps you could change the 'defaultFolder' global
property when your stack opens ? When looking for
files, if you don't specify a full path, the engine
will look relative to the defaultFolder.

Just a thought,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the use-livecode mailing list