![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
You just created one function that sets the visible
property of a movie clip to true
when the user releases the mouse button after a button click. You can probably guess how to create another function that hides the screen_mc movie clip: by setting the movie clip _visible
property to false
when the user clicks an Off button. You'll create that function now.
offButton_btn
.
Remember, earlier you assigned an instance name of offButton_btn to an instance.
visible
property of the screen_mc movie clip from true
to false
.function to hide animation
.
Your entire script should appear as follows:
//Initialize document to hide screen movie clip. this.screen_mc._visible = false; //function to show animation this.onButton_btn.onRelease = function(){ screen_mc._visible = true; }; //function to hide animation this.offButton_btn.onRelease = function(){ screen_mc._visible = false; };
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |