How to judge that loadMovie loads Progressive JPEG

xiaoxiao2021-03-06  56

Flash supports the external JPEG / SWF file, but does not support JPEG, which is gradually transmitted. However, the download process is the same as normal JPEG, but cannot be rendered after downloading, the result of the MC's _totalframes attribute is 0 (the original MC has been unload). Use this to determine whether the JPEG / SWF file is not valid.

Add Action on the MC to be loadMovie:

OnclipEvent (data) {

IF (! this._totalframes) {

Trace ("This Is Not A Supported JPEG / SWF File");

}

}

转载请注明原文地址:https://www.9cbs.com/read-82399.html

New Post(0)