Ho creato un swf con all’interno un campo di testo scrollabile nel quale carico del testo da un file .html esterno.
A sua volta, carico questo file all’interno di un filmato più grande con loadMovieNum (1) con un menù laterale.
Ora il problema sorge perché all’interno del file html devo inserire un link che mi apra una altro filmato sempre sullo stesso livello, al posto del precedente.
Ho provato con function loadswf(){
loadMovieNum(“paesi_cont.swf”,1);
}; e relative codice:
Paesi dell’Unione Europea nel file html, ma non funziona.
Che altro potrei fare?
Sotto il codice con cui creo l’html?


var nWidth:Number = mcDisplayBackground._width;
var nHeight:Number = mcDisplayBackground._height;
var nX:Number = mcDisplayBackground._x;
var nY:Number = mcDisplayBackground._y;
var nInterval:Number;
this.createTextField("tArticle", this.getNextHighestDepth(), nX, nY, nWidth, nHeight);
tArticle.multiline = true;
tArticle.wordWrap = true;
tArticle.textColor = 0xFFFFFF;
tArticle.html = true;
tArticle.condenseWhite = true;

var lvArticleContent:LoadVars = new LoadVars();
lvArticleContent.onData = function(sHTMLData:String):Void {
tArticle.htmlText = sHTMLData;
};


var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.onLoad = function():Void {
tArticle.styleSheet = this;
lvArticleContent.load("estensione_brev_est.html");
};
cssStyles.load("styles.css");

mcScrollUp.onPress = function():Void {
nInterval = setInterval(scrollArticle, 50, "up");
};
mcScrollUp.onRelease = function():Void {
clearInterval(nInterval);
};
mcScrollDown.onPress = function():Void {
nInterval = setInterval(scrollArticle, 50, "down");
};
mcScrollDown.onRelease = function():Void {
clearInterval(nInterval);
};
function scrollArticle(sScrollDirection:String):Void {
if(sScrollDirection == "up") {
tarticle.scroll--;
}
else {
tarticle.scroll++;
}
updateAfterEvent();
}