[Laszlo-dev] Extending view with JS2 syntax / warning for inline attributes
P T Withington
ptw at pobox.com
Wed Jul 30 14:13:01 PDT 2008
As we discussed in IM, you were kind of 'cheating'. Your class was
really inheriting from view, but your interface claimed you were
inheriting from 'node'. The interface declaration is important
because it creates the schema for your class. If it is not accurate,
you can get schema warnings, and for swf9, you will potentially get
compiler errors (because the schema is used to determine when a method
is being overridden, among other things).
Don is working on a tool to automatically compute an interface
declaration from a class (that is implementing a tag). That will be
useful in the future because you will not have to create your
interface declaration by hand.
On 2008-07-30, at 16:24EDT, Raju Bitter wrote:
> Thanks, Tucker. I guessed that the interface declaration was a "fake"
> (or let's say just used for the documentation). So you are really
> using that info. ;)
>
> I guessed that it doesn't have an impact since the red box showed up
> in all runtimes, and I assumed that nodes are invisible.
>
> Thanks,
> Raju
>
> On Wed, Jul 30, 2008 at 1:44 PM, P T Withington <ptw at pobox.com> wrote:
>> You've said (in prose) that you are extending view, but your code
>> says you
>> are extending node. Node does not have width, height, etc. Try:
>>
>>> <interface name="testclassjs2" extends="view">
>>
>> On 2008-07-29, at 14:37EDT, Raju Bitter wrote:
>>
>>> Here are the warnings:
>>> extendviewjs2.lzx:55:58: found an unknown attribute named "width" on
>>> element
>>> testclassjs2, check the spelling of this attribute name
>>> extendviewjs2.lzx:55:58: found an unknown attribute named "height"
>>> on
>>> element testclassjs2, check the spelling of this attribute name
>>> extendviewjs2.lzx:55:58: found an unknown attribute named
>>> "bgcolor" on
>>> element testclassjs2, check the spelling of this attribute name
>>>
>>> The warning are generated for 4.1.1 and TRUNK, in all runtimes.
>>>
>>> - Raju
>>>
>>>
>>>
>>> Am 29.07.2008 20:35 Uhr schrieb "Raju Bitter" unter
>>> <openlaszlonaut at googlemail.com>:
>>>
>>>> Hi all,
>>>>
>>>> When I extend view with JS2 syntax I get a warning for the inline
>>>> attributes I
>>>> use. The test file is attached.
>>>>
>>>> - Raju
>>>
>>>
>>
>>
More information about the Laszlo-dev
mailing list