A few things you could do. continue to use mx:Text, and just use <a> links within. You'll need to find the specific syntax for calling an asfunction (its something like <a href="asfunction:doThing">) but i cant find the exact syntax now.

It seems, that although probably not supported, you really can use html within links. Try this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; creationComplete="start()">
<mx:Link id="tx" label="ignore this"/>
<mx:Script>
<![CDATA[
function start(){
tx.labelPath.html=true;
tx.labelPath.htmlText = "<b>hi</b> there";
}
]]>
</mx:Script>
</mx:Application>


Again, you probably already know the dangers of running unsupported code, but needless to say, it could cause all sorts of evil in the world...



At 04:35 PM 2/11/2005, you wrote:
I am posed with a requirement where a display of mixed fontweights and fonts is needed. For that reason, I chose to use a mx:Text control via its htmlText property, applying the appropriate HTML to accomplish this. More specifically, the mx:Text box was supposed to contain a company name on the first line in bold face, and a person's name on the second line in italics.

But then, I was told that both of them were supposed to be hyperlinks that FLEX was supposed to respond to!

The only way I know of creating a link which Flex can respond to is via the mx:Link control. However, if I go that route, I lose the ability to display mixed fontweights and fonts.

Can anyone give me any suggestions on how to accomplish these two things:

1) Be able to display mixed fonts and fontweights, AND
2) Be able to have links in the display text that FLEX (not the browser) will respond to.


Thanks.

Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=1297kj439/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1108246352/A=2532114/R=2/SIG=12k110s1u/*http://clk.atdmt.com/NFX/go/yhxxxnfx0020000014nfx/direct/01/&time=1108159952538246>
[]



----------
Yahoo! Groups Links
* To visit your group on the web, go to:
* <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/


*
* To unsubscribe from this group, send an email to:
* <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]


*
* Your use of Yahoo! Groups is subject to the <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.





Reply via email to