Hi
    I want to change the  <s:linkNormalFormat> when a user clicks on the the 
loins, in a itemreadser

I found an example 
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7d52.html

that looks the same as my cel, but i seem not to be able to set  
sentenceArea.styleSheet = ss;


protected function playClip(event:FlowElementMouseEvent):void

{

if (highlighted) {

event.preventDefault();

sentenceClip.play([this]);

} else {

  var ss:StyleSheet = new StyleSheet;

// Define an object for the non-hover state of the "a" tag.

var linkStyles:Object = new Object;

linkStyles.color = "#5AB9E1";

// Apply the newly defined styles.


ss.setStyle("a", linkStyles);

// Apply the StyleSheet to the TextArea control.

sentenceArea.styleSheet = ss;



highlighted = true;

}

}






<s:TextArea id="sentenceArea"

minWidth="0"

borderVisible="false"

textAlign="center"

horizontalCenter="0"

verticalCenter="0"

heightInLines="1"

editable="false"

styleName="WordsEnabled"

contentBackgroundColor="{_u.user.workAreaColour}">

<s:p id="paragraphArea">

<s:linkHoverFormat>

<s:TextLayoutFormat id="hoverlink" color="#5AB9E1" />

</s:linkHoverFormat>

<s:linkNormalFormat>

<s:TextLayoutFormat color="#646464"/>

</s:linkNormalFormat>

<s:a click="playClip(event)" >

{data.text.toString()}

</s:a>

</s:p>

</s:TextArea>


________________________________

Disclaimer: This electronic mail and any attachments are confidential and may 
be privileged. If you are not the intended recipient, please notify the sender 
immediately by replying to this email, and destroy all copies of this email and 
any attachments. Thank you.

Reply via email to