Flash Action Script Error Repository

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

Archive for the 'asdocs' Category

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>

No comments

Error #1501: Error occurred writing to file

Create ASDocs:
[echo] Copying api documentation to project documentation directory
[exec] Loading configuration file C:\projects\flex2\resources\3.0.0\frameworks\flex-config.xml
[exec] An unexpected error occurred.
[exec] Error #1501: Error occurred writing to file C:\projects\flex2\HTMLProject\api\toplevel_classes.xml.
[exec] Documentation was created in C:\projects\flex2\HTMLProject\api\

Not sure what caused this error about but I restarted Flex Builder and it went away. File may have been open or locked.

No comments