[Laszlo-dev] incompatible overriding swf9/10

Raju Bitter rajubitter at me.com
Tue Nov 10 16:39:36 PST 2009


Oops, and I filed a new bug. http://jira.openlaszlo.org/jira/browse/LPP-8594

Didn't know that you have to define returns="void" in that case. Guess  
I've been using 4.0.x too much lately.

@Max, I guess you can close the issue I filed then: http://jira.openlaszlo.org/jira/browse/LPP-8594

On Nov 10, 2009, at 11:22 PM, P T Withington 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