# A loop question

**URL:** https://forum.kirupa.com/t/a-loop-question/81060
**Category:** flash
**Created:** [February 27, 2005, 11:09am UTC](https://forum.kirupa.com/t/a-loop-question/81060 "2005-02-27T11:09:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mgyth](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mgyth](https://forum.kirupa.com/u/mgyth)
#### Post date: [February 27, 2005, 11:09am UTC](https://forum.kirupa.com/t/a-loop-question/81060/1 "2005-02-27T11:09:50Z")

</div>

Hi, I needed to make a loop for a intro splash, and since I have only programmed in php before, I tried this (to my suprise it didn’t give a syntax error):

```auto

count=0;
if (count < 5) {
	gotoAndPlay(40);
	count++;
	} else {
		if (count = 5) {
		getURL("http://www.example.com/home.php","_self");
		}
	}
trace ("This is loop nr: "+count+".");

```

But the count variable, didn’t change value, it just stayed at 1.  
So sumthing must be wrong.  
Can someone more familiar with actionscript, help me out a bit here.  
All help is appreciated.
