Hi Edward...

Will this work for you ?

global gtheFolder

on preopenstack
   set itemDel to "/"
   put item 1 to -2 of (the effective fileName of this stack) & "/resources" 
into gtheFolder
   set the defaultfolder to gtheFolder
   
   --set the topleft of this stack to 30,30
   --set the defaultfolder to "resources/"
   set the decorations of this stack to "title,close"
   set the topleft of this stack to 0,0
   set the height of this stack to 750
   set the width of this stack to 1280
   set the loc of this stack to 640,400
   hide  menubar
end preopenstack
 
on openCard
   global pname
   set the filename of image 1 to "./resources/BKG.paneling.jpg"
   set the filename of image 2 to "./resources/deck_animation.gif"
   set the currenttime of player 1 to 0
   set the filename of player 1 to "./resources/river1"
   start player 1
end openCard

be well

Dixie

> From: [email protected]
> Date: Sat, 6 Nov 2010 04:21:14 -0500
> To: [email protected]
> Subject: standalone image problem
> 
> 
> I'm trying to build for both Mac OS X and windows, but I'm concentrating on 
> Mac until I get it to work. I have Snow Leopard installed.The folder 
> structure is ./Resources/map_animation.gif for a typical file I have included 
> the open stack code and the opencard code for one of the cards. I also will 
> include(attached) screen capture of the folders location . As I said the 
> stack works, ie. clik on the field or button and it will go to the next cd, 
> all the text files are read and shown but the images (gif & jpeg), audio, and 
> one video clip do not show. Since it is showing the files it looks like it is 
> finding the files in the folder but not showing them.
> 
> on preopenstack
>    --set the topleft of this stack to 30,30
>    set the defaultfolder to "resources/"
>    set the decorations of this stack to "title,close"
>    set the topleft of this stack to 0,0
>    set the height of this stack to 750
>    set the width of this stack to 1280
>    set the loc of this stack to 640,400
>    hide  menubar
> end preopenstack
> 
> on openCard
>    global pname
>    set the filename of image 1 to "resources/BKG.paneling.jpg"
>    set the filename of image 2 to "resources/deck_animation.gif"
>   set the currenttime of player 1 to 0
>   set the filename of player 1 to "resources/river1"
>   start player 1
> end openCard
> 
> 
> On Nov 5, 2010, at 11:02 AM, [email protected] wrote:
> 
> > 
> > Message: 2
> > Date: Thu, 4 Nov 2010 11:36:39 -0600
> > From: Devin Asay <[email protected]>
> > Subject: Re: image files in standalone
> > To: How to use Revolution <[email protected]>
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset="us-ascii"
> > 
> > 
> > On Nov 4, 2010, at 11:07 AM, edward cawley wrote:
> > 
> > 
> > Hello Edward,
> > 
> > What platform are you building for? What does your folder structure look 
> > like? Do you set the defaultFolder in order to locate the resource folder?
> > 
> > Devin
> > 
> > 
> > 
> > Devin Asay
> > Humanities Technology and Research Support Center
> > Brigham Young University
> > 
> _______________________________________________
> use-revolution mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
                                          
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to