# How to move foucs over one dilog box and 2 buttons

**URL:** <https://forum.kirupa.com/t/how-to-move-foucs-over-one-dilog-box-and-2-buttons/247519>\
**Category:** flash\
**Created:** [December 25, 2007, 8:44am UTC](https://forum.kirupa.com/t/how-to-move-foucs-over-one-dilog-box-and-2-buttons/247519 "2007-12-25T08:44:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chethan](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@chethan](https://forum.kirupa.com/u/chethan)\
**Post date:** [December 25, 2007, 8:44am UTC](https://forum.kirupa.com/t/how-to-move-foucs-over-one-dilog-box-and-2-buttons/247519/1 "2007-12-25T08:44:35Z")

</div>

Hi,

I am chethan. Now I am in a small issue in focusing the buttons and a dilog box.

Actually I have 2 buttons and a dilog box. Two buttons will be on screen only and a dilog box will appear in runtime. Dilog box contains 3 buttons like ‘Save’, ‘Discard’ and ‘Cancel’.

**Now my problem is that, when I close dilog box by pressing ‘Cancel’ button then focus no more works on two buttons and focus will disappear on screen and I used “trace(“Now Button1’s focus is=”+Selection.getFocus());” to findout the focus status, but it says “Now Btton1’s focus is=null” in output window.**

Below is the logic used :

1. First I made buttons to be “enabled=false” when dilog box arises.
2. And I made buttons to be “enabled=true” when dilog box closes by pressing ‘Cancel’ button.

Note: I have attached a jpeg file which shows 2 buttons and a dilog box.

Please please help me…

Thanks you so much for listening my problem -

Your’s Faithfully-  
Chethan
