• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Code Fix!

// create XML object
var classesXML:XML = new XML();

// create classes node in classesXML
// but don't place it anywhere specific
var allClassContainer = classesXML.createElement("classes");

// add an attribute to the floating element
allClassContainer.attributes.category = "Fourth Quarter Classes";

// place the element
classesXML.appendChild(allClassContainer);

// display
trace(classesXML.firstChild);

What the Sam Hill?

Start with this line:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint