-
play/paused button not working
Hi, I have the following code to stream an flv with a button that will pause and play the flv but it's not working.
settings: flash 9 / actionscript 2.0
code:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
vidTV.attachVideo(stream_ns);
stream_ns.play("video.flv");
//
myPlayPauseButton.onRelease = function (){
if(myPlayer.paused){
myPlayer.play();
}else{
myPlayer.pause();
}
}
what seems to be wrong?
Please help....thanks.
Johan,
-
I also tried:
myPlayPauseButton.onRelease = function (){
if(vidTV.paused){
vidTV.play();
}else{
vidTV.pause();
}
}
but doesn't work neither.
-
sorry got it figured it out
myPlayPauseButton.onRelease = function (){
if(ns.paused){
ns.play();
}else{
ns.pause();
}
}
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
|