Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 01-09-2007, 03:50 AM   #1
oroby
Registered User
 
Join Date: Feb 2006
Posts: 2
Default FLV playback problem

Hi!

I have a FLV player which working correctly with that code below. It has a play_btn which stops and resumes the NetStream with the pause method. How can I give it a "third stage" to rewind the NetStream and play it again if it ends? Thx for Your help!

Robert

Here is the code:

katt_btn._visible = false;

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

var ns:NetStream = new NetStream(nc);

emb_video.attachVideo(ns);

ns.play("movie.flv");

ns.onStatus = function(info) {
if(info.code == "NetStream.Buffer.Flush") {
katt_btn._visible = true;
katt_btn.gotoAndPlay(1);
katt_btn.onRelease = function(){
getURL("http://index.html","_blank");
}
}
}

play_btn.onRelease = function () {
ns.pause();
if (this._currentframe == 1) {
this.gotoAndStop("pause");
}
else {
this.gotoAndStop("play");
}
}
oroby is offline   Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
keypress simple problem loubell ActionScript 2.0 2 07-28-2005 03:40 PM
fade in, fade out movieClip button problem... tykomusic ActionScript 2.0 2 06-03-2005 04:17 PM
Flash Number type and c# float and decimal types. Convertion problem within Flash. maglez ActionScript 2.0 2 06-02-2005 05:14 PM
global TextField Problem! Guru wonted mediaholic ActionScript 1.0 (and below) 3 07-20-2003 10:07 AM
No loader problem but a loading problem agenba Simple Stuff (Newbies) 1 02-11-2002 06:29 AM


All times are GMT. The time now is 04:13 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.