我在我的CS4应用程序中使用JsFl来向2D艺术家提供一些反馈。我想要显示一个对话框,感谢JsFl,里面填满了列表框或树……我的问题是:我的对话框被显示了,但我的列表框却是空的(甚至连列表标题都不见了)。
下面是我对XML的JsFl调用:var result = fl.getDocumentDOM().xmlPanel(fl.configURI + "Commands/dialogbox.xml");
下面是我的XML文件:
<?xml version='1.0'?>
<dialog name='dialog' title='dialogbox' buttons='accept,cancel' width='300' height='400'>
<box>
<listbox>
<listhead>
<listheader label="Name"></listheader>
<listheader label="Age"></listheader>
<listheader label="City"></listheader>
</listhead>
<listcols>
<listcol flex="1"></listcol>
<listcol flex="1"></listcol>
<listcol flex="1"></listcol>
</listcols>
<listitem>
<listcell label="Julia"></listcell>
<listcell label="19"></listcell>
<listcell label="Boston"></listcell>
</listitem>
<listitem>
<listcell label="Sandra"></listcell>
<listcell label="25"></listcell>
<listcell label="London"></listcell>
</listitem>
<listitem>
<listcell label="Sharon"></listcell>
<listcell label="35"></listcell>
<listcell label="Paris"></listcell>
</listitem>
</listbox>
</box>
</dialog>
任何帮助都会很好:)
发布于 2011-02-26 11:50:57
您的XML没有为JSFL面板使用正确的词汇表。查看Extending Flash book。这是我所知道的唯一完整的XMLPanel参考资料。
发布于 2012-07-17 15:32:39
您可以下载Extending Flash MX 2004 book from here的示例文件。您将找到适用于Flash IDE的对话框设计器扩展。您可以使用该可视化构建器来构建对话框。
发布于 2012-07-21 13:03:29
Flash只使用文档中提到的XUL的一个子集:http://help.adobe.com/en_US/flash/cs/extend/WS5b3ccc516d4fbf351e63e3d118a9024f3f-7fea.html
找到支持的内容并不容易,我在这里找到了这个pdf,它列出了支持的子集:http://w3.id.tue.nl/fileadmin/id/objects/E-Atelier/Phidgets/Software/Flash/fl8_using_flash.pdf
https://stackoverflow.com/questions/3931993
复制相似问题