On 24/6/00 7:08 am, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> This seem so Simple I don't know what to make of it.  I noted in the Demo2.mc
> that the file path of graphics objects was just "demo/filename.jpg".  How was
> this done without having to do "Macintosh HD/Metacard folder/.....  "
> 
> I'm stuck using...
> 
> "Macintosh HD/blahblah/blahlbah/blah.jpg"
> 
> Problem is, what if someone had "Mac HD" instead of "Macintosh HD" or on the
> PC side, "C:" or "D:" or "E:"
> 
> I would prefer just to reference to subfolders where the original stack sits
> instead of starting with "Macintosh HD"
> 
> I'm just at a point where I'm trying to burn a 200meg kids app, cross
> platform and am stuck with this difference in filename attribute.

mainStack script:

on preOpenStack
  put fileName of this stack into tFilePath
  set the itemDel to "/"
  put empty into last item of tFilePath
  set the itemDel to comma
  set the directory to tFilePath
end preOpenStack

All relative paths to images will now work relative to the directory that
your stack is in.  (Note that you don't need to do this to find stacks by
relative path, only images, players, etc.).

Regards,

Kevin

> Scott Yang, M.D.
> Dept. of Pediatrics
> Kadena Medical Center

Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to