# If else statement help

**URL:** <https://forum.kirupa.com/t/if-else-statement-help/207460>\
**Category:** flash\
**Created:** [November 17, 2006, 7:40pm UTC](https://forum.kirupa.com/t/if-else-statement-help/207460 "2006-11-17T19:40:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [November 17, 2006, 7:40pm UTC](https://forum.kirupa.com/t/if-else-statement-help/207460/1 "2006-11-17T19:40:15Z")

</div>

Hello,  
I have most of the basics down in actionscripting. I want to learn a little bit more on if else statements. I have an issue right now that I am pretty sure needs to use the if else statement.

What I have is an FLV playing in a browser. When that FLV is done playing, I want it to getURL to a different location. So basically when the FLV is done it goes to the next HTML page.

I attempted and got this far 😛 :  
[AS]  
[COLOR=#993300][/COLOR]var nc:NetConnection = new NetConnection();  
nc.connect(null);  
var ns:NetStream = new NetStream(nc);  
vidPlayer.attachVideo(ns);  
ns.play("…/media/kfx1.flv");

jumpURL();  
function (jumpURL) {  
if (vidPlayer == stopped()) {  
getURL(‘vforum.html’, \_blank);  
} else {  
trace(“doing nothing”);  
}  
}

[/AS]

jumpURL is the function it will call when vidPlayer is done. Thanks in advance.
