|
-
Filmmaker
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

-
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.
-
it should work. these guys managed it:
http://www.ozoneasylum.com/30252
-
and you have a space between listener and your type identifier.
-
Filmmaker
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|