opensubscriber
   Find in this group all groups
 
Unknown more information…

u : use-revolution@lists.runrev.com 11 November 2010 • 5:07AM -0500

Re: standalone image problem
by edward cawley

REPLY TO AUTHOR
 
REPLY TO GROUP




After thirty odd years of programing in HyperCard/MetaCard/Revolution/LiveCode it's nice to feel like a newbe again, it means I'm still learning. Thanks for all the suggestions, I finally realized that I had forgotten to check the "copy referenced files" box so the media files , the <filenames> were not placed in the app bundle.
The media-images, audio files and a video are all shown. But I still have a problem. I have a number of text files which are loaded successively in a field on a card. None of them load in the standalone. They do not get loaded into the bundle since they are not filenames.
This script work fine on the desktop:
on putinfo
   global tt,pname,iiname,az,ttt,z,cdname1,zz
  put  param (1)  into az
  put param (2) into tt
  put tt&az into ttt
  put iiname &ttt into z
    put "file:"& z  into zz
  put URL zz into field "info" on cd tt
end putinfo

on putHinfo
  global iiname,az,tt,aaz,ttt,zz
  put  param(1)  into az
  put param(2) into tt
  put az into ttt
  put iiname & ttt into aaz
   put "file:"&aaz  into zz
  put URL zz into field "habinfo" on cd tt
end putHinfo
az & tt are passed from opencard or button code. Every thing else load so it seems to be finding all the files. That doesn't seem to be the problem. Any other ideas? How do I get the text files in the bundle?

>
> ------------------------------
>
> Message: 13
> Date: Sat, 6 Nov 2010 04:21:14 -0500
> From: edward cawley <etcawley@fast...>
> Subject: standalone image problem
> To: use-revolution@list...
> Message-ID: <2E81E117-5C60-4F27-80C3-57D6686A06D1@fast...>
> Content-Type: text/plain; charset=us-ascii
>
>
> 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@list... wrote:
>
>
> Message: 14
> Date: Sat, 6 Nov 2010 10:05:28 +0000
> From: John Dixon <dixonja@hotm...>
> Subject: RE: standalone image problem
> To: <use-revolution@list...>
> Message-ID: <bay157-w13539EB24F4805441FCB1AED4D0@phx....>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> 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
>>

_______________________________________________
use-revolution mailing list
use-revolution@list...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.