Actually, the compiler fixes this in the LFC too now. Every function
that is defined is now defined inside `with (_root) {...}` which
causes it to capture _root as its context. I can't explain why
`LzParesedPath.trim` would not work.
Does it fail in both DHTML and SWF?
On 2006-08-17, at 22:03 PDT, Adam Wolff wrote:
> Does it work if you write
>
> global.LzParsedPath.trim() ?
>
> In flash, the global context isn't always accessible. We fix this for
> users, but not in the LFC.
>
> A
>
> On Aug 17, Philip Romanik wrote:
>
>> Hi Tucker,
>>
>> I tracked down the problem with LzParsedPath. I had converted the
>> function
>> trim() into a static, and referenced it as LzParsedPath.trim()
>> throughout.
>> This is the correct way to do this (at least until LPP-2414 is
>> resolved). For
>> some reason, this isn't working.
>>
>> Any ideas what is going on? I'm attaching a copy of a modified
>> version of
>> LzParsed Path. It has the new class system, but I removed static
>> from the
>> trim() method.
>>
>> BTW, There is one other change in this file. I changed
>>
>> this.context = new this.AnonDatasetGenerator( this );
>>
>> to:
>>
>> this.context = new AnonDatasetGenerator( this );
>>
>> However, this was not causing the problem.
>>
>>
>> Thanks!
>>
>> Phil
>>
>>
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev