How to move foucs over one dilog box and 2 buttons

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