25-04-2006, 15:58
|
|
|
חבר מתאריך: 10.02.05
הודעות: 2,246
|
|
הודעת שגיאה
מה הבעיה בקוד הבא:
קוד:
var cssStyles:TextField.styleSheet = new TextField.styleSheet();
cssStyles.load("styles/styles.css");
cssStyles.onLoad = function (success:Boolean) {
if (success) {
loadedInfo.styleSheet = cssStyles;
_level0.myLV.load("vars/ourHistory.txt");
}else {
loadedInfo.text = "error!";
}
}
ההודעה של השגיאה:
קוד:
**Error** Scene=Scene 1, layer=a, frame=1:Line 2: The class or interface 'TextField.styleSheet' could not be loaded.
var cssStyles:TextField.styleSheet = new TextField.styleSheet();
Total ActionScript Errors: 1 Reported Errors: 1
|