Thanks
I am trying to allow the user to click once on text, to hight
light, second click to play a sound cline based in the link
Links is black,
Click, turn blue
Click play sound clip, then turn lick back to black
So I want to change the color of the link to reflect the users first click,
second click plays the sound , then turns the click back to black
Sent from my iPad
> On 17 Mar 2014, at 16:38, "Alex Harui" <[email protected]> wrote:
>
> I'm not quite sure what you're trying to do, but if you've set an id on
> the content then linkNormalFormat should just be a property
>
> paragraphArea.linkNormalFormat
>
> -Alex
>
>> On 3/17/14 1:06 AM, "Scott Matheson" <[email protected]> wrote:
>>
>> Yes I am, can you do the same thing ?
>>
>> Sent from my iPhone
>>
>>> On 17 Mar 2014, at 04:04, "Alex Harui" <[email protected]> wrote:
>>>
>>> That's for mx:Text and other TextField based controls. It looks like
>>> you
>>> are using Spark and TLF.
>>>
>>> -Alex
>>>
>>>> On 3/16/14 1:53 PM, "Scott Matheson" <[email protected]> wrote:
>>>>
>>>> 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/WS2db454920e96a9e51e63e3d11c0bf69
>>>> 08
>>>> 4-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.
>>>
>>
>> ________________________________
>>
>> 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.
>
________________________________
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.