-- Lingo syntaxwindowObjRef.image // JavaScript syntaxwindowObjRef.image;
Window property; refers to the image object of a window. Read-only.
When you get the image of a window, Director creates a reference to the image of the specified window. If you make changes to the image, the contents of the window change immediately.
If you plan to make a lot of changes to the image property, it is faster to copy the image property into a new image object using the Member object's duplicate() method, apply your changes to the new image object, and then set the original item's image to the new image object. For nonbitmap members, it is always faster to use the duplicate() method.
These statements place a reference to the image of the Stage into the variable myImage, and then put that image into the window named Flower:
-- Lingo syntax
myImage = _movie.stage.image
window("Flower").image = myImage
// JavaScript syntax
var myImage = _movie.stage.image;
window("Flower").image = myImage;