Flash Action Script Error Repository

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

Archive for May, 2009

The value of attribute “htmlText” must not contain the ‘<’ character.

The value of attribute "htmlText" must not contain the '<' character.

The problem code:

XML:
  1. <mx:Text id="postFooter1" width="100%" y="0"
  2. htmlText="Posted in <a href='event:{postsRepeater.currentItem.categories.category.@name}'>{postsRepeater.currentItem.categories.category.@name}</a>"  />

Because of the less than sigh, "<" the error was appearing. The solution is to encode the less than sign like so:

XML:
  1. <mx:Text id="postFooter1" width="100%" y="0"
  2. htmlText="Posted in &lt;a href='event:{postsRepeater.currentItem.categories.category.@name}'>{postsRepeater.currentItem.categories.category.@name}&lt;/a>"  />

No comments

The entity “raquo” was referenced, but not declared.

The entity "raquo" was referenced, but not declared.

The compiler does not like the entity, "raquo;" as shown in the htmlText attribute:

XML:
  1. <controls:TextAutoSize id="postFooter1" width="100%" y="55"
  2. htmlText="Comments &raquo;"  textAlign="center"/>

No solution is available at this time...

2 comments