To insert a new Image named Logo.bmp on the NormalObject State for an Image object named IntroGraph, use the following syntax:
ImagePath = <PUBLICATION_DIR> + "\\Logo.bmp"
IntroGraph.SetImage(ImagePath)
Note:
In Example 1 above, the pathname has been created using the System variable <SYSTEM_PUBLICATION_DIR> - this variable contains the pathname to the folder in which the publication is currently running. The name of the image after <SYSTEM_PUBLICATION_DIR> indicates that the image is stored in the same folder as the publication.
To set the same Image as Example 1 above on the Mouse Over Object State for a Button object named Option1, use the following syntax:
ImagePath = SYSTEM_PUBLICATION_DIR + "\\Logo.bmp"
newImage = IntroGraph.GetAppearance("Mouse Over")
newImage.SetImage(ImagePath)
see also:RemoveImage and GetAppearance