header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
amutha
Points:0
Posts:0

6/4/2010 8:51:21 PM

Title: label


i have list of labels in some container like vbox. i want to give bullet or some symbols and some some underlines like-------- that to label...how can i add those things for label in flex 3? can any one please help me......



1
Andrid
Points: 720
Posts:0
6/4/2010 10:52:28 PM



extend the label component and add the functionality to show icon with label in flex . here is the source code sample of extended label class in actionscript 3.0 and flex.


package
{
	import mx.controls.Label;
	import mx.controls.SWFLoader;
	
	public class IconLabel extends Label
	{
		public function IconLabel()
		{
			super();
			
		}
		override protected function createChildren():void  
		{  
			super.createChildren();
			//load icon
			var iconSwf:SWFLoader= new SWFLoader()
			iconSwf.load("images/tutorial.jpg")
			//size of icon
			iconSwf.width=20;
			iconSwf.height=20;
			this.addChild(iconSwf)
		}
	}
}



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+8 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions