Im still a beginner.
I want to crate an array of 12 different movie clips. and have the current clip fade in on the press of corresponding button in seperate movie clip.
While that fades in I want to fade out the previous clip that was showing. Here is what I think the code would look like but It doesnt work any tips?
Code:
var allclips:Array = [mc1, mc2, mc3, mc4, mc4, etc];
onEnterFrame = function() {
if (previousclip._alpha > 0) {previousclip._alpha -= 10}
if (currentclip._alpha < 100) {currentclip._alpha += 10}
btn1.onpress = function() {
previousclip = allclips
mc1 = currentclip};
question 2:
I would also like to make the movie clips not visible if the alpha is 0 because there are buttons in each movie clip.
Would I insert this code into the onEnterFrame?
Code:
if (previousclip._alpha = 0) {previousclip._visible = false}
if (previousclip._alpha > 0) {previousclip._visible = true} (