odd directory behaviour in DreamCard

Richard Gaskin ambassador at fourthworld.com
Mon Sep 13 21:54:14 EDT 2004


Dr.John R.Vokey wrote:

> The following code works (and has always worked) in Metacard (MC), and 
> Revolution (RR), both as a stack and as a standalone (and even over 
> OSs), but not in DreamCard:
> 
> In the card script of the first card:
> 
> global thePath
> 
> on openCard
>   --
>   --  Get/Set Paths
>   --
>   put the filename of this stack into thePath
>   set the itemdelimiter to "/"
>   delete the last item of thePath
>   -- (other irrelevant stuff deleted)
>   set the filename of image "Test" to thePath&"/test.jpg"
>   -- (other irrelevant stuff deleted)
> end openCard
> 
> In MC and RR, the path to the image is correctly specified and the image 
> appears, but not in DreamCard.  Tracking it down, DreamCard sets the 
> path to the image as "/test.jpg", completely ignoring the global 
> thePath.  Why would DreamCard not set the global thePath?

Is the stack downloaded or cloned?  In those cases the stack would have 
no fileName, giving the result described.

Otherwise, I haven't a clue.  And even then, the behavior should not 
differ from Rev or MC.

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com


More information about the use-livecode mailing list