Flash Action Script Error Repository

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

Error: Unknown element http://ns.adobe.com/textLayout/2008::

Error: Unknown element http://ns.adobe.com/textLayout/2008::

Reason
The element in the markup is not found. For example, the "em" tag is not supported. So when it is encountered an error with the message "Unknown element http://ns.adobe.com/textLayout/2008::em" is thrown. Notice the "em" is tagged at the end of the error message. It may be possible to create an em element. Not sure. Read more here...

Incorrect Code:

Actionscript:
  1. public var myString:XML = <root><img source="images/spinning_loader1.swf"/><span>Flex is a highly productive, free open source framework for building and maintaining expressive web applications...</span><br/></root>;

XML:
  1. <s:RichEditableText width="100%" y="52" styleName="postDescription" text="Description area"
  2.     editable="false" lineBreak="toFit" textFlow="{TextFlowUtil.importFromString(XML(myString))}">
  3. </s:RichEditableText>

Correct Code:

Actionscript:
  1. public var myString:XML = <p><img source="images/spinning_loader1.swf"/><span>Flex is a highly productive, free open source framework for building and maintaining expressive web applications...</span><br/></p>;

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