|
|
|
[
Permlink
| « Hide
]
Jim Grandy - 13/Jun/06 03:00 PM
Amy, please verify contributor's agreement.
Note: This does not occur in DHTML.
Also, it doesn't seem to effect inputtext. It only seems to affect text and gridtext. Upon investigation, this seems to be a larger issue than depicted, having to do with the difference in how literal data is interpreted with and without CDATA tags.
Given the following text object: <text name="boo" visible="true" width="300" y="70" text=" "/> And a button with one of two methods, the following will result in truncated text: <method event="onclick"> canvas.boo.setText('herring < bobby'); </method> Whereas this will display the text appropriately: <method event="onclick"><![CDATA[ canvas.boo.setText('herring < bobby'); ]]></method> I've been researching this, and will investigate further, posting comments with updates. Okay, I've created a solution to this, but it's rather contrived as it involves searching every string in which a "<" is present and replacing it with "<" within a <![CDATA[ ]]>-enclosed method. It works, but there's probably a quicker way, and I'm not sure if it's going to cause problems elsewhere. I'll keep working on it.
After conferring with Henry, I'm assigning this to Max. This has different behavior in DHTML and SWF.
There is no option to set a text object to HTML or plaintext. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||