Home | Web Design Samples | Art & Design | Multimedia | Services | Contact | E-mail Me
Flash Chat | Flash Test | JavaLab | Pic Resizer | Articles | Snip A Site | Link Lister
| Pay James
Find out what's happening with the Web locally—Check out my Meetup at the Brampton Web Design Meetup Group.
I have worked with companies in the U.S.A, Canada and Europe and can help you with your Web development and design on an hourly or project basis. Contact me for an estimate or give me a call.

Sample FLASH XML code.

/*
Programmer: James Tadeo
What: Sample XML object and node in Flash with an attribute.

The code below will create a simple XML document:
<test type="4">7</test>
*/

//create the XML object you want to work with
myXML=new XML();


//define the name of the XML node and create it using createElement
//<test></test>
testNode=myXML.createElement("test");


//create an attribute type named 4
//type="4"
testNode.attributes.type=4;

//...after creating the attibribute, you can now add it to the test node to get
//<test type="4"></test>
myXML.appendChild(testNode);


//now add the text to the testNode
//first you must create the text
text=myXML.createTextNode("7");
testNode.appendChild(text);

Comments?

Contact me now with my online e-mail application:

Mailing Address: 12 Paradise Gardens, Brampton, ON L6S 5C7 Phone: (905) 793-2690  Fax: (905) 790-7412
© Copyright 2003 James Tadeo All trademarks, copyrights, and branding belong to their respective owners.