Fred DUFAU
unread,Dec 8, 2010, 11:42:43 AM12/8/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to VEGAS - ECMASCript & ActionScript OpenSource framework
re,
je n'arrive pas à trouver la solution pour centrer le label par
rapport au background, voici le code :
<code>
var init:Object =
{
theme : new FillGradientStyle( "linear" ,
[0xeeeeee, 0x999999] , [1, 1], [0, 255] , null, SpreadMethod.PAD ,
"rgb" , 0 ) ,
themeRollOver : new FillGradientStyle( "linear" ,
[0x999999, 0xeeeeee] , [1, 1], [0, 255] , null, SpreadMethod.PAD ,
"rgb" , 0 ) ,
themeSelected : new FillStyle( 0 ),
useGradientBox : true
} ;
var tabButtonStyle:LabelButtonStyle = new LabelButtonStyle(init);
tabButtonStyle.topLeftRadius = 5;
tabButtonStyle.topRightRadius = 5;
tabButtonStyle.color = 0x000000;
tabButtonStyle.textRollOverColor = 0x000000;
tabButtonStyle.textSelectedColor = 0xFFFFFF;
tabButtonStyle.gradientRotation = 90;
tabButtonStyle.gradientTranslation = new Point(0, 5);
var tabButton:LabelButton = new LabelButton(100, 24);
tabButton.index = pIndex;
tabButton.label = pTitle;
tabButton.style = tabButtonStyle;
tabButton.addEventListener( MouseEvent.CLICK, clickHandler );
tabButton.toggle = true;
tabButton.group = true;
tabButton.isFull = true;
tabButton.groupName = _buttonsGroupName;
_buttonsContainer.addChildAt(tabButton, pIndex );
</code>
Merci