[Laszlo-dev] how t o add new method to schema

Frank Guo fguo at laszlosystems.com
Tue Feb 28 06:28:43 PST 2012


thank you.
The reason of the problem is in as file.

But I also want to what's the purpose of declare attribute and method in 
lfc.lzx
If I add a new method to  view class, but  don't declare the name  in 
lfc.lz, I still can use it.

If I want to add such declaration, like new attribute, method or class. 
What should I do?

thanks

On 02/28/2012 08:32 PM, P T Withington wrote:
> This error is coming from the Flex compiler, not the schema.
>
> Maybe there is an out of date library?  It seems like the flex compiler has a stale definition of LzInputTextSprite.
>
> I usually look at the input files to the flex compiler for more information.
>
> On 2012-02-28, at 04:42, Frank Guo wrote:
>
>> Hi Tucker,
>>
>> I add a method to LzInputTextSprite.js ,and call it in LzInputText.
>>
>> when build the lfc, the error like this:
>>
>> Exception compiling scriptfile: org.openlaszlo.sc.CompilerError: views/LzInputText.lzs: 329:
>> Error: Call to a possibly undefined method setReadOnly through a reference with static type LzInputTextSprite, in line: this.isprite.setReadOnly(this.readonly)
>>
>>
>> It looks like I should add the new method to schema,
>> How to do it?
>>
>> thanks
>> frank



More information about the Laszlo-dev mailing list