Flash Action Script Error Repository

A library of solutions to Actionscript, Flash, Flex and AIR

ReferenceError: Error #1069: Property leadingModel not found on String and there is no default value.

ReferenceError: Error #1069: Property leadingModel not found on String and there is no default value.
at flashx.textLayout.elements::LinkElement/computeLinkFormat()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\LinkElement.as:437]

Incorrect Code:

XML:
  1. <s:RichEditableText x="92" y="22" color="#2b4381" editable="false" fontFamily="Myriad Pro" fontSize="17" whiteSpaceCollapse="preserve">
  2.         <s:textFlow>
  3.             <s:TextFlow>
  4.                 <s:linkActiveFormat>
  5.                 </s:linkActiveFormat>
  6.                 <s:p>
  7.                     <s:a href="http://google.com"><s:span color="#f77d0e" textDecoration="none">link</s:span></s:a>
  8.                 </s:p>
  9.             </s:TextFlow>
  10.         </s:textFlow>
  11.     </s:RichEditableText>

Correct:

XML:
  1. <s:RichEditableText x="92" y="22" color="#2b4381" editable="false" fontFamily="Myriad Pro" fontSize="17" whiteSpaceCollapse="preserve">
  2.         <s:textFlow>
  3.             <s:TextFlow>
  4.                 <s:p>
  5.                     <s:a href="http://google.com"><s:span color="#f77d0e" textDecoration="none">link</s:span></s:a>
  6.                 </s:p>
  7.             </s:TextFlow>
  8.         </s:textFlow>
  9.     </s:RichEditableText>

Please post your comments to help future visitors.

No comments yet. Be the first.

Leave a reply

Wrap MXML and ActionScript in [xml] [/xml] and [as] [/as] tags respectively