Hi Henry,
This is in trunk, right? Can you suggest what test apps we should run to make sure there aren't any unanticipated side effects? We will be using trunk for an end of September release.

Thanks,
Amy

On Tue, Sep 8, 2009 at 2:45 PM , Henry Minsky wrote:

I just checked in an updated flex 4 release into the LPS tree, and it contains the libraries for the Flash text layout framework. Below is an example of how to compile a call to the TLF libraries.


<canvas width="100%" height="80%" debug="true">
  <debug  fontsize="12"/>

<script when="immediate">
<![CDATA[

class foo {
    #passthrough (toplevel: true) {
    import flash.display.Sprite;
    import flashx.textLayout.compose.StandardFlowComposer;
    import flashx.textLayout.container.ContainerController;
    import flashx.textLayout.elements.ParagraphElement;
    import flashx.textLayout.elements.SpanElement;
    import flashx.textLayout.elements.TextFlow;
    }#

    /** Simplest possible "Hello, World" text example */
        public function foo(view:LzView)
    {
        var textFlow:TextFlow = new TextFlow();
        var p:ParagraphElement = new ParagraphElement();
        textFlow.addChild(p);
           
        var span:SpanElement = new SpanElement();
        span.text = "Hello, World";
        span.fontSize = 48;
        p.addChild(span);
           
        textFlow.flowComposer.addController(new ContainerController(view.sprite, 400, 200));
        textFlow.flowComposer.updateAllControllers();
    }
}

]]>
</script>

     <view width="200" id="v1" height="100">
       <attribute name="tflow"/>
       <handler name="oninit">
          this.tflow = new foo(this);
       </handler>
     </view>

</canvas>

Reply via email to