# Problem with setInterval and Netstream together

**URL:** <https://forum.kirupa.com/t/problem-with-setinterval-and-netstream-together/331667>\
**Category:** Uncategorized\
**Created:** [September 22, 2013, 8:22am UTC](https://forum.kirupa.com/t/problem-with-setinterval-and-netstream-together/331667 "2013-09-22T08:22:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krzysiekkcn](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@krzysiekkcn](https://forum.kirupa.com/u/krzysiekkcn)\
**Post date:** [September 22, 2013, 8:22am UTC](https://forum.kirupa.com/t/problem-with-setinterval-and-netstream-together/331667/1 "2013-09-22T08:22:14Z")

</div>

Hi,  
I’m trying to create a simple presentation in flash AS2, but I got some problems.

I’ve made a file with all things that doesn’t work correctly (ATTACHEMENT):

There is:

- first frame - It is a start page with button to get inside
- second frame - playing intro FLV video (in video 1 emiter), next playing transition MC, next wait 2 seconds and go to frame 3
- frame 3-30 - playing slide MP4 video (in video 2 emitter) \<-- because video 1 stays for background  
In frames 3-30 you can click a buttons next and prev frame: it should work like:
- play transition MC, wait 2 seconds, goto next frame.

^ I didn’t add this button actions to my test file, cause it is not making this problem.

Problems:

- when you click button M (back to menu - code: gotoAndStop(1) ![](http://forum.kirupa.com/uploads/kirupa/4273/fd79aef96ec5bacd.gif) it is jumping to frame 1 and backing for played video.
- when you are on first video on video2 it is ok, but when you are going to next frame, video2 changes correctly and for a while changes back to first video.  
(With out setInterval it works correctly).

Please help me with that, I really do not know how to fix it up.

Greetings, and thank you in advance.  
KrzysiekKCN
