>
>
> Description:
> Client encountered the following problem. Happens only when compiling our application to swf9. Below is the simplified program to
> reproduce the problem.To bypass the problem showroot has been set to true. They would like this to be fixed in the next release given to them.
> ---------------------------------------------------------------------------------------------
> Sample program to show the error in basetree when showroot="false":
> <canvas height="500" debug="true">
> <include href="base/basetree.lzx"/>
>
> <class name="echotree" extends="basetree" showroot="false">
>
> <method name="init">
> Debug.debug ("echotree - init(): this=", this, ", this.children=",
> this.children, ", this.children.subviews=", this.children.subviews);
> super.init();
> </method>
>
> <view placement="item" layout="axis: x; spacing: 2"
> bgcolor="${classroot.selected
> ? classroot.style.selectedcolor
> : classroot.parent.bgcolor}">
> <handler name="onclick">
> classroot.changeFocus();
> if (! classroot.isleaf) {
> classroot.setAttribute("open", ! classroot.open);
> }
> </handler>
> <text text="${classroot.text}" resize="true" />
> <text text="${classroot.text}" resize="true" />
> </view>
> </class>
>
> <view x="20" y="20" layout="axis: x; spacing: 10">
> <echotree>paragraph
> </echotree>
> </view>
> </canvas>
> -------------------------------------------------------------------------
> Debug statement showed that this.children.subviews is an empty array in
> debug console:
> DEBUG: echotree - init(): this= «<echotree>#0| /view/echotree» ,
> this.children= «<view>#2#1| /view/echotree/@children» ,
> this.children.subviews= «Array(0)#3| []»
>
> ---------------------------------------------------------------------------
> Error got when showroot="false":
> TypeError: Error #1010: A term is undefined and has no properties.
> at
> $lzc$class_basetree/init()[C:\Temp\lzswf9\work\Laszlo\build\tree\$lzc$
class_basetree.as:49]
> at
> $lzc$class_echotree/init()[C:\Temp\lzswf9\work\Laszlo\build\tree\$lzc$
class_echotree.as:8]
> at LzNode/__LZcallInit()[/tmp/lzswf9/lzgen24517/LzNode.as:504]
> at LzNode/__LZcallInit()[/tmp/lzswf9/lzgen24517/LzNode.as:479]
> at LzCanvas/__LZcallInit()[/tmp/lzswf9/lzgen24517/LzCanvas.as:461]
> at
> LzCanvas/__LZinstantiationDone()[/tmp/lzswf9/lzgen24517/LzCanvas.as:410]
> at
> LzInstantiatorService/makeSomeViews()[/tmp/lzswf9/lzgen24517/LzInstantiatorService.as:234]
> at
> LzInstantiatorService/checkQ()[/tmp/lzswf9/lzgen24517/LzInstantiatorService.as:171]
> at Function/
http://adobe.com/AS3/2006/builtin::call()
> at LzEvent/sendEvent()[/tmp/lzswf9/lzgen24517/LzEvent.as:89]
> at
> LzIdleKernel$/__update()[/tmp/lzswf9/lzgen24517/LzIdleKernel.as:19]
> Note: This is complaining about (sv[0]) is undefined because sv is an
> empty array.
> -------------------------------------------------------------------------------
> in init() method of basetree.lz:
> var sv = this.children.subviews;
> if (sv && (sv[0]) instanceof lz.basetree) {
> focusItem = sv[0].item;
> }
> Note: the example failed because sv is not undefined but it is an empty
> array.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openlaszlo.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira