JsFl 和列表框
我在 Flash 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>
任何帮助都会很好:)
I'm using JsFl in my Flash CS4 application to provide some feedback to our 2D artists.
I'd like to display a dialog box, thanks to JsFl, filled with a listbox or a tree...
And my problem is : my dialog box is displayed but my listbox is freaking empty (even listheaders are missing).
here is my JsFl call to my XML:var result = fl.getDocumentDOM().xmlPanel(fl.configURI + "Commands/dialogbox.xml");
and here is my XML file:
<?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>
Any help would be nice :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的 XML 未使用 JSFL 面板的正确词汇。查看扩展 Flash 书籍。这是我所知道的唯一完整的 XMLPanel 参考。
Your XML is not using the proper vocabulary for a JSFL panel. Check out Extending Flash book. It's the only full XMLPanel reference that I know of.
您可以从此处下载《扩展 Flash MX 2004》一书的示例文件。您将找到 Flash IDE 的对话框设计器扩展。您可以使用该可视化生成器来构建对话框。
You can download sample files of Extending Flash MX 2004 book from here. You will find Dialog Designer extension for Flash IDE. You can use that visual builder to build your dialog.
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
Flash only uses a subset of XUL as mentioned in the docs here: http://help.adobe.com/en_US/flash/cs/extend/WS5b3ccc516d4fbf351e63e3d118a9024f3f-7fea.html
Finding what is supported is not as easy, I found this pdf here that lists the supported subset:
http://w3.id.tue.nl/fileadmin/id/objects/E-Atelier/Phidgets/Software/Flash/fl8_using_flash.pdf