10-07-2009, 06:03 AM
as the title says i have a problem with a image shower
i have 3 movieclips and one button
instance names are eye1 eye2 eye3 (the moviclips) and submit (button)
the code
i have 3 movieclips and one button
instance names are eye1 eye2 eye3 (the moviclips) and submit (button)
the code
ACTIONSCRIPT-Code:
eye1._alpha = 0; eye2._alpha = 0; eye3._alpha = 0; submit.onRelease = function() { num == Math.ceil(Math.random()*2) if (num == 0) { eye1._alpha == 100; eye2._alpha = 0; eye3._alpha = 0; } else if (num == 1) { eye2._alpha == 100 eye1._alpha = 0; eye3._alpha = 0; } else if (num == 2) { eye3._alpha == 100 eye1._alpha = 0; eye2._alpha = 0; } }; |