kkouw
%Europe/Berlin %541 %2009, 13:59
ik heb in flash een dynamic textfield (instancename = theText) en daarin laad ik mijn xml bestand. Dat gaat helemaal goed.
Ik wil mijn CSS daar ook aan koppelen. Maar als ik het bekijk zie ik dat hij die stijl helemaal niet overneemt.
Ik heb het volgende in mijn AS staan:
stijl = new TextField.StyleSheet();
stijl.load("icons.css");
theText.styleSheet = stijl;
CSS:
@charset "utf-8";
/* CSS Document */
header {
font-family: Verdana;
font-size: 20px;
font-weight: bold;
color: #FFFFFF;
display: block;
}
content {
font-family: Arial;
font-size: 12px;
color: #999999;
display: block;
}
Een regel uit mijn xml bestand:
<icons>
<icon image="icon1.png" header="Dit is de titel" content="Dit is standaard tekst"/>
Wat doe ik fout?
Ik wil mijn CSS daar ook aan koppelen. Maar als ik het bekijk zie ik dat hij die stijl helemaal niet overneemt.
Ik heb het volgende in mijn AS staan:
stijl = new TextField.StyleSheet();
stijl.load("icons.css");
theText.styleSheet = stijl;
CSS:
@charset "utf-8";
/* CSS Document */
header {
font-family: Verdana;
font-size: 20px;
font-weight: bold;
color: #FFFFFF;
display: block;
}
content {
font-family: Arial;
font-size: 12px;
color: #999999;
display: block;
}
Een regel uit mijn xml bestand:
<icons>
<icon image="icon1.png" header="Dit is de titel" content="Dit is standaard tekst"/>
Wat doe ik fout?