在加载as2之前获取swf文件的高度和宽度

时间:2015-09-23 04:58:05

标签: flash actionscript progressive-download

我正在实施渐进式加载swf文档文件。为此,我在加载文档时需要swf框架的高度和宽度。

我试过了

mclListener.onLoadProgress = function (target_mc, numBytesLoaded, numBytesTotal)
{
    swfwidth = target_mc.width;
    swfheight = target_mc.height;

};

但是这会返回值0.我知道这些值适用于mclListener.onLoadInit(),但我想要在加载文档时的宽度和高度。有什么办法吗?

0 个答案:

没有答案