Page 2 of 2

Re: how to add a time-out during trials

Posted: Wed Feb 27, 2013 6:25 am
by Simon
Tell me the image "object" name.

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 tPath
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

Code: Select all

global gPath
put the effective filename of this stack into gPath --lets make it a global
put gPath & "/images/" into gPath
Now here is where I need the image object name:

Code: Select all

set the filename of image "imageobjectName" to gPath & item 1 of line trial of fld "doglist"-- hmm in preopencard you say line a
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

Re: how to add a time-out during trials

Posted: Thu Feb 28, 2013 1:50 am
by Simon
Here to clarify:
image
image
Need that name not the C:/blah/blah

Simon