I've had issues with this before that were solved by putting the style stuff
inside updateDisplayList.  I'm not sure if that's better or worse than
putting it in commitProperties.

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
http://www.cfwebtools.com
402-408-3733 x103
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Alex Harui
Sent: Wednesday, June 10, 2009 11:53 AM
To: [email protected]
Subject: RE: [flexcoders] Itemrenderers style?



Not sure what is going on, but the renderers get their styleNames set by
the List class.  I see you trying to set it in two other places as well.
Not sure who's going to win in that case.

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. <http://www.adobe.com/> 

Blog: http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui> 

 

From: [email protected] [mailto:[email protected]] On
Behalf Of flexaustin
Sent: Tuesday, June 09, 2009 3:51 PM
To: [email protected]
Subject: [flexcoders] Itemrenderers style?

 






Below is my custom item renderer, but the styles in my style source do
not show up when the itemrenderer is used in a datagrid. I have a
tootlip style and it shows up every where in the app, but inside the
itemrender.

TIA

<?xml version="1.0" encoding="utf-8"?>
<LinkButton xmlns="http://ns.adobe.com/mxml/2009
<http://ns.adobe.com/mxml/2009> "
styleName="callOutHeader"
color="#000000"
maxWidth="270" 
label="{da...@name}"
labelPlacement="left"
toolTip="IP Adress : {da...@ip}"
left="5" 
rollOver="{event.target.setStyle('textDecoration', 'underline') }"
rollOut="{event.target..setStyle('textDecoration', 'none')}">

<Style source="assets/style/style.css" />
<Script>
<![CDATA[
public function handleClick(e:Event):void{
navigateToURL( new URLRequest( true ? 'www.google.com' ), '_self' );
}

override protected function commitProperties():void{
this.styleName = this.className;
}
]]>
</Script>

</LinkButton>



No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.339 / Virus Database: 270.12.59/2165 - Release Date: 06/10/09
05:52:00


Reply via email to