property src

(r/w) string src;

Typ

Zugriff

This property sets or returns the src attribute. The property will only return the source if it was set as a string. The property can be set to a stream of the bitmap image resource to load.
function onTest()
{
    var library = shell.getLibrary("../theme/toolkit.box");
    if (library)
    {
        var bitmap = library.getResourceById("myBmp");
        if (bitmap)
        {
            // Change the source.
            bitmap.src = "../content/images/img1.png";
        }
    }
}