Simple FLV issue - please help! im a noob!

  • fruitskin
  • Born
  • Born
  • fruitskin
  • Posts: 2

Post 3+ Months Ago

Hi Everyone, i have searched through some topics here but can not find the answer i need...

here is my code...

var ns:NetConnection= new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);
myVid.attachVideo (ns);

ns.play("myVideo.flv")

Here is my problem:

It doesnt work! - can anyone help - I am probably missing something really obvious...

Things I have checked:

1/ the video object on stage instance name is called 'myVid'
2/ the flv and the swf are on the same folder
3/ size of the video container and the FLV are the same

any guidance greatly appreciated - thanks
  • 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

What version of Flash are you using?
  • fruitskin
  • Born
  • Born
  • fruitskin
  • Posts: 2

Post 3+ Months Ago

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

Post 3+ Months Ago

You are going about it the hard way then. Flash 8 has a built in FLVPlayback Component

Use it instead.
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

well, i had that problem too and didn't know what happens, why nothing appears. First i thought i need a media playback component to name it myVid ... but no luck.
After an hour or so of searching, i found out that you need to create a new video in the library file. See that in the title bar of the Library there's a small menu in the right corner. Press it and select: New Video.
A new video symbol will appear in the library. Drag it on stage and name it's instance to: myVid. Then it will work.
In order to use a media component, see this post

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 11 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.