Hi Scott,

Am 16.07.2014 um 23:27 schrieb Scott Rossi <[email protected]>:

> I think I'm missing something with regard to the Copy Files pane of the
> standalone builder.  What's the simplest way to include a custom folder of
> images along with a standalone?
> 
> I have a folder (named "sections") which contains a bunch of subfolders
> and images, that I've included in the standalone builder's Copy Files
> pane. It seems that the source location of the folder affects how LiveCode
> expects to reference the folder.
> 
> I've been using the function below to establish the custom folder as the
> defaultFolder at startup, but it seems each time I run the simulator I get
> a different result when checking the defaultFolder.
> 
> function resourcesPath
>    put fileName of this stack into thePath
>    set itemDel to "/"
>    put "sections/" into last item of thePath
>    return thePath
> end resourcesPath
> 
> 
> When building a standalone, I know the folder gets added to the
> standalone's bundle.  So I'm trying to figure out how to best place the
> "sections" folder in relation to the app, and set the defaultFolder
> appropriately, so that the images in the folder can be accessed reliably
> from desktop, mobile simulator, and standalone.
> 
> Any suggestions?  Using LC 6.6.2.

I use this feature to be able to use relative (to the stack) pathnames for 
images, sounds
and movies during development (-> set the filename of img 1 to 
"sections/a_picture.jpg"
or enter this in the inspector for the filename) and THAT feature makes sure 
this will also 
work in a standalone :-)

Hope that helps!

> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design

Best

Klaus

--
Klaus Major
http://www.major-k.de
[email protected]


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to