# Menu AS code explanation

**URL:** <https://forum.kirupa.com/t/menu-as-code-explanation/250147>\
**Category:** flash\
**Created:** [January 25, 2008, 11:29pm UTC](https://forum.kirupa.com/t/menu-as-code-explanation/250147 "2008-01-25T23:29:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cuorebrave](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@cuorebrave](https://forum.kirupa.com/u/cuorebrave)\
**Post date:** [January 25, 2008, 11:29pm UTC](https://forum.kirupa.com/t/menu-as-code-explanation/250147/1 "2008-01-25T23:29:42Z")

</div>

Hey all, I believe this is the code from a menu bar that I have on my site, that directs you once-clicked to a different page within the flash movie. Could one of you experts give me a hand translating this code, and letting me know how it works and what it does? Thanks for the view,

```php
on (rollOver) {
	if (_root.b<>_parent.p) {
		_parent.gotoAndPlay("s1");
	}
}
on (releaseOutside, rollOut) {
	if (_root.b<>_parent.p) {
		_parent.gotoAndPlay("s2");
	}
}
on (release) {
	if (_root.b<>_parent.p and _root.m<>1) {
		//_parent.lin.gotoAndPlay(2);
		//_parent.lin2.gotoAndPlay(2);
		_root.menu["b"+_root.b].gotoAndPlay("s2");
		//_root.cont.cont.gotoAndPlay("diss");
		_root.b = _parent.p;
		cont.gotoAndPlay("s1");
		_root.scroller.gotoAndStop("s0");
	}
}

```
