flv loading only when testing movie - not in LOCAL browser

  • panzhuli
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Oct 14, 2004
  • Posts: 135
  • Loc: Cleveland
  • Status: Offline

Post September 13th, 2008, 3:20 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 13th, 2008, 3:20 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post September 13th, 2008, 3:31 pm

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
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • panzhuli
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Oct 14, 2004
  • Posts: 135
  • Loc: Cleveland
  • Status: Offline

Post September 13th, 2008, 5:10 pm

I have a custom flv player. should I try skinning the flv component instead?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post September 13th, 2008, 5:56 pm

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
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 42 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.