Flash ComboBox component - getting data without using selectedItem...


i'm using flash combobox component (not flex component) simple app, when data set data provider labels of drop down list, want data , adjust height of each list item based on amount of text.

 

i know can use [combobox.dropdown.rowheight = 40;] adjust each list item's height, i'm trying figure out if can assign unique height each list item.

 

from i've found , seen far, fl.controls.combobox not have data property, , way associated data via use of selectedindex or selecteditem of combobox.

 

there way data of list item without selecting it? or there way fake selectedindex?(i'm not sure means )

 

if know if it's not possible list item's data without using selecteditem, kind let me know, , kill agony of pursuing wild goosechase .

 

thanks you,

~chipleh

found part of answer:

 

for(var i:int = 0;i<thedataprovider.length;i++)

{

        trace("----------------->label = " + thedataprovider[i].label);

        trace("----------------->data = " + thedataprovider[i].data);

        trace("acb1.dropdown.getitemat(i) = "+ acb1.dropdown.getitemat(i));              

}

 

now i'm looking setting height of: acb1.dropdown.getitemat(i);

 

what objecy within listitem target in order set individual height? 

 

thanks reading,

~chipleh



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?