Try Flexlib.  It has a really nice canvas button component.

http://code.google.com/p/*flexlib

*
On Thu, Jun 26, 2008 at 3:57 AM, David Pariente <[EMAIL PROTECTED]>
wrote:

>   Hello,
>
> Im making a list of elements in a VBox, each of them has a canvas, with a
> pic, a title and a text...
>
> Now i wanted to skin that canvas, but it doesn't skin properly, i guess
> canvas is just not skinable.
>
> I didn't know what to do so i used an apppcontrolbar as base of that
> canvas, and skinned the appcontrolbar. It skins good, but then the clickable
> options doesn't work...
>
> i'm a little lost, as most of what i do is AS3 in my projects...
>
> The point is that i wan a skinnable element that also can act as a button.
> here my code:
>
>     <mx:VBox x="10" y="117" height="166" width="427">
>             <mx:Repeater id="albums_repeater" dataProvider="{
> get_picasa_albums.lastResult.atom::entry }">
>             <mx:ApplicationControlBar width="406" height="52"
> styleName="Album" click="" useHandCursor="true" buttonMode="true">
>             <mx:Canvas width="406" height="52">
>                 <mx:Image id="thumbImg" source="{ (
> albums_repeater.currentItem as XML ).media::group.media::[EMAIL PROTECTED] }"
>                 click="/*onThumbClick(
> event.currentTarget.getRepeaterItem() )*/"
>                 buttonMode="true" useHandCursor="true"
>                 width="49" height="49"
>                 rollOverEffect="fadeIn" rollOutEffect="fadeOut"
>                 alpha="0.8"/>
>                 <mx:Text x="57" y="0" text="{ ( albums_repeater.currentItem
> as XML ).atom::title.text() }" width="317" height="19" fontWeight="bold"/>
>                 <mx:Text x="57" y="17" text="{ (
> albums_repeater.currentItem as XML ).atom::summary.text() }" width="317"
> height="35" fontWeight="normal"/>
>             </mx:Canvas>
>             </mx:ApplicationControlBar>
>
>             </mx:Repeater>
>
>         </mx:VBox>
>
> thnx to everyone.
>
> ------------------------------
>
> Enviado desde Correo 
> Yahoo!<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52431/*http://es.docs.yahoo.com/mail/overview/index.html>
> La bandeja de entrada más inteligente.
>  
>

Reply via email to