Text-based hyperlinking in flash MX. how?

hello!

I’m completely new to flash stuff… I saw the tutorial which is made by kirupa about creating a hyperlink in flash mx… and I did it… but how can I create a text-based hyperlink… like the normal HTML A.Links? and how can I use the normal font “for example: verdana type”…in flash and make it looks like normal HTML text without smoothing , etc. effects…

Sorry for my newbie questions…but I’m so new to this, and wanna create a flash home page.

Thanks everyone,
Regards,
Variables

Make a text using the text tool then, convert that text into a button, add the actionscript. And you’re done :slight_smile:

*Originally posted by lairusi *
**Make a text using the text tool then, convert that text into a button, add the actionscript. And you’re done :slight_smile: **

I tried that… but the hyperlinking won’t cover all text-area… it will only cover the points of each charactor…and not the whole frame of this text…that’s why I asked for support here…

Thanks lairusi,
regards!

make a textbox with an instance name ‘myFeild’, and have this actionscript on the timeline
[AS]myField.htmlText = “<a href=“www.kirupa.com”>Kirupa</a>”[/AS] or something like that… and remember to have html rendering enabled…

*Originally posted by ahmed *
**make a textbox with an instance name ‘myFeild’, and have this actionscript on the timeline
[AS]myField.htmlText = “<a href="www.kirupa.com">Kirupa</a>”[/AS] or something like that **

HTML rendering, ehm… I was forgetting that!
I appreciate your kind help, it works finally! is this way I can add any html tags to flash? :wink:

Thanks ahmed,
Regards!

It outputs this " Kirupa" as a link…but still the “a” charactor isn’t affected with hyperlinking… and only “kirup” is affected!

why? i wonder…

thanks!
regards

eek… i used this line, the same one i posted above, and it works fine… are you sure the field is wide enough to hold ‘kirupa’…
[AS]myField.htmlText = “<a href="www.kirupa.com">Kirupa</a>”[/AS]
plus, you cant use all html tag

HTML tags and entities supported by Flash (optional tag attributes in brackets):
<**a href=“url”>

<**b>
<**font [color=“#xxxxxx”] [face=“Type Face”] [size=“Type Size”]>

<**I>
<**p [align=“left”|“right”|“center”]>

<**u>
&**lt; (<, less-than sign)
&**gt; (>, greater-than sign)

&**amp; (&, ampersand)
&**quot; (", double-quote)
&**apos; (', apostrophe)