[flexcoders] Re: tilelist HighlightIndicator effects
hi i have tried everything you have said but i get an error. here is the code i use for clearing the highlightIndicator. the error i get is method marked override must override another method override protected function clearHighlightIndicator(indicator:Sprite, itemRenderer:IListItemRenderer):void{ if(highlightIndicator) Tweener.addTween(indicator,({alpha:0, time:1, transition:easeOutCubic, onComplete:function():void{Sprite(highlightIndicator).graphics.clear()}}));
RE: [flexcoders] Re: tilelist HighlightIndicator effects
Looks ok to me. If you're using FlexBuilder, clean the project and re-build. If that doesn't work, try a simple subclass with only that override Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Friday, February 13, 2009 7:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: tilelist HighlightIndicator effects hi i have tried everything you have said but i get an error. here is the code i use for clearing the highlightIndicator. the error i get is method marked override must override another method override protected function clearHighlightIndicator(indicator:Sprite, itemRenderer:IListItemRenderer):void{ if(highlightIndicator) Tweener.addTween(indicator,({alpha:0, time:1, transition:easeOutCubic, onComplete:function():void{Sprite(highlightIndicator).graphics.clear()}}));
Re: [flexcoders] Re: tilelist HighlightIndicator effects
find the method you are trying to override in the code and check its method signature... On Wed, Feb 11, 2009 at 9:12 AM, stinasius stinas...@yahoo.com wrote: what is the right parameter to use here? -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: tilelist HighlightIndicator effects
hi where can i find ListBase.as?
Re: [flexcoders] Re: tilelist HighlightIndicator effects
svn, online svn, somewhere on your harddrive if you have the sdk source google for online flex 3 svn or something similar On Tue, Feb 10, 2009 at 12:39 PM, stinasius stinas...@yahoo.com wrote: hi where can i find ListBase.as? -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: tilelist HighlightIndicator effects
i have seen a nice example on how to change hightlight indicator's alpha to 50% and adds a fade-in effect using Tweener: used it but i get this error 1120: access to undefined property tweener. here is my code import flash.display.Graphics; import flash.display.Sprite; import mx.controls.TileList; import mx.controls.listClasses.IListItemRenderer; import mx.controls.listClasses.ListBase; 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.x = x; indicator.y = y; indicator.alpha = 0; Tweener.addTween(indicator,({alpha:.5, time:1, transition:easeOutCubic})); }
Re: [flexcoders] Re: tilelist HighlightIndicator effects
missing tweener class / library? On Tue, Feb 10, 2009 at 1:18 PM, stinasius stinas...@yahoo.com wrote: i have seen a nice example on how to change hightlight indicator's alpha to 50% and adds a fade-in effect using Tweener: used it but i get this error 1120: access to undefined property tweener. here is my code import flash.display.Graphics; import flash.display.Sprite; import mx.controls.TileList; import mx.controls.listClasses.IListItemRenderer; import mx.controls.listClasses.ListBase; 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.x = x; indicator.y = y; indicator.alpha = 0; Tweener.addTween(indicator,({alpha:.5, time:1, transition:easeOutCubic})); } -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[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()}})); }
RE: [flexcoders] Re: tilelist HighlightIndicator effects
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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Tuesday, February 10, 2009 4:45 AM To: flexcoders@yahoogroups.com 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()}})); }
[flexcoders] Re: tilelist HighlightIndicator effects
--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote: hi where can i find ListBase.as? Click on your TileList MXML tag or the TileList import statement if you used as. Press F3. Now look for TileList extends ListBase in the class. Click ListBase. Press F3. HTH; Amy
[flexcoders] Re: tilelist HighlightIndicator effects
what is the right parameter to use here?
RE: [flexcoders] Re: tilelist HighlightIndicator effects
The example is in ListBase.as Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Sunday, February 08, 2009 10:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: tilelist HighlightIndicator effects any small example on how to this will be great. am new to actionscript. thanks
Re: [flexcoders] Re: tilelist HighlightIndicator effects
The following example shows how to apply effects on add and remove... Understanding this might help you towards what you are trying to do: http://livedocs.adobe.com/flex/3/html/help.html?content=createeffects_5.html On Mon, Feb 9, 2009 at 8:42 AM, stinasius stinas...@yahoo.com wrote: any small example on how to this will be great. am new to actionscript. thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: tilelist HighlightIndicator effects
http://listbase.as/ is broken. any step by step on how to archive this. here is my code for the highlightIndicator, how can i apply a tween effect to it. 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(); }
RE: [flexcoders] Re: tilelist HighlightIndicator effects
That wasn't a link. mx.controls.listClasses.LIstBase.as is a file in the open source for Flex. Look for selectionTween Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Sunday, February 08, 2009 10:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: tilelist HighlightIndicator effects http://listbase.as/ is broken. any step by step on how to archive this. here is my code for the highlightIndicator, how can i apply a tween effect to it. 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(); }
[flexcoders] Re: tilelist HighlightIndicator effects
any small example on how to this will be great. am new to actionscript. thanks