Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Urgent Help with FLV rewind functionnality

Urgent Help with FLV rewind functionnality

2004-02-25       - By gilles BERTRAND

 Back
Reply:     1     2  

Nothing works

could somebody tell me wy this doesn't work it goes forward all right
but not rewind
// a videoinstance named 'my_video' is placed in the clip 'videoHost'
var connection_connection;
var stream_stream;
// hide video to check dimensions first
playVideo = function ()
{
  connection_connection = new NetConnection();
  // Opens a local connection through which you can play back video
(FLV) files from an HTTP address or from the local file system.
  connection_connection.connect(null);
  stream_stream = new NetStream(connection_connection);
  // stream_stream.setBufferTime(3);
  myVideo.attachVideo(stream_stream);
  stream_stream.play("essai.flv");
  stream_stream.onMetaData = function(obj)
  {
    trace(obj.duration);
    trace(obj.framerate);
  };
};
playVideo();
ff = function ()
{
  if (stream_stream.time<=0)
  {
    trace("ok");
  }
  else
  {
    b = Math.round(stream_stream.time)-1;
    stream_stream.seek(b);
  }
  // stream_stream.pause();
};

rw.onPress = function()
{
  a = setInterval(ff, 500);
};
rw.onRelease = function()
{
  clearInterval(a);
};
seek.onPress = function()
{
  stream_stream.seek(50);
};

Gilles


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105246
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)




Earn $52 per hosting referral at Lunarpages.