Ok, now I want that my dropdownlist sets the background of my composition. I have 3 layers, each one is a solid color (later on it will be other composition or a prerender background) and the idea is that when I choose one item in the dropdownlist one of the items shows and the other 2 hide.
This is what I have:
res = "group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
myGroup: Group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
myStaticText: StaticText{text:'StaticText Text'},\
myEditText: EditText{text:'EditText text'},\
},\
myDropDownList: DropDownList{properties:{items:['[ BACKGROUND ]', 'CYAN', 'AMARILLO', 'MAGENTA']}},\
},\
}"
// Adds resource string to panel
myPanel.grp = myPanel.add(res);
// DropDownList default selection
myPanel.grp.myDropDownList.selection = 0; /// Dropdown index starts at 0
// Assign function to UI elements
Anyone can help me with this?