• User Newbie

    problemi collegamento flash a file txt

    sto costruendo un sito in flash ed ho un problemino tecnico
    devo far in modo che il file swf sia collegato ad un file txt per rendere più veloce la modifica del testo.
    ho scritto il codice sotto e applicato al frame dove devo vederlo ma una volta che attivo il file swf è perfetto fino alla scena interessata poi si carica il file txt che rimane perenne in tutte le scene sia prima che dopo mentre io vorrei che si fermasse in quella scena
    gentilmente avreste la soluzione?

    function onText(success)
    {
    if (success)
    {
    title_txt.text = features_lv.loadTITLE;
    content_txt.text = features_lv.loadCONTENT;
    title_txt.setTextFormat(titleFormat);
    content_txt.setTextFormat(contentFormat);
    loadanime.gotoAndStop(1);
    }
    else
    {
    title_txt.setTextFormat(titleFormat);
    content_txt.setTextFormat(contentFormat);
    title_txt.text = "loading Title...";
    content_txt.text = "loading Content...";
    } // end else if
    } // End of the function
    this.createTextField("title_txt", this.getNextHighestDepth(), 80, 80, 700, 500);
    this.createTextField("content_txt", this.getNextHighestDepth(), 80, 80, 700, 500);
    title_txt.multiline = true;
    title_txt.wordWrap = true;
    content_txt.multiline = true;
    content_txt.wordWrap = true;
    titleFormat = new TextFormat();
    titleFormat.bold = true;
    titleFormat.font = "Arial";
    titleFormat.size = 20;
    titleFormat.color = 16777215;
    contentFormat = new TextFormat();
    contentFormat.font = "Arial";
    contentFormat.size = 15;
    contentFormat.color = 16777215;
    var features_lv = new LoadVars();
    features_lv.onLoad = onText;
    features_lv.load("Title_&_Content" + sectionNum + ".txt");
    stop ();