[thelist] Flash TIP: _level properties

Ben Morrison ben.morrison at dogstardesign.co.uk
Tue Jul 29 07:05:52 CDT 2003


On 29/7/03 11:46 am, "Christopher Joseph" <christopher at ideadesigners.com>
wrote:

> ...eventually it was determined that the movie was not loaded quickly
> enough to instantiate and populate the _level1 properties. The test was
> amended to that below which fixed the issue:
>
> <code>
> (_level1._framesloaded<_level1._totalframes || _level1._framesloaded ==
> undefined || _level1._totalframes == undefined)
> </code>

You should use getBytes and check to see wether the bytes are equal to and
also greater than 0.


onClipEvent (load) {
    total = _parent.getBytesTotal();
}
onClipEvent (enterFrame) {
    loaded = _parent.getBytesLoaded();
    if (loaded == total && total>0) {
        _parent.gotoAndStop(2);
    }
}

Benjer




More information about the thelist mailing list