皮皮网
皮皮网

【injectfix 源码】【android源码加入supersu】【thinkphp 分销系统源码】动态loading源码_动态加载原理

来源:php文件搜索源码 发表时间:2024-11-28 03:41:30

1.网页播放flash的动态进度条代码?
2.一看就会的超实用小组件之LoadingButton
3.源码级解析,搞懂 React 动态加载(上) —— React Loadable
4.一个绚丽的码动injectfix 源码loading动效分析与实现!
5.求一个flash loading源代码

动态loading源码_动态加载原理

网页播放flash的态加android源码加入supersu进度条代码?

       var myLoading:MovieClip;

       var loadInfo:MovieClip;

       var _lineBgcolor = "0x";

       var _lineColor = "0xFF";

       var _lineLen:Number = ;

       var _lineH:Number = 3;

       var _txtColor; var _txtAlign:String = "center";

       var tb:Number;

       var txtFormat:TextFormat = new TextFormat

       ("Arial", null, 0xffffff, true); myLoading = _root.createEmptyMovieClip("myLoading",); //进度条

       loadInfo = myLoading.createEmptyMovieClip("line", );

       loadInfo.lineStyle(1, _lineColor, );

       loadInfo.moveTo(0, 0);

       loadInfo.lineTo(_lineLen, 0);

       loadInfo.lineTo(_lineLen, _lineH);

       loadInfo.lineTo(0, _lineH);

       loadInfo.lineTo(0, 0); //进度显示文本

       loadInfo.createTextField("txt", , 0, 0, _lineLen, );

       loadInfo.txt.autoSize = _txtAlign; //设置进度条的位置(居中于主场景)

       loadInfo._x = (Stage.width - _lineLen)/2;

       loadInfo._y = Stage.height/2; //获得影片大小并stop,再onEnterFrame

       tb = _root.getBytesTotal();

       _root.stop();

       myLoading.onEnterFrame = function(){

        var lb:Number = _root.getBytesLoaded();

        var percent:Number = Math.round(lb/tb*);

        loadInfo.txt.text = percent+"%";

        loadInfo.txt.setTextFormat(txtFormat);

        loadInfo.lineStyle(_lineH,载原thinkphp 分销系统源码 _lineBgcolor, );

        loadInfo.moveTo(0, _lineH/2);

        loadInfo.lineTo(percent*_lineLen/, _lineH/2);

        if (percent == ) {

        _root.play();

        delete this.onEnterFrame;

        loadInfo.clear();

        loadInfo.txt.text = "";

        }

       }

       

相关栏目:娱乐