[Laszlo-dev] updated copy of Flex 4 compiler, text layout framework available for experimenting with

Max Carlson max at openlaszlo.org
Tue Sep 8 17:06:55 PDT 2009


It looks better so far...

Henry Minsky wrote:
> Sorry, I forgot to svn add some new files in the flex 4 update. I just 
> committed them, try again please!
> 
> 
> On Tue, Sep 8, 2009 at 6:58 PM, Max Carlson <max at openlaszlo.org 
> <mailto:max at openlaszlo.org>> wrote:
> 
>     I just updated to r14702 which includes your change.  I can no
>     longer build the swf9 LFC.  Here's a stacktrace from running
>      ./buildlfc --runtime=swf9:
> 
>     Buildfile: build.xml
> 
>     get-env:
> 
>     get-svn-info:
> 
>     read-svn-info:
> 
>     build-opt:
> 
>     init:
> 
>     lfc:
> 
>     lzl:
>         [echo] Compiling
>     /Users/maxcarlson/openlaszlo/trunk-clean/lps/includes/lfc/LFC9.swc
>         [java] Executing compiler: (cd
>     /var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/lzgen2509217274497386941;
>     /Users/maxcarlson/openlaszlo/trunk-clean/WEB-INF/bin/compc
>     -load-config=/Users/maxcarlson/openlaszlo/trunk-clean/WEB-INF/frameworks/flex-config.xml
>     -compiler.show-actionscript-warnings=false
>     -compiler.source-path+=/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/lzgen2509217274497386941
>     -compiler.headless-server=true
>     -compiler.fonts.advanced-anti-aliasing=true -output
>     /var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/lzgen2509217274497386941/app.swc
>     -include-classes LzBootstrapMessage LzMessage LzFormatter
>     LzDeclaredEventClass LzValueExpr LzInitExpr LzOnceExpr
>     LzConstraintExpr LzAlwaysExpr LzStyleExpr LzStyleAttr LzStyleIdent
>     LzInheritedHash LzCache LzEventable LzStyleAttrBinder
>     PresentationType DefaultPresentationType StringPresentationType
>     BooleanPresentationType NumberPresentationType ColorPresentationType
>     ExpressionPresentationType SizePresentationType LzNode
>     \$lzc\$class_userClassPlacement LzDelegate LzEvent LzKernelUtils
>     LzLibraryCleanup LFCApplication LzIdleKernel LzSprite LzTextSprite
>     LzInputTextSprite LzFontManager LzTimeKernelClass LzKernelTimer
>     LzLibrary LzXMLParser LzXMLTranslator LzHTTPLoader LzMouseKernel
>     LzBrowserKernel LzKeyboardKernel LzScreenKernel LzContextMenuKernel
>     LzContextMenuItemKernel LzAudioKernel LzAsset
>     DojoExternalInterfaceClass LzView LzText LzInputText LzViewLinkage
>     LzCanvas LzScript LzAnimatorGroup LzAnimator LzLayout LzFont
>     LzSelectionManager LzDataSelectionManager LzCommand LzState
>     LzDataNodeMixin LzDataNode LzDataElementMixin LzDataElement
>     LzDataText LzDataRequest LzDataProvider LzHTTPDataRequest
>     LzHTTPDataProvider LzDataset __LzHttpDatasetPoolClass LzDatapointer
>     LzParam LzParsedPath AnonDatasetGenerator LzDatapath
>     LzReplicationManager LzRefNode LzDataAttrBind
>     LzLazyReplicationManager LzResizeReplicationManager LzColorUtils
>     LzUtilsClass LzInstantiatorService LzGlobalMouseService
>     LzBrowserService LzContextMenu LzContextMenuItem
>     LzModeManagerService LzCursorService LzURL LzKeysService
>     LzAudioService LzHistoryService LzTrackService LzIdleEvent
>     LzIdleService LzCSSStyleRule LzCSSStyleClass LzCSSStyleDeclaration
>     LzStyleSheet LzCSSStyleSheet LzFocusService LzTimerService
>     LzDebugService
>     \$lzsc\$mixin\$LzDataElementMixin\$LzDataNodeMixin\$LzDataNode
>     \$lzsc\$mixin\$LzDataNodeMixin\$LzNode
>     \$lzsc\$mixin\$LzDataNodeMixin\$LzDataNode
>     \$lzsc\$mixin\$LzFormatter\$LzView
>     \$lzsc\$mixin\$LzDataElementMixin\$LzDataNodeMixin\$LzNode
>     \$lzsc\$mixin\$LzFormatter\$ \$runtime \$dhtml \$as3 \$swf10 \$as2
>     \$debug \$reportUndefinedObjectProperty \$js1 lz
>     DojoExternalInterface \$reportUndefinedVariable
>     \$reportUndefinedMethod LzHttpDatasetPool \$swf7 \$swf9 \$swf8
>     globalValue LzTimeKernel \$reportNotFunction global \$j2me
>     _Copyright LzResourceLibrary canvas Debug \$modules LzDeclaredEvent
>     __ES3Globals LzCSSStyle \$reportSourceWarning \$svg
>     \$reportUndefinedProperty \$profile LzUtils -target-player=9.0.0)
>         [java] compiler output is Loading configuration file
>     /Users/maxcarlson/openlaszlo/trunk-clean/WEB-INF/frameworks/flex-config.xml
>         [java] Adobe Compc (Flex Component Compiler)
>         [java] Version 4.0.0 build 6898
>         [java] Copyright (c) 2004-2007 Adobe Systems, Inc. All rights
>     reserved.
> 
> 
>         [java] Stray error string from external compiler:
>     /Users/maxcarlson/openlaszlo/trunk-clean/WEB-INF/frameworks/flex-config.xml(85):
>     Error: unable to open 'spark-manifest.xml'
>         [java] compiler output:
>         [java] Loading configuration file
>     /Users/maxcarlson/openlaszlo/trunk-clean/WEB-INF/frameworks/flex-config.xml
>         [java] Adobe Compc (Flex Component Compiler)
>         [java] Version 4.0.0 build 6898
>         [java] Copyright (c) 2004-2007 Adobe Systems, Inc. All rights
>     reserved.
> 
> 
>         [java] FAIL: compiler returned 1
>         [java] Done executing compiler
>         [java] Intermediate file
>     /var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/lzgen2509217274497386941/app.swc:
>     does not exist
>         [java] Exception compiling scriptfile:
>     org.openlaszlo.sc.CompilerError: Errors from compiler, output file
>     not created
>         [java] org.openlaszlo.sc.CompilerException:
>     org.openlaszlo.sc.CompilerError: Errors from compiler, output file
>     not created
>         [java]     at org.openlaszlo.sc.Compiler.compile(Compiler.java:403)
>         [java]     at org.openlaszlo.sc.lzsc.compile(lzsc.java:110)
>         [java]     at org.openlaszlo.sc.lzsc.compile(lzsc.java:325)
>         [java]     at org.openlaszlo.sc.Main.main(Main.java:10)
>         [java] Compilation aborted.
> 
> 
>     Henry Minsky wrote:
> 
>         We should run as many complex apps as we can. This affects only
>         SWF10 (and SWF9) so maybe Ghost could help out with some QA on
>         this, given that they have the biggest Flash 10 app that I know of?
> 
>         On Tue, Sep 8, 2009 at 3:15 PM, Amy Muntz
>         <amuntz at laszlosystems.com <mailto:amuntz at laszlosystems.com>
>         <mailto:amuntz at laszlosystems.com
>         <mailto:amuntz at laszlosystems.com>>> wrote:
> 
>             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>
> 
> 
> 
> 
>         -- 
>         Henry Minsky
>         Software Architect
>         hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
>         <mailto:hminsky at laszlosystems.com
>         <mailto:hminsky at laszlosystems.com>>
> 
> 
> 
>     -- 
>     Regards,
>     Max Carlson
>     OpenLaszlo.org
> 
> 
> 
> 
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
> 
> 

-- 
Regards,
Max Carlson
OpenLaszlo.org


More information about the Laszlo-dev mailing list