# Can't get at a button with AS (wtf!?)

**URL:** <https://forum.kirupa.com/t/cant-get-at-a-button-with-as-wtf/252739>\
**Category:** flash\
**Created:** [February 22, 2008, 11:19pm UTC](https://forum.kirupa.com/t/cant-get-at-a-button-with-as-wtf/252739 "2008-02-22T23:19:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveMania](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@DaveMania](https://forum.kirupa.com/u/DaveMania)\
**Post date:** [February 22, 2008, 11:19pm UTC](https://forum.kirupa.com/t/cant-get-at-a-button-with-as-wtf/252739/1 "2008-02-22T23:19:53Z")

</div>

I’m trying to get at a button to do some onRelease stuff - it’s path is be

\_root.contentObjects.mcTopRight.btnNewer

but I just can’t get at it in any way shape or form. I can do stuff with it with actionscript attached directly to the button but I can’t call it.

I believe this could be because the button is in an imported swf (loaded into contentObjects)

I tried placing a button on the root of the swf and accessing that (would have been \_root.contentObjects.testButton) but I can’t even get at that.

Pleeeeaaaase help
