New Reference Control, All images in folder

Chipp Walters chipp at chipp.com
Fri Feb 27 00:45:45 EST 2004


Thomas,

Don't worry, we'll get this figured out. Soundls like you haven't used 
referenced images and filepaths before?

Also, there are known limitations regarding selecting large number of 
objects inside the Rev IDE. That is probably why it's crashing.

I tried it on my WinXP machine and it worked exactly as expected. Some 
notes:

1) It will attempt to create a linked img for each file (whether it is a 
valid image file or not, so make sure and have your folder contain ONLY 
images and no other type of file.

2) As it says, it creates only references to images. To see where the 
reference is expected, open the properties palette for an image and 
check the filename property; OR

select an image
then type into the message box

put the filename of the selectedObject

If there is no filename associated then you used the
Import as Control-> All images in folder
instead of
New Referenced Control-> All images in folder

3) Important Note: the filename is relative to the defaultFolder path. 
So, if you want to make sure they link up correctly, then be sure and 
set the defaultFolder *before* opening the stack.

Create a new stack with a single button and set the script to:

on mouseUp
   answer folder "Choose a defaultFolder path"
   if it is empty then exit to top
   set the defaultfolder to it
end mouseUp

Now open your folder and you will see the images.

best,

Chipp



More information about the use-livecode mailing list