I wish to change the "filename" property of an image object upon command.

If the second file resides in the same folder as the original image file how
do I specify "relative filenames" in this type of use?
I have for testing purposes a simple timer function which sends the message
"starttheshow" to the target image object.
The target object has the following script:
on starttheshow
  set the filename of image "Foolscap" to
"/Resources/Images/tablecontents.png"
end starttheshow

When image "Foolscap" first appears on the card it has the filename
"/Resources/Images/flyleaf.png".
The revolution project stack is in the root of the folder containing
"/Resources/Images/flyleaf.png"

This is not working as evidenced by an empty grey image object after the
switch is supposed to occur.  Upon returning to the editing cursor tool and
clicking in the project a quit out to desktop with exception errors occurs.
This usually necessitates a restart of my PC (ME) to restore full
functionality.

I know I could swap cards in and out but I wish to keep the memory footprint
down and have found that dynamically switching image resources is a good way
to do this.

Regards
Mark MacKenzie
Chief Techno-Mage
Historical Treasures & Ancient Arts
www.digitalheritage.ca
[EMAIL PROTECTED]



Reply via email to