<mx:Canvas click="doStuff( event )" styleName="myCanvasStyle" />


--- In flexcoders@yahoogroups.com, David Pariente <[EMAIL PROTECTED]> wrote:
>
> i will check it later...im interested in components...
> 
> but actually i saw what i mean in plenty of sites, so i guess is
just so difficult to achieve. Maybe canvas should be inside another
component...
> 
> thnx
> 
> 
> ----- Mensaje original ----
> De: Mark Doberenz <[EMAIL PROTECTED]>
> Para: flexcoders@yahoogroups.com
> Enviado: jueves, 26 de junio, 2008 14:36:00
> Asunto: Re: [flexcoders] canvas with styles and clickable? how to??
> 
> 
> 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 <xxmapachexx@
yahoo.es> 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:ApplicationContr olBar 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::thumbnail [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:ApplicationCont rolBar>
>             
>             </mx:Repeater>
>             
>         </mx:VBox>
> 
> thnx to everyone.
> 
> ________________________________
> 
> Enviado desde Correo Yahoo!
> La bandeja de entrada más inteligente.
>   
>     
> 
> 
>       ______________________________________________ 
> Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
>


Reply via email to