FORUMS: list search recent posts

fl.xmlui javascript what is going on, how does it work

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
martin minsel
fl.xmlui javascript what is going on, how does it work
on May 7, 2014 at 8:55:45 am


I created a javascript which loads up an UI in Flash. I would like to make a dropdown menu or a list, with a variable set of members. The items this dropdown list should depend on the selection made in another dropdown list.

I can call functions in the ui on create and when the focus was changed, but I cannot edit the control elements in the ui because I can't get the fl.xmlui.getControlElement method to work as described in the API:

To reproduce this I created the following XML exampleUI.xml:

and the following javascript exampleJS.jsfl:

var xmlUi = fl.getDocumentDOM().xmlPanel(fl.scriptURI + "/../exampleUI.xml");

If I execute exampleJS

the ui is started and the callback oncreate of the menulist is launched. This is the output of the fillList() function:

menuItem0 label = value =

testList label = value =

testLabel label = value =

testLabel = John menuItem0 = undefined testList =

I would have expected something like this:

menuItem0 label = herp value = derp

testList label = bla value = derp//currently selected item

testLabel label = testLabel value = John

testLabel = John menuItem0 = derp testList = derp/*currently selected item*/

I have no idea what I'm doing wrong. I would be very grateful for any kind of clue.



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved