Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-08-2009, 11:50 PM   PM User | #1
ratamahata
New to the CF scene

 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ratamahata is an unknown quantity at this point
Unhappy questions about customizing the label of a combobox

i have been trying to translate the text that appear in an application that take the call from the "label"

i have use this code.

when i click on the combobox it actually display the information from "name" but once selected it show again the "label" i tried to fix that using looksListCombo.text = looksListCombo.selectedItem.name and that sort of fixed but it still show the "label" for a second.

is there anyway to show something that is not the label? or to mask it?

sorry if im not clear, if there is any question or help i will be happy to answer


Code:
<mx:ComboBox width="117" height="18" id="looksListCombo" 
change="timeCategoryChanged(); looksListCombo.text = looksListCombo.selectedItem.name;" >
				
                    <mx:dataProvider>
				<mx:Array>
					<mx:Object label="All Times"           	name="Todos los Tiempos"/>
					<mx:Object label="Day" 			name="Dia"/>
					<mx:Object label="Night" 		        name="Noche"/>
				</mx:Array>
		    </mx:dataProvider>
			 <mx:itemRenderer>
				<mx:Component>
		                    <mx:Box width="100%" height="100%">
						<mx:Label text = "{data.name}"/>
		                    </mx:Box>
				</mx:Component>
			</mx:itemRenderer>
</mx:ComboBox>
ratamahata is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:23 PM.


Advertisement
Log in to turn off these ads.