Flex4 RichText - RangeError:属性颜色值 0 超出范围
我刚刚将 Flex3 模块迁移到 Flex4,因为我需要使用 RichText 来支持 TLF。
然而,当我运行我的网络应用程序时,我得到了这个异常:
RangeError:属性颜色值 0 超出范围 在 flashx.textLayout.property::Property$/defaultErrorHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\property\Property.as:31] 在 flashx.textLayout.property::Property/setHelper()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\property\Property.as:230] 在 flashx.textLayout.formats::TextLayoutFormat/setStyleByProperty()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\formats\TextLayoutFormat.as:628] 在 flashx.textLayout.formats::TextLayoutFormat/set color()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\formats\TextLayoutFormat.as:957] 在spark.core::CSSTextLayoutFormat()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\core\CSSTextLayoutFormat.as:75] 在spark.components::RichText/commitProperties()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\RichText.as:1039] 在 mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:8209] 在 mx.managers::LayoutManager/validateClient()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:957] 在 mx.controls::List/makeRowsAndColumns()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\List.as:1440] 在 mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:1742] 在 mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:4383] 在 mx.controls::List/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\List.as:1137] 在 mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:3963] 在 mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736] 在 mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819] 在 mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]**
RichText 定义如下
<s:RichText id="body" text="{msg}" height="30"
bottom="31" top="10" right="24" left="74"
fontSize="12" fontFamily="Verdana"
paddingTop="0" paddingRight="0" paddingLeft="0"
direction="{rtl?'rtl':'ltr'}" />
:我是否专门定义属性颜色并不重要。
我几乎不知道可能出了什么问题。
有什么想法吗???
非常感谢!
奥弗
I just migrated a Flex3 module to Flex4 since I needed to use RichText for TLF support.
However, when I run my web application I get this exception:
RangeError: Property color value 0 is out of range
at flashx.textLayout.property::Property$/defaultErrorHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\property\Property.as:31]
at flashx.textLayout.property::Property/setHelper()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\property\Property.as:230]
at flashx.textLayout.formats::TextLayoutFormat/setStyleByProperty()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\formats\TextLayoutFormat.as:628]
at flashx.textLayout.formats::TextLayoutFormat/set color()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\formats\TextLayoutFormat.as:957]
at spark.core::CSSTextLayoutFormat()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\core\CSSTextLayoutFormat.as:75]
at spark.components::RichText/commitProperties()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\RichText.as:1039]
at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:8209]
at mx.managers::LayoutManager/validateClient()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:957]
at mx.controls::List/makeRowsAndColumns()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\List.as:1440]
at mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:1742]
at mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:4383]
at mx.controls::List/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\List.as:1137]
at mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:3963]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]**
The RichText is defined like this:
<s:RichText id="body" text="{msg}" height="30"
bottom="31" top="10" right="24" left="74"
fontSize="12" fontFamily="Verdana"
paddingTop="0" paddingRight="0" paddingLeft="0"
direction="{rtl?'rtl':'ltr'}" />
It doesn't matter if I specifically define the property color.
I'm pretty much clueless to what can be wrong.
Any ideas???
Many thanks!
Ofer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论