Return to Snippet

Revision: 14578
at June 7, 2009 10:44 by stiobhart


Initial Code
// init TextArea component 
blurb.html = true; 
blurb.wordWrap = true; 
blurb.multiline = true; 
blurb.label.condenseWhite=true;

// load CSS 
madrastyle = new TextField.StyleSheet(); 
madrastyle.load("madra.css"); 
blurb.styleSheet = madrastyle; 

// load in XML 
XMLcontent = new XML(); 
XMLcontent.ignoreWhite = true; 
XMLcontent.load("kungfu.xml"); 
XMLcontent.onLoad = function(success) 
{ 
if(success) 
	{ 
		blurb.text = XMLcontent; 
	} 
}

Initial URL


Initial Description
load in XML and style the text via CSS

Initial Title
actionscript - load in XML [with attached  stylesheet info]

Initial Tags
css, actionscript, flash, xml, load

Initial Language
ActionScript