# AS3 help please

**URL:** <https://forum.kirupa.com/t/as3-help-please/283489>\
**Category:** flash\
**Created:** [March 6, 2009, 8:08pm UTC](https://forum.kirupa.com/t/as3-help-please/283489 "2009-03-06T20:08:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moldero](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@moldero](https://forum.kirupa.com/u/moldero)\
**Post date:** [March 6, 2009, 8:08pm UTC](https://forum.kirupa.com/t/as3-help-please/283489/1 "2009-03-06T20:08:28Z")

</div>

Hey guys,  
as some of you may have done before, im pulling my hair our going from AS2 to AS3

here’s what I’m trying to do:

in AS2 i would have done something like:

in a movie clip located here: navContent.upper.rotater  
I have this code on a key frame:

```auto
where = "b2p";

```

in a movie clip located here on a higher level: navContent.  
I have this code on a key frame:

```auto

hitPlay.onRelease = function() {
    if (_root.navContent.upper.rotater.where == "b2p") {
        trace("play was hit");
    } 
};

```

in AS3 I am attempting this:

in a movie clip located here: navContent.upper.rotater  
I have this code on a key frame:

```auto
var where:String="b2p";

```

in a movie clip located here on a higher level: navContent.  
I have this code on a key frame:

```auto

//start MOUSE_DOWN play
import flash.events.MouseEvent;
hitPlay.addEventListener(MouseEvent.MOUSE_DOWN, hitOnplay);
function hitOnplay(event:MouseEvent):void {
    if (MovieClip(root).navContent.upper.rotater.where=="b2p") {
        trace("play was hit");
    }
}
//end MOUSE_DOWN play

```

any help for a frustrated AS3 noob would be greatly appreciated :emb:
