There's a bug when creating a drawview using the boxmodel dynamically
at runtime in the AS3 runtime. The border is not drawn in that case.
Here's a description of the problem from the JIRA issue:

When a drawview with the boxmodel mixin is dynamically created at
runtime, the border is not rendered in the AS3 runtime. This is only
true for views which do not use CSS when setting the borderwidth and
bordercolor attributes.

The reason for this behavior has to do with the way the border works
in AS3 based runtimes: The border shape is created within function
updateBorderShape (LzSprite.as, line no 2199). The shape object has to
be added to the parent sprite object children array. When a view is
created dynamically at runtime, the drawview's sprite property
'parent' has not been set, therefore the border shape cannot be added
to the parent sprite child list.

The parent property is finally set when function __LZinstantiationDone
in LaszoView.lzs is called, but that's long after the call to the
function updateBorderShape in LzSprite.as

A possible solution would be to add a check if a
borderwith/bordercolor has been set and the bordershape has no parent
to function __LZinstantiationDone, and to add the border shape to the
parent sprite children in that case.

- Raju

Reply via email to