FLASH:a.swf用loadMovie()加载通过JS传过来的值的FLASH,怎么做进度条
展开全部
var
_mcl:MovieClipLoader
=
new
MovieClipLoader();trace("已加载:"+bytesLoaded/bytesTotal*100+"%");_mcl.loadClip("test.swf",
_mc);};this.onLoadProgress
=
function(_mc:MovieClip,
bytesLoaded:Number,
bytesTotal:Number)
{//创建一个MC来装载要加载的SWF或者图片_mcl.addListener(this);//=========加载进度显示==============this.createEmptyMovieClip("_mc",
2);//加载你要的SWF
_mcl:MovieClipLoader
=
new
MovieClipLoader();trace("已加载:"+bytesLoaded/bytesTotal*100+"%");_mcl.loadClip("test.swf",
_mc);};this.onLoadProgress
=
function(_mc:MovieClip,
bytesLoaded:Number,
bytesTotal:Number)
{//创建一个MC来装载要加载的SWF或者图片_mcl.addListener(this);//=========加载进度显示==============this.createEmptyMovieClip("_mc",
2);//加载你要的SWF
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询