Skip to main content
Participating Frequently
Feb 11, 2023 6:48 AM UTC
Question

How do I put a button in the "hit" position in ActionScript 3.0 after being clicked?

I made a keyframe with a button that says "start". After clicking the start button, the title and button fade away by using "click to go to frame and play" at frame 2 till the end of the classic tween that fades the button and title. The problem is, I want the button to be in its "hit" frame after the user clicks it while it fades away. How do I do that?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    kglad
    Community Expert
    Community Expert
    Feb 11, 2023 2:58 PM UTC

    there's nothing visible on stage in the hit frame of a button.  that frame just determines the region of button responsiveness.

    Translate
    Participating Frequently
    Feb 12, 2023 5:33 AM UTC

    Oh, okay. Thank you for that. 🙂 I thought I could make a frame change upon the button being "hit".

    Translate
    kglad
    Community Expert
    Community Expert
    Feb 12, 2023 5:38 AM UTC

    you can, but not by using the hit frame of a button.

     

    for easier control, use a movieclip button.

    Translate