# This should work. it just that my flash resists me

**URL:** <https://forum.kirupa.com/t/this-should-work-it-just-that-my-flash-resists-me/184816>\
**Category:** Uncategorized\
**Created:** [April 8, 2006, 1:47am UTC](https://forum.kirupa.com/t/this-should-work-it-just-that-my-flash-resists-me/184816 "2006-04-08T01:47:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpgfan](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@rpgfan](https://forum.kirupa.com/u/rpgfan)\
**Post date:** [April 8, 2006, 1:47am UTC](https://forum.kirupa.com/t/this-should-work-it-just-that-my-flash-resists-me/184816/1 "2006-04-08T01:47:36Z")

</div>

on (press) {  
if (\_root.pass = “totally bloody //551”) {  
\_root.gotoAndStop(“freeplay”);  
} else {  
\_parent.messagebox = “invalid pass”;  
}  
}  
i dont get it!!! it should work!!! i cheaked all te vars!! WTF??

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [April 8, 2006, 2:12am UTC](https://forum.kirupa.com/t/this-should-work-it-just-that-my-flash-resists-me/184816/2 "2006-04-08T02:12:50Z")

</div>

```auto
on (press) {
	if (_root.pass == "totally bloody //551") {
		_root.gotoAndStop("freeplay");
	} else {
		_parent.messagebox = "invalid pass";
	}
}

```

You had the wrong operator if your if statement, the = assigns a value, which wouldn’t make logical sense to do inside of your if statement paraemeters. == compares the two values to see if they are equal (=== compares the values and the datatype).
