[haXe] Arctic 0.5.0 released

Asger Ottar Alstrup asger at area9.dk
Wed Jan 10 14:19:47 CET 2007


Hi,

I just submitted 0.5.0 to haxelib. Install with "haxelib install arctic".

The layout algorithm has been redone in this release to fix problems with
nested LineStacks and LineStacks with many elements in them.

As part of this, the API for CustomBlocks have changed, such that the build
function has to return a structure containing the resulting MovieClip and
the dimensions of this clip. Unless you used Dynamic as return type of your
CustomBlock functions, the errors should be pointed out by the compiler and
very easy to fix:

Instead of

  function build(...) {
    ..
   return myClip;
 }

you need to write

  function build(...) {
    ..
   return { clip: myClip, width: myWidth, height: myHeight };
 }


This is because it turns out that it is not reliable to ask Flash for the
size of MovieClips - especially in situations where some of the MovieClips
use a ScrollRect. Therefore you have to tell Arctic manually how big your
block is when it has been constructed. (On the other hand, this also gives
you more flexibility: You can lie about your size, and things will work fine
anyway).

Another effect of the change in layout is that LineStack do not clip in the
width anymore when a scrollbar is added. This means that the scrollbar will
be attached to the left of the elements, and thus not obscure any contents
in the LineStack.
Yet another change is that a Dragable object only grows in the directions
mentioned, even when nested in a LineStack. You can see this in the
ArcticTest demo.

All in all, the new behaviour should be more predictable in complex layouts,
especially with nested LineStacks.

Regards,
Asger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070110/99767451/attachment.htm


More information about the Haxe mailing list