Показать сообщение отдельно
Старый 14.11.2006, 23:37
Котяра2006 вне форума Посмотреть профиль Отправить личное сообщение для Котяра2006 Найти все сообщения от Котяра2006
  № 6  
Ответить с цитированием
Котяра2006

Регистрация: Jun 2006
Сообщений: 274
Там в первом кадре просто вот такой код стоит, я так понял аплет по урл подгружается. А как нужный урл задать или вообще сделать чтобы аплет из библиотеки грузился или ещё что-то?

Код:
Stage.scaleMode = "noScale";
Stage.showMenu = false;
Stage.align = "TL";
this.createEmptyMovieClip("holder_mc", this.getNextHighestDepth());
holder_mc.loadMovie(url);
this.createEmptyMovieClip("progress_mc", this.getNextHighestDepth());
progress_mc.beginFill(1812146);
progress_mc.lineTo(Stage.width, 0);
progress_mc.lineTo(Stage.width, Stage.height);
progress_mc.lineTo(0, Stage.height);
progress_mc.lineTo(0, 0);
progress_mc.endFill();
progress_mc._width = 1;
x = Stage.width / 2 - 50;
y = Stage.height / 2 - 15;
this.createTextField("percent_txt", this.getNextHighestDepth(), x, y, 100, 30);
tf = new TextFormat();
tf.align = "center";
tf.font = "Verdana";
tf.size = 20;
percent_txt.setNewTextFormat(tf);
percent_txt.selectable = false;
progress_mc.onEnterFrame = function ()
{
    var _l2 = this._parent.holder_mc.getBytesLoaded() / this._parent.holder_mc.getBytesTotal() * 100;
    if (isNaN(_l2))
    {
        _l2 = 0;
    } // end if
    var _l3 = Stage.width / 100 * _l2;
    this._width = this._width + (_l3 - this._width) / 6;
    var _l4 = Math.ceil(this._width / Stage.width * _l2);
    this._parent.percent_txt.text = _l4 + "%";
    if (Math.ceil(this._width) == Stage.width)
    {
        if (this._parent.percent_txt != undefined)
        {
            this._parent.percent_txt.removeTextField();
        } // end if
        this._parent.holder_mc._visible = true;
        this._alpha = this._alpha - 10;
        if (this._alpha <= 0)
        {
            this.removeMovieClip();
        } // end if
    }
    else
    {
        this._parent.holder_mc._visible = false;
    } // end if
};