From the course: Flash Professional: Shortcuts

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Showing and hiding instances with the new visible property

Showing and hiding instances with the new visible property - Flash Professional Tutorial

From the course: Flash Professional: Shortcuts

Start my 1-month free trial

Showing and hiding instances with the new visible property

The Visible property allows you to simultaneously hide and disable interactivity for a particular instance. Previously, this feature was only available using ActionScript. Now if you don't typically use ActionScript, you may not understand the significance of the Visible property and why in some cases it's very superior to the Alpha property. So on the stage, I'm going to hide the title screen, and I have the kid movie clip. In that movie clip, I have a really simple animation of the kid jumping. Then I have some ActionScript code that I got from a code snippet. I'll select the first keyframe of the Actions layer and press Option+F9 on the Mac or F9 on the PC to open the Actions panel and view the code. In here, you'll see that I'm adding an event listener. When I click on the boarder, I'm going to make the boarder job by playing the Timeline. The movie clip is stopped on frame one. So once it plays the jump animation once, it'll come back to the first frame and stop again. So let's…

Contents