You have the wrong parameter list for clearHighlightIndicator

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of stinasius
Sent: Tuesday, February 10, 2009 4:45 AM
To: [email protected]
Subject: [flexcoders] Re: tilelist HighlightIndicator effects


ok i have gotten it to work, small problem though, the clear function
gives me error, as in when i rollout i would like to apply a same
effect except this time the alpha is 0. here is my code so far. the
error i get is "1020: method marked override must override another method"

override protected function drawHighlightIndicator(indicator:Sprite,
x:Number, y:Number, width:Number, height:Number, color:uint,
itemRenderer:IListItemRenderer):void{
var g:Graphics = indicator.graphics;
g.clear();
g.beginFill(0x3f4c6b);
g.lineStyle(1,0x6e7c9d);
g.drawRoundRect(x,y,itemRenderer.width,height,15,15);
g.endFill();
indicator.alpha = 0;
Tweener.addTween(indicator,({alpha:.8, time:1,
transition:"easeOutCubic"}));
}

override protected function
clearHighlightIndicator(indicator:Sprite,x:Number, y:Number,
width:Number, height:Number, color:uint,
itemRenderer:IListItemRenderer):void{
if(highlightIndicator)
Tweener.addTween(indicator,({alpha:0, time:1,
transition:"easeOutCubic",
onComplete:function():void{Sprite(highlightIndicator).graphics.clear()}}));
}

Reply via email to