[Laszlo-dev] incompatible overriding swf9/10
P T Withington
ptw at pobox.com
Wed Nov 11 07:21:34 PST 2009
You are correct. Although the argument types are documented, the
return type is not. I filed a bug for that:
http://jira.openlaszlo.org/jira/browse/LPP-8595
although our hope is that for the LZX programmer, fixing bug LPP-6080
will make this not an issue (the LZX compiler should be able to fill
in the missing type declarations for the user if no type is specified).
On 2009-11-10, at 20:05, Gioacchino wrote:
> very thanks this worked i don't know the returns attribute neither
> how to
> specific args type on a method in openlaszlo thanks this should be
> documented!
>
> On Tuesday 10 November 2009 23:22:35 you wrote:
>> It is not a matter of public or not, it is that the argument (and
>> return type) signatures do not match.
>>
>> This bug is logged as http://jira.openlaszlo.org/jira/browse/LPP-6080
>>
>> The following example shows how to work around your problem by
>> explicitly declaring the function types in your override:
>>
>> <canvas>
>> <class name="test" extends="view">
>> <method name="setVolume" args="v:Number" returns="void">
>> Debug.info("Calling %w(%w)", arguments.callee, v);
>> super.setVolume(v);
>> </method>
>> </class>
>> <test oninit="setVolume(42)" />
>> </canvas>
>>
>> On 2009-11-10, at 16:38, Gioacchino wrote:
>>> In this post you can find this bug
>>> http://forum.openlaszlo.org/showthread.php?t=13954
>>>
>>> the problem is that method like seek or setVolume are declared as
>>> private in
>>> as3 compiled view than you can't override them from openlaszlo that
>>> declare
>>> them public by default e find this problem with Raju Bitter
>>>
>>> please fix this here is my complete app http://launchpad.net/
>>> olwebsuite
>>>
>>> and there is the complete file affected by this bug
>>> http://bazaar.launchpad.net/~gmazzurco89/olwebsuite/0.2/annotate/head%3A/
>>> src/OMWAudioOutput.lib.lzx
>>>
>>>
>>> than there is no reason to declare seek or play as private
>>> method... please
>>> do them public
>>
More information about the Laszlo-dev
mailing list