Create controls on the fly in Accordion
hello,
i using accordion in project. have 3 tabs in accordion. application works follows :
when load browser, first tab of accordion displayed default showing combobox (named : combo1). have button on first tab (button1). purpose of button create child tabs in accordion. when press button should create second tab (this done). want create combo1 dynamically button1 move on, following tabs show me controls in previous tab. how do?
should create first control in first tab manually or can done dynamically well. note purpose of combo display values database table upon click.
pls
thx
i using accordion in project. have 3 tabs in accordion. application works follows :
when load browser, first tab of accordion displayed default showing combobox (named : combo1). have button on first tab (button1). purpose of button create child tabs in accordion. when press button should create second tab (this done). want create combo1 dynamically button1 move on, following tabs show me controls in previous tab. how do?
should create first control in first tab manually or can done dynamically well. note purpose of combo display values database table upon click.
pls
thx
use addchild() on accordion add buttonand combobox ...
ex:
var canvas:canvas = new canvas() //create canvas
var btn:button = new button()
btn.addeventlistener("click", addanother);
var cb:combobox = new combobox()
canvas.addchild(cb)
canvas.addchild(btn)
acc.addchild(cvs); //add accordion
hope helps
harish
ex:
var canvas:canvas = new canvas() //create canvas
var btn:button = new button()
btn.addeventlistener("click", addanother);
var cb:combobox = new combobox()
canvas.addchild(cb)
canvas.addchild(btn)
acc.addchild(cvs); //add accordion
hope helps
harish
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment