On 2008-03-31, at 21:12 EDT, Henry Minsky wrote:
> I'll see if I can either fix this or define dummy classes or methods
> to get
> past them for now.
>
>
> On undefined, P T Withington <
ptw <at> pobox.com> wrote:
>
>> So, if I fix the swf9 compiler (by telling it _not_ to emit implicit
>> this if it is not going to rename the locals) I get a bunch of new
>> interesting errors:
>>
>> Executing compiler: (cd /tmp/lzswf9/lzgen38150; /usr/local/
>> flex_sdk_3/
>> bin/mxmlc -compiler.show-actionscript-warnings=false -
>> compiler.source-
>> path+=/tmp/lzswf9/lzgen38150 -debug=true -output /tmp/lzswf9/
>> lzgen38150/app.swf -default-size 800 600 -library-path+=/Users/ptw/
>> OpenLaszlo/ringding-clean/lps/includes/lfc/LFC9.swc /tmp/lzswf9/
>> lzgen38150/LzApplication.as)
>> compiler output:
>> Loading configuration file /usr/local/flex_sdk_3/frameworks/flex-
>> config.xml
>>
>> ERRORS:
>> Compiler error: at 262 [/tmp/lzswf9/lzgen38150/$lzc
>> $class_basefocusview.as: 194]: Error: Access of possibly undefined
>> property focuswithkey through a reference with static type Class.
>>
>> this.setActive(LzFocus.focuswithkey);
>> ^
>>
>> Compiler error: at 239 [/tmp/lzswf9/lzgen38150/$lzc
>> $class_basebutton.as: 143]: Error: Incorrect number of arguments.
>> Expected 3.
>>
>> setTint(this, s.basecolor)
>> ^
>>
>> Compiler error: at 201 [/tmp/lzswf9/lzgen38150/$lzc
>> $class_baseformitem.as: 118]: Error: Call to a possibly undefined
>> method xmlEscape through a reference with static type Class.
>>
>> return LzBrowser.xmlEscape(this.submitname) + '="' +
>> LzBrowser.xmlEscape(val) + '"'
>> ^
>>
>> Compiler error: at 201 [/tmp/lzswf9/lzgen38150/$lzc
>> $class_baseformitem.as: 118]: Error: Call to a possibly undefined
>> method xmlEscape through a reference with static type Class.
>>
>> return LzBrowser.xmlEscape(this.submitname) + '="' +
>> LzBrowser.xmlEscape(val) + '"'
>> ^
>>
>> On 2008-03-31, at 20:15 EDT, P T Withington wrote:
>>> Spot the bug:
>>>
>>> /* -*- file: base/basecomponent.lzx#110.11 -*- */
>>> 56 override function construct (parent, args) {
>>> 57 with (this) {
>>> 58 super.construct(parent, args);
>>> 59 var p = this.immediateparent;
>>> 60 while (p != canvas) {
>>> 61 if (p instanceof lz.basecomponent) {
>>> 62 this._parentcomponent = p;
>>>
>>> Er, there is a `parent` property on `this` that is shadowing the
>>> argument. Who is inserting that `with (this)`?
>>>
>>>
>>
>>
>
>
> --
> Henry Minsky
> Software Architect
>
hminsky <at> laszlosystems.com