Hi
i have a simple challenge, i want to
click a sentence in a paragraph,
turn the sentence blue (turn all other sentence black)
second click{
plays a sound based on sentence number 1,2,3,4 etc
then tunes the colour back to black }
so i have been trying ti use text flow, however i am having a problem with
turning the clicked sentence blue
an ideas or maybe a different approach ?
i was trying evt.target.colour = blue ;
protected function clickHandler(evt:FlowElementMouseEvent):void {
trace(evt);
}
<s:BorderContainer width="403" height="144">
<s:layout>
<s:ConstraintLayout/>
</s:layout>
<s:RichEditableText id="richTxt"
editable="false"
focusEnabled="false">
<s:textFlow>
<s:TextFlow click="clickHandler(event);" >
<s:p>
<s:linkHoverFormat>
<s:TextLayoutFormat color="#33CC00" textDecoration="underline"/>
</s:linkHoverFormat>
<s:linkNormalFormat>
<s:TextLayoutFormat color="#009900"/>
</s:linkNormalFormat>
<!--<s:a href="http://www.adobe.com">Adobe.com</s:a>-->
<s:a>this is just highlight text1</s:a> <!-- you can add a click handle to
each a tag as well -->
<s:a>this is just highlight text2</s:a>
<s:a>this is just highlight text3</s:a>
<s:a>this is just highlight text4</s:a>
</s:p>
</s:TextFlow>
</s:textFlow>
</s:RichEditableText>
</s:BorderContainer>
</s:Application>
________________________________
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.