PDA

View Full Version : propblem with stretches attribute


DanteTHB
03-16-2007, 05:56 AM
Hi developers!!

I 've built my on class like this:

<library>
<class name="testclass" extends="image" width="75" height="75"
clickable="true" focusable="true" opacity="1" stretches="both">
<attribute name="image_id" type="string" value=""/>
<attribute name="image_name" type="string" value=""/>
<attribute name="image_mimetype" type="string" value=""/>
<attribute name="enabled" value="false" type="boolean" />

<handler name="oninit">
Debug.write("test oninit");
</handler>

<handler name="onmouseover">
Debug.write("onmouseover class");
</handler>

<handler name="onmousedown">
Debug.write("onmousedown class");
</handler>

<method name="setEnable" args="flag">
Debug.write("setEneable");
</method>
</class>
</library>


So, my problem here is the attribute stretches! If i want to click on the instance of this class, no onclick or onmousedown/up event is fired.
I compiled it against swf8, if i do this in dhtml onmousedown/up events are fired.

Do you have an a bug in jira? I didnīt see this one there!

Can you plz fix it?

Thx,

Dante

max
03-16-2007, 12:30 PM
Hi developers!!

I 've built my on class like this:

<library>
<class name="testclass" extends="image" width="75" height="75"
clickable="true" focusable="true" opacity="1" stretches="both">
<attribute name="image_id" type="string" value=""/>
<attribute name="image_name" type="string" value=""/>
<attribute name="image_mimetype" type="string" value=""/>
<attribute name="enabled" value="false" type="boolean" />

<handler name="oninit">
Debug.write("test oninit");
</handler>

<handler name="onmouseover">
Debug.write("onmouseover class");
</handler>

<handler name="onmousedown">
Debug.write("onmousedown class");
</handler>

<method name="setEnable" args="flag">
Debug.write("setEneable");
</method>
</class>
</library>


So, my problem here is the attribute stretches! If i want to click on the instance of this class, no onclick or onmousedown/up event is fired.
I compiled it against swf8, if i do this in dhtml onmousedown/up events are fired.

Do you have an a bug in jira? I didnīt see this one there!

Can you plz fix it?

Thx,

Dante

Hi Dante,

Thanks for reporting this - it looks like a real bug! I'm not sure if it's a regression from 3.x, but it is inconsistent between dhtml and swf. I couldn't get it to work in either swf7 or 8. I posted a bug with a workaround here: http://jira.openlaszlo.org/jira/browse/LPP-3726

Regards,
Max Carlson
OpenLaszlo.org

zvi
03-21-2007, 01:26 AM
Yes, we are also seeing a lot of regression (or at least change) in the behavior of stretches from 3.3.3 to 4.0.0

Zvi

jgrandy
03-21-2007, 08:41 AM
Hi Zvi,

Please do report these regressions, either on this forum or directly into our bug database (http://www.openlaszlo.org/jira/).

zvi
05-11-2007, 10:42 PM
I reported these both in the forums and in Jira:

http://www.openlaszlo.org/jira/browse/LPP-3961
http://www.openlaszlo.org/jira/browse/LPP-3962
http://www.openlaszlo.org/jira/browse/LPP-3963

At the moment even though we are excited about 4.0 we are a bit stuck with the migration due to bugs (even on Flash) - not sure we will find more bugs till these are solved. Also did someone report the above stretches issues in Jira - we are having a lot of problems with stretches (but I have not yet boiled it down to simple test cases)

Thanks

Zvi

jgrandy
05-11-2007, 11:21 PM
Hi Zvi,

Thanks for the JIRA bugs. As you know, a report in the forum without a bug filed in JIRA isn't going to lead to swift action. So please do file any issues you find in JIRA; the contributors will sort out which are duplicates.