Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / May 2006



Tip: Looking for answers? Try searching our database.

Loading Variables in FLV player

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
letsdie - 22 May 2006 03:17 GMT
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");
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.