System crash when use underline
Hi.
It seems to have bug in the TextLine creation when use underline...
Look:
for(var iIndex:int = 0; iIndex<10000; iIndex++)
{
var strTest: String = '<flow:TextFlow paddingTop="3" paddingLeft="3" whiteSpaceCollapse="preserve" xmlns:flow="http://ns.adobe.com/textLayout/2008"><flow:p><flow:span textDecoration="underline">a</flow:span><flow:span></flow:span></flow:p></flow:TextFlow>'; var oTextFlow: TextFlow = TextFilter.importToFlow(strTest, TextFilter.TEXT_LAYOUT_FORMAT); var arTextLine: Array = new Array(); var oTextLineHandler: Function = function(oTextLine: TextLine) : void { arTextLine.push(oTextLine); };TextLineFactory.createTextLinesFromTextFlow(oTextLineHandler, oTextFlow,
new Rectangle(0, 0, 200, 200));
}
When u try this, AIR crash. (Flex Builder 3).
Ths code is just an exemple of the bug...I know its useless ![]()
Its very strange that if u do not create the TextFlow in the loop, it's ok...
var strTest: String = '<flow:TextFlow paddingTop="3" paddingLeft="3" whiteSpaceCollapse="preserve" xmlns:flow="http://ns.adobe.com/textLayout/2008"><flow:p><flow:span textDecoration="underline">a</flow:span><flow:span></flow:span></flow:p></flow:TextFlow>';
var oTextFlow: TextFlow = TextFilter.importToFlow(strTest, TextFilter.TEXT_LAYOUT_FORMAT);
for(var iIndex:int = 0; iIndex<10000; iIndex++)
{
var arTextLine: Array = new Array();
var oTextLineHandler: Function = function(oTextLine: TextLine) : void { arTextLine.push(oTextLine); };
TextLineFactory.createTextLinesFromTextFlow(oTextLineHandler, oTextFlow,
new Rectangle(0, 0, 200, 200));
}
What can i do ? just wait for a beta release or is there a synchro process i miss ?
PS: sorry for my english...
