standard.settings.selectorAudio elementButton elementCanvas elementController elementDropDown elementHtml elementImage elementMediaRecorder elementScale elementSelector elementText elementTextInput elementTooltip elementVideo elementVoiceRecorder elementYoutube element

getElement(id).settings.selector( selectorName )

or getElement(id).settings.selector( getSelector(selectorName) ) (since beta 0.3)

Since beta 0.3, Selector adds a .settings.selector command to all elements as another method for adding them to a selector.


newImage("square", "square.png")
newImage("triangle", "triangle.png")
newCanvas("shapes canvas", 825, 400)
    .settings.add(  0, 0, getImage("square") )
    .settings.add(425, 0, getImage("triangle") )

Adds two images side by side and waits for a click on either one of them.