Hi,
I am creating image objects on the fly, depending on a directory
listing.
The directories can contain image files, but also Word files, XML
files, etc.
I just set the the filename of last image to the url of the file, for
imagefiles this works fine, but it gives an error for other files
try
set the filename of the last image to PATH
catch
set the text of the last image to (the text of image "noPreview"
of stack "mainStack")
end try
watch for wrapping, there are only 5 lines
___
use-revolution mailing list
use-revolution@lists.r
Too bad, no luck...
Warm regards,
Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com
On 3-jan-08, at 14:07, Shao Sean wrote:
try
set the filename of the last image to PATH
catch
set the text of the last image to (the text of i
'last' means the number property of the image equals the number of images.
Did you check if these are the same after assigning a non-image URL to the
image ? Perhaps Rev decides the number of images should not count the
erroneous one.
I guess you can name each image or check the id of each as you c
Some more information, I think I have found a receipe...
- First get the files of a folder and create an image in a stack for
each file.
- after creating an image, the variable "it" contains a full reference
to an object.
- next set the filepath of this last image to a file
- it is not possib