# Accessing the buttons on the stage

**URL:** <https://forum.kirupa.com/t/accessing-the-buttons-on-the-stage/264804>\
**Category:** flash\
**Created:** [June 30, 2008, 6:32pm UTC](https://forum.kirupa.com/t/accessing-the-buttons-on-the-stage/264804 "2008-06-30T18:32:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![funky\_vicky](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@funky\_vicky](https://forum.kirupa.com/u/funky_vicky)\
**Post date:** [June 30, 2008, 6:32pm UTC](https://forum.kirupa.com/t/accessing-the-buttons-on-the-stage/264804/1 "2008-06-30T18:32:09Z")

</div>

Hi

I am facing a problem while i am trying to access the Button object on the stage…  
I am writing the function I am using…

function progressHandler(event:VideoProgressEvent):void  
{  
var bl = Math.round(event.bytesLoaded/1000);  
var bt = Math.round(event.bytesTotal/1000);  
var time:Number = (bl/bt)\*display.metadata.duration;  
var cc = display.findNearestCuePoint(time)  
if (cc != null){  
trace(cc.name+"\_btn");// This gives me the instance name of the button.  
// Now, how can I play with the properties of the  
// button. ‘this’ here gives the main timeline…  
}  
}

Thanks for any help that can be provided…

Vicky
