All pastes #297634 Raw Edit

Something

public text v1 · immutable
#297634 ·published 2006-12-31 05:31 UTC
rendered paste body
function loadMyText(evt)
{
    var _loc2 = new LoadVars();
    _loc2.load("texto.txt");
    _loc2.onLoad = function (success)
    {
        if (success)
        {
            my_txt.htmlText = this.content;
        }
        else
        {
            trace ("Could not load text file.");
        } // end else if
    };
} // End of the function
loadMyText();
var flash_css = new TextField.StyleSheet();
flash_css.load("estilo.css");
flash_css.onLoad = function (success)
{
    if (success)
    {
        my_txt.styleSheet = flash_css;
    }
    else
    {
        trace ("Could not load CSS file.");
    } // end else if
};