using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; namespace WindowsFormsApplication5 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { //string Text; XmlDocument xdoc = new XmlDocument(); xdoc.Load("media.xml"); InnerText txt = new InnerText();
textBox1.Text = xdoc.SelectSingleNode("bin/Debug/Name/URL").InnerText; axShockwaveFlash1.LoadMovie(0, xdoc.SelectSingleNode("bin/Debug/Name/URL").InnerText); //InnerText txt = new InnerText(); } } }
Please help me out friends...
I want to read the data from xml with its URL and want to use to play that file on Shockwave Flash Object, how can i do this...
The above code is my final code which i have done till now...
And following code is my xml file with name "media.xml"
So how can i do that...
Please help me friends please...
<?xml version="1.0" encoding="utf-8" ?> <bin><Debug><Name>flashAnim.swf</Name><URL>bin\Debug\imageLoader.swf</URL></Debug></bin>