hi,
i have edited an open source flv player's fla file for my needs,but ihave some
problem.it uses XML when getting video source URL but i want it to read from
QueryString or a variable from ASP.How Can i do this? the original codes are
like this,these are for reading from XML source;
var rtmpRoot, instance, file, type;
var x:XML = new XML();
x.ignoreWhite = true;
x.onLoad = function(success) {
if (!success) {
trace("Cannot load XML");
} else {
trace("Loaded");
//trace(this);
file = this.childNodes[0].childNodes[0].childNodes[0].toString();
trace(file.substr(file.length - 3, 3));
type = file.toLowerCase().substr(file.length - 3, 3);
trace (type);
}
};
x.load("movie.xml");
Motion Maker - 23 May 2006 00:32 GMT
Once you parse the XML data you set the contentPath property for the
FLVPlayback component.
http://livedocs.macromedia.com/flash/8/main/00003539.html

Signature
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
hi,
i have edited an open source flv player's fla file for my needs,but ihave
some
problem.it uses XML when getting video source URL but i want it to read from
QueryString or a variable from ASP.How Can i do this? the original codes are
like this,these are for reading from XML source;
var rtmpRoot, instance, file, type;
var x:XML = new XML();
x.ignoreWhite = true;
x.onLoad = function(success) {
if (!success) {
trace("Cannot load XML");
} else {
trace("Loaded");
//trace(this);
file = this.childNodes[0].childNodes[0].childNodes[0].toString();
trace(file.substr(file.length - 3, 3));
type = file.toLowerCase().substr(file.length - 3, 3);
trace (type);
}
};
x.load("movie.xml");