The path to a video is relative to your swf when playing it standalone
or in your IDE player.
But in an online situation the path is relative to the place where the
swf is embedded, so to the html file/location.
This confuses me often, and this might also be your problem ?
regards, latcho.
DannyT wrote:
I am trying to get some video loaded at runtime using the following:
var my_nc:NetConnection;
var my_ns:NetStream;
my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
curMedia = createEmptyMovieClip("videoPlayer", getNextHighestDepth());
curMedia.attachMovie("FlvManager","video",
curMedia.getNextHighestDepth());
//FLVManager is a movieclip in the library which contains an instance of
FlvPlayer called "FlvPlayer"
curMedia["video"].FlvPlayer.attachVideo(my_ns);
my_ns.onStatus = function(infoObject)
{
for (var prop in infoObject)
{
debugRef.text += "\t"+prop+":\t"+infoObject[prop] +
"\n"; //
output to textfield
}
}
my_ns.play(this.curClient.videos[0]); // reference to video object
debugRef.text += this.curClient.videos[0]+"\n"; // which is
outputted here and is correct
When i try to run this locally it works fine, when i try to run it
online I
get no status response from my_ns.
However the flv file will run when I use a video component wizard
(FLVPlayback)
Can someone suggest what is wrong or how i can debug this?
Cheers,
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com