I'm trying to convert some 'regular/normal' text with embedded images to TextFlow format. During the conversion process, I want the final TextFlow formatted text to have its whiteSpaceCollapse property as 'collapse'. However, when I user TextFlowUtil's export method, whiteSpaceCollapse property is set to 'preserve'. What am I doing wrong here?
Here is the simple program with trace statement that shows that the converted text has whiteSpaceCollapse="preserve" even when the TextFlow object's whiteSpaceCollapse is set to 'collapse': I'm using Flex 4.1 (build 16076).
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="600" minHeight="600" creationComplete="application1_creationCompleteHandler(event)" > <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations>