开发者

JsFl and listbox

开发者 https://www.devze.com 2023-01-19 19:40 出处:网络
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...

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>
            <li开发者_StackOverflow中文版stcell 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 :)


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.


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 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号