Re: how to add a time-out during trials
Posted: Wed Feb 27, 2013 6:25 am
Tell me the image "object" name.
Now lets look at where the images are stored (what folder in relation to the stack):
That will give you the path to where your stack is, then add your images into a folder next to the livecode file, say call it images
Now here is where I need the image object name:
That is how you can show your image L13.jpg or any of the others.
If you open the inspector for the image object what is it's name? Not the name of what is inside it.
The first image will always work because it's how you saved the file.
Simon
Now lets look at where the images are stored (what folder in relation to the stack):
Code: Select all
put the effective filename of this stack into tPathCode: Select all
global gPath
put the effective filename of this stack into gPath --lets make it a global
put gPath & "/images/" into gPathCode: Select all
set the filename of image "imageobjectName" to gPath & item 1 of line trial of fld "doglist"-- hmm in preopencard you say line aIf you open the inspector for the image object what is it's name? Not the name of what is inside it.
The first image will always work because it's how you saved the file.
Simon