Salve a tutti
Sto usando ( per la prima volta) i css in flashMX04 e mi succede una cosa che non capisco.
Uso i css nella pagina dei link di un sito che sto facendo..
la prima volta che si clikka e si accede alla sezione dei link tutto ok.
Se poi si cambia sezione e si torna ai link, si blocca tutto
testando il main movie ( in cui viene caricato "link.swf" ) mi appare questo messaggio per me incomprensibile:
256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.
Qualcuno mi sa dire cosa devo andare a cercare???
Non so dove sbattere la testa...
Lo script che uso per i css è questo:
TextField.StyleSheet.prototype.transformTmp = TextField.StyleSheet.prototype.transform;
TextField.StyleSheet.prototype.transform = function(pObj) {
trace("cool");
for (var z in pObj) {
if (z == "margin") {
pObj.marginLeft = pObj.marginRight=pObj[z];
delete pObj[z];
break;
}
}
for (var z in pObj) {
trace(z+": "+pObj[z]);
}
return this.transformTmp(pObj);
};
ASSetPropFlags(TextField.StyleSheet.prototype, "transformTmp", 1);
for (var z in TextField.StyleSheet.prototype) {
trace(z+": "+TextField.StyleSheet.prototype[z]);
}
// StyleSheet style1Css;
styleCss = new TextField.StyleSheet();
styleCss.onLoad = function(pSucces) {
if (pSucces) {
trace("style 1 chargé !");
} else {
trace("problème de chargement des CSS");
}
};
styleCss.load("stylefmx2.css");
_root.wkbox.dest.styleSheet = styleCss;
_root.wkbox.dest.html = true;
_root.wkbox.dest.htmlText = "<p class='bob'></p>";
dati = new LoadVars();
dati.onLoad = function() {
_root.wkbox.dest.html = true;
_root.wkbox.dest.htmlText = dati.miotesto;
};
dati.load("link.txt");