# FLV ? on Playing a movie clip before loading

**URL:** <https://forum.kirupa.com/t/flv-on-playing-a-movie-clip-before-loading/167306>\
**Category:** flash\
**Created:** [October 27, 2005, 3:03am UTC](https://forum.kirupa.com/t/flv-on-playing-a-movie-clip-before-loading/167306 "2005-10-27T03:03:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr\_red](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@dr\_red](https://forum.kirupa.com/u/dr_red)\
**Post date:** [October 27, 2005, 3:03am UTC](https://forum.kirupa.com/t/flv-on-playing-a-movie-clip-before-loading/167306/1 "2005-10-27T03:03:17Z")

</div>

Hey All,  
I’ve created an flv player that allows you to do the basics of playing/pausing and rewinding(from [gotoandlearn.com](http://gotoandlearn.com)).

My problem is that I want to play an animation then have a button that then loads the flv file and plays it. Then when the video is finished to go back and play the animation again.

How can I do this?

So far I can’t even get the video to begin paused instead of loading and instantly playing.

Please help!

This is the code I have so far:

```auto
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("intro2.flv");
rewind_btn.onRelease = function(){
	ns.seek(0);
}

play_btn.onRelease = function(){
	ns.pause();
}
stop();

```

Many thanks,  
-Dr Red
