property factory

(r/o) factory factory;

Typ

Zugriff

This property returns a factory object for creating simple proxy objects such as rect, point, transferData, etc. For more information please see the factory class.
function onSample()
{
    var factory = shell.factory;
    var rect = (factory) ? factory.createRect(10, 10, 800, 600) : null;
    if (rect)
    {
        shell.print("x = " + rect.x);
        shell.print("y = " + rect.y);
        shell.print("w = " + rect.width);
        shell.print("h = " + rect.height);
    }
}