I have an .fla and an .flv saved in the same folder on my desktop.
The .fla is called videoPlayer
The .flv is called theMovie
The folder that they are both saved in is called myPlayer
My code looks like this
var video;
var nc;
var ns;
//********************************
function playVideo( videoToPlay )
{
nc = new NetConnection ( ) ;
nc.connect( null );
ns = new NetStream ( nc ) ;
ns.client = this ;
video = new Video ( 320 , 240 ) ;
addChild( video );
video.attachNetStream( ns );
ns.play( videoToPlay );
}
playVideo("??????????????");
How do I create a path to my flv to put in my function call?
Thanks for your help.
Mango