Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Make Bitmaps from Flash
Stop all the sounds
Installed ActiveX
myPrint
Irregular MIAW
Binary Opperations
Set Stroke properties
Fraction Scripts
Ceiling and Floor
DirSaver
 

 

 

Project Example XML TextRender v1.3

Added on 3/19/2003

 

Compatibilities:
Mac Parent PC

This item has not yet been rated

Author: Magnamerc

The XMLTextRender object provides a coding interface to the XMLParser Xtra.

Get the source
The XMLTextRender object provides a coding interface to the XMLParser Xtra. XMLTextRender is specifically designed for reading in an XML text string, parsing it via the XMLParser Xtra, and outputting to a textmember. XMLTextRender converts certain XML tags into Director formatting. This allows for tag driven text formatting and is useful in separating content from code.

Changes in Version 1.1:
Four new functions for navigating the XML tree.
The style attribute can be assigned to nodes, so that child nodes can pick up style formatting from their parents.
XTR_TrimLinesRight function to clean up text output.
XTR_DrawNode is now only recursive when parsing formatting elements.
Error handling code has been removed.

Changes in Version 1.2:
Added strikeout, superscript, subscript as possible style values.

Changes in Version 1.3:
Added the XTR_GetCurrentNodeText function. Added the "bullet" tag.

Requires the XMLParser xtra that is provided free from Macromedia.

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail