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......
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)
}
}
}