what code would be used to be able to open a file from your computer from a flash program i created? i want to make a media player and i have to learn the code to be able to load the song or what ever it may be from my computer…any help?
the code you will use depends on the file you want to load. if you want to load a file in the flash movie it will be something like:
[font=Courier New]loadMovie(“your_file_name”, “mc_name”);[/font] //for jpg or swf
[font=Courier New]loadMovieNum(“your_file_name”, levelNumber);[/font] //for jpg or swf
[font=Courier New]myMP3 = new Sound();[/font]
[font=Courier New]myMP3.loadSound(“your_file_name”);//[/font]for mp3 or compressed wav
[font=Courier New]myMP3.start(0,1);[/font]
//or yu can simply link the file:
[font=Courier New]getURL(“your_file_name”);[/font]