the reason it does not work on the stage is because when you are setting it theat component is most prob not created. remember that v2 components take a frame (in some cases 2 frames ) to be created (love this about flex, you have a creationComplete event). i would suggest trying to poll opver frames (you can use doLater or an onterFrame (beacon is advised) to do this.
On 2/15/06, Judah <[EMAIL PROTECTED]> wrote: > > That might have worked by itself but the combo box didn't like it. I could > still use some help. > > I used XRAY specticles to find the label in the combobox but none of my > changes take effect outside of using the trace/exec window in XRAY. > > // this code works inside XRAY exec window but not on the stage oddly??? > cmb['text_mc']['label']['_y'] = -5; > cmb.focusTextField.label._y = -5 > cmb.text_mc.label._y = -5 > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Marc > Hoffman > Sent: Wednesday, February 15, 2006 5:47 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Making the text centered vertically in a combo > box > > I don't know how to properly fix it, but as a hack how about > appending a couple of line returns to the text? > > -Marc > > At 03:30 PM 2/15/2006, you wrote: > >I am using a small font and a small height in my combobox but the bottom > of > >the text is getting cut off. Does anyone know how to fix this? Or does > >someone know how to access the textfield in the combobox so I can move it > up > >a bit? > > > > > > > >Here is how to reproduce it: > > > > > > > >1. drag a combo to the stage and name it cmb > > > >2. in actionscript: > > > > > > > >cmb.setSize(cmb._width, 16); > > > >cmb.setStyle("fontSize", 10); > > > >cmb.addItem({label:"10"}); > > > >cmb.dropdown.rowHeight = 14; > > > > > > > >notice the text is cut off at the bottom! > > > > > > > >Judah > > > >_______________________________________________ > >[email protected] > >To change your subscription options or search the archive: > >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > >Brought to you by Fig Leaf Software > >Premier Authorized Adobe Consulting and Training > >http://www.figleaf.com > >http://training.figleaf.com > > > _______________________________________________ > [email protected] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > _______________________________________________ > [email protected] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- j:pn _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

