On 2006-05-13, at 18:08 PDT, Philip Romanik wrote:
> Most errors and warnings are now gone when running /test/smoke/
> simple.lzx.
> I'd like some advice on the few remaining errors. The line numbers
> I give
> won't be exact for you because the files have been modified).
>
> Thanks!
>
> Phil
>
>
> ----------
> Error #1: LzKeys.as
>
> The last line of the file generates an error,
> services/LzKeys.as:494: reference to undefined property 'Mouse'
>
> _root.Mouse.addListener(mouseListener);
Just remove the `_root.` a) There should not be any need to use
_root any more. b) Mouse is not a property of _root, it is a magic
built-in to the Flash runtime.
> ----------
> Error #2: UserClass.as
>
> core/UserClass.as:30 reference to undefined variable 'LzTrait'
>
> var traitList = LzTrait.processTraitList(classobj.attrs.traits);
Jim will have to answer this, if you are sure you are p4 sync-ed
_and_ p4 resolve-d. Henry recently integrated from dev, perhaps you
did not resolve?
> ----------
> Error #3: LzNode.as
>
> } else if (!('dependencies' in rp)) {
> this._a = rp ;
> this._a(); <<- core/LzNode.as:936: call to non-method '_a' (type
> 'object')
> }
Bleah. A ref can get overridden in the constructor and set to
_ignoreAttribute. So I guess you should say:
} else if (rp !== this._ignoreAttribute && (! ('dependencies' in
rp))) {
Also, the idiom:
this._a = rp; this._a(); delete this._a;
can be replaced by:
rp.call(this);
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev