Flash e css max4001976, senza xml max4001976

« Older   Newer »
  Share  
max_400
view post Posted on 7/9/2010, 14:55     +1   -1




semplice collegamento tra flash e css
modificando il css si modificano tutti e 3 i filmati swf

nel foglio di stile 'stile.css'
CODICE
p {
font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
color: #FF0000;
font-size: 14;
}

a {
font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
color: #0000FF;
}

h1 {
font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
color: #FF6600;
font-size: 16;
font-weight: bold;
}

h2 {
font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
color: #666666;
font-size: 14;
font-style: italic;
}



in flash nel fotogramma di tutti e tre i fla
CODICE
var cssext = new TextField.StyleSheet();
cssext.load("stile.css");
cssext.onLoad = function(success) {
if (success) {
casella.styleSheet = cssext;
casella.htmlText = testo;
casella2.styleSheet = cssext;
casella2.htmlText= testo2;
}
}
testo="<p>Questa č la seconda pagina</p>"
testo2="<p>ciao</p>";


nel foglio di stile se cambiate il colore cambierą il colore del titolo di tutti e 3

CITAZIONE
p {
font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
color: #FF0000;
font-size: 14;
}



Download attachment
flash_css.rar ( Number of downloads: 25 )

 
Top
0 replies since 7/9/2010, 14:55   24 views
  Share