flv loading only when testing movie - not in LOCAL browser

  • panzhuli
  • Graduate
  • Graduate
  • panzhuli
  • Posts: 135
  • Loc: Cleveland

Post 3+ Months Ago

hey all. i have this very standard code in my AS2 (Flash CS3) doc:

Code: [ Select ]
 
var nc:NetConnection = new NetConnection();
nc.connect(null);
 
var ns:NetStream = new NetStream(nc);
 
video.attachVideo(ns);
 
ns.play("flv.flv");
 
  1.  
  2. var nc:NetConnection = new NetConnection();
  3. nc.connect(null);
  4.  
  5. var ns:NetStream = new NetStream(nc);
  6.  
  7. video.attachVideo(ns);
  8.  
  9. ns.play("flv.flv");
  10.  


the swf and .flv are in the same directory on a network drive. it works and plays beautifully if I test the swf (ctrl-enter), but when I load the html into FF3, it doesn't load the movie at all. Ideas?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Well my first question is why are you using the old MX AS2 code for NetStream when with CS3 all you have to do is use the FLVPlayer component?

I think the problem is you are trying to run it from a mapped drive and I don't think that's going to work in a browser. Try loading it to a webserver instead
  • panzhuli
  • Graduate
  • Graduate
  • panzhuli
  • Posts: 135
  • Loc: Cleveland

Post 3+ Months Ago

I have a custom flv player. should I try skinning the flv component instead?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Well if it's working for you and you like your custom one, no. But still, if you put it on a web server it should stream and play as neatly as it does when you test it

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 39 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.