You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Barry Gold <Ba...@ca.rr.com> on 2014/02/28 19:57:45 UTC

How can I get clickable text with no marking

I'm displaying a bunch of text(*), and I want to make one of the words 
clickable.  I tried using <s:a>, but that makes the word stand out: a 
different color and underlined.  I want the player to have to read the 
text and figure out which is the "magic word".  I've set the color to 
white (like all the other text in the frame) and set textDecoration to 
None, but it's still showing up in blue and underlined.

<s:a href="GHen.swf" id="linkMainMenu" fontSize="14"
     textDecoration="{TextDecoration.NONE}"
     color="0xffffff" click="gotoMainMenu()">magicword</s:a>

Is there a way to do this -- to make one word in a bunch of text 
clickable but not marked in any visible way?  Or should I format the 
page with HTML and convert it to an image, then overlay a button with 1% 
alpha in the position of the word? Or something else?

(*) I'm using a s:RichText control to format my text, but I'm willing to 
use something different if RichText can't do it.

RE: How can I get clickable text with no marking

Posted by Maurice Amsellem <ma...@systar.com>.
Thank you for the hint

-----Message d'origine-----
De : Alexander [mailto:alexanderscheibe@meetingsphere.com] 
Envoyé : lundi 3 mars 2014 11:48
À : users@flex.apache.org
Objet : Re: How can I get clickable text with no marking

If you want all links that way you can do this

<s:TextFlow>
      <s:linkNormalFormat>
           <s:TextLayoutFormat color="#000000" textDecoration="none"/>
      </s:linkNormalFormat>
      <s:p><s:a href="gotoMainMenu()">magicword</s:a></s:p>
</s:TextFlow>

You can also specify linkHoverFormat and linkActiveFormat, by default these reference the linkNormalFormat



On 28.02.2014 19:57, Barry Gold wrote:
> I'm displaying a bunch of text(*), and I want to make one of the words
> clickable.  I tried using <s:a>, but that makes the word stand out: a
> different color and underlined.  I want the player to have to read the
> text and figure out which is the "magic word".  I've set the color to
> white (like all the other text in the frame) and set textDecoration to
> None, but it's still showing up in blue and underlined.
>
> <s:a href="GHen.swf" id="linkMainMenu" fontSize="14"
>      textDecoration="{TextDecoration.NONE}"
>      color="0xffffff" click="gotoMainMenu()">magicword</s:a>
>
> Is there a way to do this -- to make one word in a bunch of text
> clickable but not marked in any visible way?  Or should I format the
> page with HTML and convert it to an image, then overlay a button with 1%
> alpha in the position of the word? Or something else?
>
> (*) I'm using a s:RichText control to format my text, but I'm willing to
> use something different if RichText can't do it.

Re: How can I get clickable text with no marking

Posted by Alexander <al...@meetingsphere.com>.
If you want all links that way you can do this

<s:TextFlow>
      <s:linkNormalFormat>
           <s:TextLayoutFormat color="#000000" textDecoration="none"/>
      </s:linkNormalFormat>
      <s:p><s:a href="gotoMainMenu()">magicword</s:a></s:p>
</s:TextFlow>

You can also specify linkHoverFormat and linkActiveFormat, by default 
these reference the linkNormalFormat



On 28.02.2014 19:57, Barry Gold wrote:
> I'm displaying a bunch of text(*), and I want to make one of the words
> clickable.  I tried using <s:a>, but that makes the word stand out: a
> different color and underlined.  I want the player to have to read the
> text and figure out which is the "magic word".  I've set the color to
> white (like all the other text in the frame) and set textDecoration to
> None, but it's still showing up in blue and underlined.
>
> <s:a href="GHen.swf" id="linkMainMenu" fontSize="14"
>      textDecoration="{TextDecoration.NONE}"
>      color="0xffffff" click="gotoMainMenu()">magicword</s:a>
>
> Is there a way to do this -- to make one word in a bunch of text
> clickable but not marked in any visible way?  Or should I format the
> page with HTML and convert it to an image, then overlay a button with 1%
> alpha in the position of the word? Or something else?
>
> (*) I'm using a s:RichText control to format my text, but I'm willing to
> use something different if RichText can't do it.

Re: How can I get clickable text with no marking

Posted by Scott Matheson <sm...@intralinks.com>.
If I remembers we made each line a hyper link formatted the links to look like text then added a handler to manager the click

I am on holiday now but can send an example next week

Sent from my iPhone

> On 28 Feb 2014, at 21:00, "Maurice Amsellem" <ma...@systar.com> wrote:
>
> I am not sure, but I think that RichText HTML does not support advanced html markup such as textDecoration.
>
> If you are using s:RichText,  you can try to format the inner LinkElement directly.
> You access the inner flow elements through RichText.textFlow property.
>
> Read the documentation on s:RichText and TLF to see how to do that.
>
> Maurice
>
>
> -----Message d'origine-----
> De : Barry Gold [mailto:BarryDGold@ca.rr.com]
> Envoyé : vendredi 28 février 2014 19:58
> À : flex mailing list
> Objet : How can I get clickable text with no marking
>
> I'm displaying a bunch of text(*), and I want to make one of the words clickable.  I tried using <s:a>, but that makes the word stand out: a different color and underlined.  I want the player to have to read the text and figure out which is the "magic word".  I've set the color to white (like all the other text in the frame) and set textDecoration to None, but it's still showing up in blue and underlined.
>
> <s:a href="GHen.swf" id="linkMainMenu" fontSize="14"
>     textDecoration="{TextDecoration.NONE}"
>     color="0xffffff" click="gotoMainMenu()">magicword</s:a>
>
> Is there a way to do this -- to make one word in a bunch of text clickable but not marked in any visible way?  Or should I format the page with HTML and convert it to an image, then overlay a button with 1% alpha in the position of the word? Or something else?
>
> (*) I'm using a s:RichText control to format my text, but I'm willing to use something different if RichText can't do it.

________________________________

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.

RE: How can I get clickable text with no marking

Posted by Maurice Amsellem <ma...@systar.com>.
I am not sure, but I think that RichText HTML does not support advanced html markup such as textDecoration.

If you are using s:RichText,  you can try to format the inner LinkElement directly.  
You access the inner flow elements through RichText.textFlow property.

Read the documentation on s:RichText and TLF to see how to do that.
 
Maurice 


-----Message d'origine-----
De : Barry Gold [mailto:BarryDGold@ca.rr.com] 
Envoyé : vendredi 28 février 2014 19:58
À : flex mailing list
Objet : How can I get clickable text with no marking

I'm displaying a bunch of text(*), and I want to make one of the words clickable.  I tried using <s:a>, but that makes the word stand out: a different color and underlined.  I want the player to have to read the text and figure out which is the "magic word".  I've set the color to white (like all the other text in the frame) and set textDecoration to None, but it's still showing up in blue and underlined.

<s:a href="GHen.swf" id="linkMainMenu" fontSize="14"
     textDecoration="{TextDecoration.NONE}"
     color="0xffffff" click="gotoMainMenu()">magicword</s:a>

Is there a way to do this -- to make one word in a bunch of text clickable but not marked in any visible way?  Or should I format the page with HTML and convert it to an image, then overlay a button with 1% alpha in the position of the word? Or something else?

(*) I'm using a s:RichText control to format my text, but I'm willing to use something different if RichText can't do it.