Hi Kenneth & Simonjpalmer,
Thanks for your valuable reply, I did it in simple way, below is the code which
i have written
private function LoadComponent(licensetype:String):void
{
var screen:UIComponent;
switch (licensetype)
{
case "Manager": // Load Manager Component
screen = new Manager();
addChild(screen);
this.setStyle('backgroundColor','#9E9A41');
break;
case "Seller": // Load SellerComponent
screen = new Seller();
addChild(screen);
this.setStyle('backgroundColor','#408080');
break;
default:
// show default screen with information
break;
}
}
Thanks once again
Girish
Get the freedom to save as many mails as you wish. To know how, go to
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html