bcbirk100
12-12-2007, 12:16 AM
I recently started programming in AS3. I've been struggling a little bit making the migration from 2.0, but for the most part I'm doing alright. I'm working on creating a new video player in as3 classes. I've got pretty much everything working fine, but the pause function. I don't know why it's not working. It'll pause the stream but won't resume it. All i'm doing is _stream.pause(); If I put a boolean value (_stream.pause(true);) in there i get errors. ArgumentError: Error #1063: Argument count mismatch on flash.net::NetStream/pause(). Expected 0, got 1.
I'm doing the same thing I've always done and the same method that is described everywhere. Any reason why this wouldn't be working? According to all the documentation i can find this is the proper method, so why won't it resume after pausing?
Thanks for the help.
EDIT:
Ok i just found the solution. I finally found an article that explained that the netStream pause method has been changed in AS3. instead of using netstream.pause(); you use netstream.togglePause();
I'm doing the same thing I've always done and the same method that is described everywhere. Any reason why this wouldn't be working? According to all the documentation i can find this is the proper method, so why won't it resume after pausing?
Thanks for the help.
EDIT:
Ok i just found the solution. I finally found an article that explained that the netStream pause method has been changed in AS3. instead of using netstream.pause(); you use netstream.togglePause();