Even with your fwd reference pathc, this case isn't working (in swf8 and dhtml), when there's just a plain <include> of a library .lzx (not .lzo) and there's a fwd reference that makes an anonymous instance class.
<canvas> <include href="classlib.lzx"/> </canvas> <library> <bar> <method name="anyoldmethod"> Debug.info("this method is just so that an anonymous instance class gets created"); </method> </bar> <!-- move this above previous def, and it works without error--> <class name="bar"><text>bar</text></class> </library> <a title="#0">ERROR @classlib.lzo≈10: reference to undefined variable '$lzc$class_bar'</a> <a title="#1">ERROR @classlib.lzo≈10: undefined object does not have a property 'attributes'</a> <a title="#2">WARNING @classlib.lzo≈10: reference to undefined property 'attributes'</a> <a title="#3">ERROR @classlib.lzo≈10: undefined object does not have a property '[]'</a>