View Full Version : Buttons Question
rustys27851
11-14-2006, 12:37 AM
On my new all-Flash site I need a long list of text links. I'm building the site right now and for the list of links, I just have them all as one text box. Do I need to have make every single link a button symbol in order to have it rollover? I know I can keep them as one body of text and put invisible buttons on a layer above them, but I don't think I can make them rollover that way. Is there a shortcut to doing this other than making 30 different text buttons?
Thanks :)
anonymous
11-14-2006, 02:53 PM
With static text, you can hilight a word (or all words) and simply insert the url in the URL box at the bottom of the textfield's properties...
Same with dynamic text but the html tab must be enabled also.
Or you can use a single asfunction (in the same manner), and pass different urls through a parameter.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15639
Or maybe through CSS.
wvxvw
11-15-2006, 04:00 AM
import TextField.StyleSheet;
var _css:StyleSheet = new StyleSheet();
_css.parseCSS("A {font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; } A:hover {font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: normal;}");
var _txt:TextField = _root.createTextField("_txt", 0, 5, 5, 200, 200);
with (_txt) {
html = true;
border = true;
borderColor = 0x000000;
styleSheet = _css;
htmlText = "<a href = 'www.mysite.com'>mysyte</a>";
}
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.