PDA

View Full Version : Loading Flv files........


OtherBrother
07-26-2006, 02:03 PM
hey there.... can anyone help with this.....

I have been compressing .avi files thru flash into .flv files (that are then attached to a .swf). I now want to load these into another .swf when the user clicks a button......

I have no trouble getting a .swf to load into my movieBox using the loadMovie action. However, when i do exactly the same to load in the .swf that runs the .flv..... nothing happens..... nothing loads.....

HELP!!!:confused:

deadbeat
07-26-2006, 05:54 PM
loadMovie won't load FLVs...to load an FLV, use the FLVPlayback component (Flash 8) or MediaPlayback component (Flash 7)...

Alternately, you can place a video object on the stage, give it an instance name (ie: myVideo), and use code like so:

var nc=new NetConnection();
nc.connect(null);
var ns= new NetStream(nc);
myVideo.attachVideo(ns);
ns.play("myFile.flv");


K.

OtherBrother
07-27-2006, 03:36 PM
cheers...... gonna load up and give it a try!