我刚刚将Flex3模块迁移到Flex4,因为我需要使用RichText来支持TLF。
但是,当我运行我的Web应用程序时,我得到了这个例外:
RangeError:属性颜色值0超出范围 at flashx.textLayout.property :::Property $ / defaultErrorHandler()[C:\ Velum \ branches\v2 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 在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:\牛皮纸\分支\ V2 \ 2.0 \ dev的\输出\ OPENSOURCE \ TextLayout中\ SRC \ flashx \ TextLayout中\格式\ TextLayoutFormat.as:628] 在flashx.textLayout.formats :: textLayoutFormat中/组颜色()[C:\牛皮纸\分支\ V2 \ 2.0 \ dev的\输出\ OPENSOURCE \ TextLayout中\ SRC \ flashx \ TextLayout中\格式\ 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] at 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] 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:4333] 在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] 在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'}" />
如果我专门定义属性颜色并不重要。
我对可能出错的事情几乎一无所知。
任何想法???
非常感谢!
奥弗