# Really weird AS problem(simple script)

**URL:** https://forum.kirupa.com/t/really-weird-as-problem-simple-script/193376
**Category:** flash
**Created:** [July 12, 2006, 10:26pm UTC](https://forum.kirupa.com/t/really-weird-as-problem-simple-script/193376 "2006-07-12T22:26:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ohls](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@Ohls](https://forum.kirupa.com/u/Ohls)
#### Post date: [July 12, 2006, 10:26pm UTC](https://forum.kirupa.com/t/really-weird-as-problem-simple-script/193376/1 "2006-07-12T22:26:41Z")

</div>

```auto
_root.leftmenu.kurs1.kursbtn.onRelease = function(){
    _root.leftmenu.kurs1.gotoAndPlay("kursrollIn");
}
_root.leftmenu.kurs1.valpbtng.onRelease = function(){
    _root.leftmenu.kurs1.gotoAndPlay("valprollin");
}

```

I triple checked that the all the instance names are 100% correct, that the frame names are correct and that the script doesnt have any errors. But this script just wont work =/.

THe first button works, the “kursbtn” one. But the other one wont even register(I dont get that hand mouse thingy when i mouseover the MC). I tried putting a new MC and making it into a button in \_root.leftmenu.kurs1 but it didnt work either.

I put a button on the \_root and it worked fine, so the

```auto
_root.leftmenu.kurs1.gotoAndPlay("valprollin");

```

row of the code is working properly. Has to be something with the

```auto
_root.leftmenu.kurs1.valpbtng.onRelease = function(){

```

row.

Thanks for you time and sorry if my english is confusing and bad.
