Hello!
I’m trying to get Flash to use CSS to display HTML texts. The body text should be Kroeger 05_56 (normal) and the link text should be Kroeger 05_66 (bold). It’s at the bottom of:
http://naoshige.probsd.net/work/pimpin
But it doesn’t work. The way I include the CSS must be wrong.
ActionScript Code:
[FONT=Courier New][LEFT]countTexts2[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
beenBefore3 = [COLOR=#000080]1[/COLOR];
[COLOR=#000000]function[/COLOR] action2COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
theNumber2 = [COLOR=#0000FF]random[/COLOR]COLOR=#000000[/COLOR]+[COLOR=#000080]1[/COLOR];
[COLOR=#0000FF]trace[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]var[/COLOR] features_lv2:[COLOR=#0000FF]LoadVars[/COLOR] = [COLOR=#000000]new[/COLOR] [COLOR=#0000FF]LoadVars[/COLOR]COLOR=#000000[/COLOR];
features_lv2.[COLOR=#0000FF]onLoad[/COLOR] = onText2;
features_lv2.[COLOR=#0000FF]load[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]function[/COLOR] onText2COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]COLOR=#000000[/COLOR] && [COLOR=#000000]([/COLOR]theNumber2 != beenBefore3[COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
styles.[COLOR=#0000FF]load[/COLOR]COLOR=#000000[/COLOR];
ad_text.[COLOR=#000080]styleSheet[/COLOR] = styles;
ad_text.[COLOR=#0000FF]html[/COLOR] = [COLOR=#000000]true[/COLOR];
ad_text.[COLOR=#0000FF]htmlText[/COLOR] = features_lv2.[COLOR=#000080]ad[/COLOR];
beenBefore3 = theNumber2;
[COLOR=#000000]}[/COLOR] [COLOR=#0000FF]else[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#808080]//[/COLOR]
[COLOR=#808080]// trace(“offline”);[/COLOR]
[COLOR=#808080]//[/COLOR]
action2COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]
style.css:
body {
font-family: kroeger_05_56;
font-size: 8px;
color: #FFF;
}
a {
font-family: kroeger_05_66;
font-decoration: underline;
}
a:hover {
color: #333;
}
ad_1.txt:
ad=TESTING 1, 2, 3 <a href=“http://test.com”>HEYA</a> SAY WORD NOW!
Thanks for bothering!