1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
on (release)
{
AtelierMC.play();
atelierBox._visible=true;
//scroll_bar._visible=true;
myData = new LoadVars();
myData.onLoad = function(success) {
if (success) {
//myText_txt.text = this.myVariable;
atelierBox.html=true;
atelierBox.htmlText = this.myVariable;
}
else {
atelierBox.htmlText = "Le texte ne peut s'afficher, contactez le webmestre";
}}
var styles:TextField.StyleSheet = new TextField.StyleSheet();
styles.onLoad = function(success:Boolean):Void {
if (success) {
// afficher les noms de style.
trace(this.getStyleNames());
} else {
trace("Error loading CSS file.");
}
};
styles.load("styles.css");
atelierBox.styleSheet = styles;
myData.load("atelierBox.txt");
} |