Undocumented image problem 2
Sannyasin Sivakatirswami
katir at hindu.org
Thu Jan 23 08:03:01 EST 2003
We only Macs here and we have no problems displaying JPEGS in
standalones, or from the servers across the room. I did in the
beginning because I was naive about using file references for external
media.
You must always use relative paths after getting the effective Filename
of this stack, chop the file name to get the current directory, which
will then be correct, whereever you are, and in a pre-open stack
handler you poke that to a global. "gRoot"
Set the default folder to "gRoot" and that and then call images
relatively from that location. (assumes you have a folder of images in
the same directory alongside your standalone).
One caveat was that, during development when setting the file reference
for an image control, it will always give you the long path from the
local hard drive and you must manually chop this back to the relative
path.
You can go ahead and import all the images and then using a script,
chop all the file refs back in one go. Once done, it works anywhere.
There are probably easier ways... but the above works.
if this doesn't make sense I'll dig up examples. And there are more
caveats for CD's going to Windows machines -- don't ever put anything
on the root level of a CD... always put your presentation and media
file inside a directory on the CD... then if you want it to be "pretty"
give the top folder a fancy icon.
On Thursday, January 23, 2003, at 05:00 AM, Mathewson wrote:
> I developed (between April and December 2002) an educational
> CD-ROM for Articulate Music entitled 'Listen Hear' with
> material supplied by two music teachers from Dundee.
>
> The standalone that was spun off for Mac OS 9 did not show
> jpegs either in OS 9 or within the Classic emulation
> environment in Mac OS X.
>
> I have also developed 2 wee phonetics programs for the
> University of st Andrews: jpegs do not show up when
> delivered from a server inside a NetBoot image (Jaguar).
>
> Richmond Mathewson
> ---------------------------------------------------------------
> Great Macintosh Products
> The MacLaunch Store!
> http://www.maclaunch.com/cgi-launch/store/agora.cgi
> ---------------------------------------------------------------
More information about the use-livecode
mailing list