The individual buttons on a ButtonBar are children of the ButtonBar.
Therefore, you would play a Zoom effect specifying a child as the target.
Here is an example:
<mx:Zoom id="myZoom" />
<mx:ButtonBar id="bb" horizontalGap="5" itemClick="clickHandler(event);">
<mx:dataProvider> <mx:Array>
<mx:String>Flash</mx:String>
<mx:String>Director</mx:String>
<mx:String>Dreamweaver</mx:String>
<mx:String>ColdFusion</mx:String> </mx:Array>
</mx:dataProvider> </mx:ButtonBar> <mx:Button label="play effect"
click="myZoom.play([bb.getChildAt(1)])" />
If you want to play an effect on the click on one of the buttons, you can
also use the relatedObject property of the itemClick. For example, using the
ButtonBar above, you might have:
private function clickHandler(event:ItemClickEvent):void {
myZoom.play([event.relatedObject]); }
Good luck,
Joan
On 5/17/07 9:43 PM, "chen_saraf" <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
> I'm kind of new to Flex :)
> What would be the way to show zoom effect on buttons contains withing
> ButtonBar?
> Thanks,
> Ken
>
>
>