Home > Articles

  • Print
  • + Share This
From the author of

From the author of

Making It Come to Life

Now, if you play your application, the text would change to the rollover state as you move your mouse over the text, and change back to the normal state as you move your mouse away from the text area, thus showing true interactivity. Now, you need to add the interactivity to show when the user clicks on the text. For this, you will add a new Event.

  1. In the Event popup, select mouseDown.

  2. In the Action popup, select Sprite, Change Cast Member.

  3. Select the "down" state for your text.

    This will give the appearance that the text is reacting to the user's interaction.

  4. To finish off the visible elements of the interaction, I also add a mouseUp command. In the Event popup, select mouseUp.

  5. In the Action popup, select Sprite, Change Cast Member.

  6. Select the "rollover" state for your text.

    The reason you are selecting the rollover state and not the normal state is because your mouse is still over the text—it has not moved to some other area of the screen. These commands will certainly give the appearance that the text is responding to the commands given by the user, based on how and where he moves his mouse.

  • + Share This
  • 🔖 Save To Your Account