
Код AS3:
package com.flashgangsta {
import flash.display.MovieClip;
import flash.events.Event;
import fl.text.TLFTextField;
import flash.text.StyleSheet;
public class Aboutme extends MovieClip {
private var textfield:TLFTextField;
private var style:StyleSheet = new StyleSheet();
private var aboutmeText:String = "<font size='24'>Overview:</font><font size='14'><p><a href='http://facebook.com/' target='_blank'>Facebook</a> API</p></font>";
public function Aboutme() {
this.addEventListener( Event.ADDED_TO_STAGE, init );
}
private function init( event:Event ):void {
this.removeEventListener( Event.ADDED_TO_STAGE, init );
style.setStyle( "a:link", { color: "#3E3EFF", textDecoration: "underline" } ); //Это работает
style.setStyle( "a:hover", { color: "#00FF00", textDecoration: "underline" } ); //Это не работает
style.setStyle( "a:visited", { color:"#900060", textDecoration: "underline" } ); //Это тоже не работает
textfield = textfield_txt;
textfield.htmlText = aboutmeText;
textfield.styleSheet = style;
}
}
}
Вот собственно в комментах кода, суть вопроса. Что же за беда?
Всем спасибо.