# Looping problem

**URL:** <https://forum.kirupa.com/t/looping-problem/204619>\
**Category:** Uncategorized\
**Created:** [October 21, 2006, 4:04pm UTC](https://forum.kirupa.com/t/looping-problem/204619 "2006-10-21T16:04:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucretius](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@lucretius](https://forum.kirupa.com/u/lucretius)\
**Post date:** [October 21, 2006, 4:04pm UTC](https://forum.kirupa.com/t/looping-problem/204619/1 "2006-10-21T16:04:11Z")

</div>

Hi,

I am quite new to flash and have been everywhere for a solution to this problem but have had no luckl as yet.  
I am trying to create a presentation which is made up of 4 pictures which then go on to play a movie.  
This all works well but when i try to loop it, it just goes back to the beginning of the movie and not to the start of the 4 pictures. i have added various action scrips and even the following had no effect.

[SIZE=3]if (!loopCount) {  
var loopCount:Number = 0;  
}  
loopCount++;  
if (loopCount \>= 3) {  
this.gotoAndPlay(1);[/SIZE]  
[SIZE=3][/SIZE]  
[SIZE=3]Why is it not going back to the very first frame which is a picture??? As I said I am very new to this and some help would be really appreciated.[/SIZE]  
[SIZE=3][/SIZE]  
[SIZE=3]thanks in advance

[/SIZE]
