A canvas has no skin, only border and background.  You can subclass and add to 
it if you want.  Or you can consider its skin to be its content like the image 
and canvas.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of David 
Pariente
Sent: Thursday, June 26, 2008 7:13 AM
To: [email protected]
Subject: Re: [flexcoders] canvas with styles and clickable? how to??

 

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: [email protected]
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/ <http://code.google.com/p/> flexlib



On Thu, Jun 26, 2008 at 3:57 AM, David Pariente <xxmapachexx@ yahoo.es 
<mailto:[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: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! 
<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.

 

 

________________________________


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