I have a cross domain policy already set up. I really don't think that's the problem.
Here's my code:
When I publish in flash player it works fine. But if I publish in html, everything seems to work but the flv wont load.Code:// load cross domain policy var myXML:XML = new XML(); myXML.ignoreWhite=true; myXML.load("//server/flash/movies/crossdomain.xml"); myXML.onLoad = function(success) { if(success) { trace("cross domain loaded"); } } // variables to help me know the file exists and to load it var filesearch:String = "searching"; var fileName:Object; fileName = "//server/flash/movies/myMovie.flv"; // search for the file var fileExists = new LoadVars(); fileExists._parent = this; fileExists.onLoad = function(success) { if(success) { filesearch = "found"; // play movie ns.play(fileName); } else { filesearch = "not found"; } } // run the function to search for the file fileExists.load(fileName) // have the variables set up to stream the movie var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); ns.setBufferTime(0); tehMovie.attachVideo(ns);




Reply With Quote
