Flash Action Script Error Repository

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

ArgumentError: newElement not of a type that this can be parent of

ArgumentError: newElement not of a type that this can be parent of

Reason

Incorrect Code:

XML:
  1. <s:RichEditableText x="11" y="35" text="Just text
" width="352">
  2.         <s:TextFlow color="0x555555">
  3.             <s:p>
  4.                 <s:span fontWeight="bold">Just text</s:span>
  5.                 <s:br />
  6.                 <s:a href="http://twitter.com/">Click here</s:a>
  7.                 <s:p>
  8.                     <s:img source="images/node_loader1.swf"></s:img>
  9.                 </s:p>
  10.             </s:p>
  11.         </s:TextFlow>
  12.  
  13.     </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