standalone image problem

edward cawley etcawley at fastmail.fm
Sat Nov 6 05:21:14 EDT 2010


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, use-revolution-request at lists.runrev.com wrote:

> 
> Message: 2
> Date: Thu, 4 Nov 2010 11:36:39 -0600
> From: Devin Asay <devin_asay at byu.edu>
> Subject: Re: image files in standalone
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <3B2C6B00-1E04-4FB2-A629-D9A0F3785234 at byu.edu>
> 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
> 



More information about the use-livecode mailing list