Hello everybody I am trying to display special characters within a text field either by specifying their numerical entities in an outside XML file, or by bringing them from the library. For illustration purpose lets consider a symbol named “checkMark” Part 1: The “checkMark” image is stored in the library of the starting fla. file as a BitMap, designated in the linkage properties by the class name: ” CheckMark_1”. If I wanted to just display this check mark graphic, I would use the following code: var _cMark:Bitmap=new Bitmap(new CheckMark_1(0,0)); addChild(_cMark); If I wanted to bring this same graphic named 'check_2.png' from a directory and embed it in an html text I would use the following: var tryText:TextField=new TextField(); tryText.multiline=true; tryText.width=200; tryText.height=200; tryText.x=100; tryText.y=100; tryText.htmlText="PART 1: Check MARK <img src='check_2.png'>"; addChild(tryText); Both of the above codes are working fine. The question here is how to display such graphic within the html text, when the bitmap is already in the fla. library. Part 2: The check mark is very similar to the Square Root symbol. The numerical html entity of this symbol is √ If I use the following code on a frame, the symbol shows fine. tryText.htmlText="PART 2: Check MARK √"; addChild(tryText); If I bring this symbol from an XML file, contained in “CDATA” type node, the symbol does not show. The rest of the text shows ok. Any idea on why it works ok within the fla. file and not when loaded from an XML file? Thank you, Daniel Abramovich
Interactive Training Solutions (ITS) _www.its-metacentre.com_ (http://www.its-metacentre.com/) **************Psssst...Have you heard the news? There's a new fashion blog, plus the latest fall trends and hair styles at StyleList.com. (http://www.stylelist.com/trends?ncid=aolsty00050000000014) _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders