# \[CS3 AS2\] Button Switch IF stament for video player

**URL:** https://forum.kirupa.com/t/cs3-as2-button-switch-if-stament-for-video-player/272167
**Category:** flash
**Created:** [October 2, 2008, 3:40pm UTC](https://forum.kirupa.com/t/cs3-as2-button-switch-if-stament-for-video-player/272167 "2008-10-02T15:40:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sdbdogwood](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sdbdogwood](https://forum.kirupa.com/u/sdbdogwood)
#### Post date: [October 2, 2008, 3:40pm UTC](https://forum.kirupa.com/t/cs3-as2-button-switch-if-stament-for-video-player/272167/1 "2008-10-02T15:40:49Z")

</div>

I am working on a video player that will have different Languages. The problem that i am have is that i can get the video to switch but i cant get the video to switch back. I have uploaded the file and here is the code that i have have a problem with.

lang.onRelease = function() {  
if &nbsp;(play = English)  
{  
this.gotoAndStop(“spanish”);  
ns.play(Spanish);  
theVideo.attachVideo(ns);  
}  
else if (play = Spanish)  
{  
this.gotoAndStop(“english”);  
ns.play(English);  
theVideo.attachVideo(ns);

```
    }
    };

```

It would be great if someone could help. I need to have this done today.

Thanks  
Mike
