Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 717 Bytes

File metadata and controls

33 lines (20 loc) · 717 Bytes

fl.xmlPanelFromString()

Availability

Adobe Animate.

Usage

fl.xmlPanelFromString(xmlString)

Parameters

xmlString A string containing XML that defines a dialog.

Returns

XMLUI.

Description

Method; Launches the XML To UI dialog from an XML-format string.

Example

The following example calls the xmlPanelFromString method:

var str = "<?xml version=\"1.0\"?><dialog id=\"scale-dialog\" title=\"Scale Selection\"
buttons=\"accept, cancel\"><grid><columns><column/><column/></columns><rows><row
align=\"center\"><label value=\"Scale y:\" control=\"yScale\"/><textbox
id=\"yScale\"/></row></rows></grid></dialog>";
var theDialog = fl.xmlPanelFromString(str);