A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: unactive button

  1. #1
    Member
    Join Date
    Aug 2004
    Location
    slovenia
    Posts
    34

    unactive button

    Hi,

    I haven't written any code yet because I really don't know how to deal with the problem. Here's the case.

    I have a scroll with images. Over the first half og the scroll is a frame. If you move the cursor over the other half of the scroll, the cursor changes to arrows and the scroll accelerates. If you click on the image, it shows the bigger image. So far everything is clear.

    But how can I make buttons over images active only in the frame over the first half of the scroll and "switch them off" when the mouse is over the other half and the cursor changes into arrows?

    THX for the any help.

    piki

  2. #2
    Senior Member
    Join Date
    Jul 2005
    Posts
    165
    Use Button.enabled = false to disable buttons, and change it to true in order to reactivate them.
    use Button.useHandCorsor = false to hide the hand cursor.
    I believe you can put a clear button over the half of the menu that should cause the scroll - if the buttons overlap only the top one is active. if you tell this button not to use the hand cursor - is that what you wanted?

  3. #3
    Member
    Join Date
    Aug 2004
    Location
    slovenia
    Posts
    34
    You've just shown me the light. THX,Atarsh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center