A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Anybody used mov files instead of flv's with CS3?

  1. #1
    Filmmaker J-Luv's Avatar
    Join Date
    Jan 2002
    Location
    With her.
    Posts
    1,497

    Anybody used mov files instead of flv's with CS3?

    i'm trying to play HD footage (h.264) in my flash movie...only the tutorial i followed gave me output errors in the AS code.

    my code is as follows:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    myVideo.attachNetStream(ns);

    var listener :Object = new Object();
    listener.onMetaData = function (md:Object):void{};
    ns.client = listener

    ns.play("test.mov");
    the error says this:
    A type identifier is expected after the ':'.
    has anybody done this properly?
    Never take life too seriously. Nobody makes it out alive anyways. Film Portfolio


  2. #2
    Junior Member
    Join Date
    Sep 2008
    Location
    Chicago
    Posts
    4
    Without looking over your code, I would say you have the wrong file format. MOVs don't work. You want an MP4 file that is encode using H264 and AAC audio.

  3. #3
    Senior Member
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    348
    it should work. these guys managed it:

    http://www.ozoneasylum.com/30252

  4. #4
    Senior Member
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    348
    and you have a space between listener and your type identifier.

  5. #5
    Filmmaker J-Luv's Avatar
    Join Date
    Jan 2002
    Location
    With her.
    Posts
    1,497
    got it to work thanks guys
    Never take life too seriously. Nobody makes it out alive anyways. Film Portfolio


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center