Adding button interactivity


show more Adding button interactivity provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash Professional CS5 Essential Training show less
please wait ...

Adding button interactivity

Now we'll add some buttons to our application to be able to pause and resume the slideshow. So on the Stage I have a movie clip that is an instance of a symbol called buttons. Notice its instance name is buttons_mc. Inside of buttons_mc there are two layers. The background layer is a transparent rectangle. This enables me to increase the hit state when I add interactivity to this movie clip. The way it's going to work is that when the person rolls over anything in this area, the buttons will show, and when they roll out, the buttons will hide.

On Layer 1, I have the two buttons, so there is play_btn and pause_btn. So play_btn and pause_btn are inside of buttons_mc. So we will start with showing and hiding buttons_mc based on the mouse position. So select buttons_mc on the Stage, open the Code Snippets panel, and inside of the Actions area double- click Click to Hide an Object. In your code, scroll down and change visible to alpha.

That should all be lowercase and it should turn bl...

Adding button interactivity
Video duration: 6m 31s 7h 7m Beginner

Viewers:

Adding button interactivity provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash Professional CS5 Essential Training

Subject:
Web
Software:
Flash Professional
Author:
please wait ...