PDA

View Full Version : audioplayer cover animation


r_bartoli
07-28-2004, 11:32 AM
Hi all, i'm new here. Sorry for the bad english.

I'll try to explain my problem:
I've created an audioplayer that is a movieclip. in it, over the buttons there is an invisible button with the audioplayer shape on the hit frame.
the audioplayer is covered by a cover that closes when the mouse go out the invisible button (onRollOut) and when the mouse go over (onRollOver), the cover opens.
the audioplayer instance name is: mc_audioplayer
the audioplayer cover instance name is: mc_audioplayer_cover
the invisible button instance name is: mc_audioplayer_invbtn

on the _root timeline i write this:

mc_audioplayer.mc_audioplayer_invbtn.onRollOver = function() {
mc_audioplayer.gotoAndPlay("open");

};
mc_audioplayer.mc_audioplayer_invbtn.onRollOut = function() {
mc_audioplayer.gotoAndPlay("close");
};

in mc_audioplayer there are 6 layers:

actions
labels
inv_btn
cover
buttons
background

the problem is that now the buttons can't be clicked because there is the invisible button over them. How can I resolve the problem without loosing any functionality?

thankyou a lot.

gabe89
07-28-2004, 06:31 PM
Why do you need to use an invisible button? Couldn't you just check mc_audioplayer for onRollOver?

mc_audioplayer.onRollOver = function()

r_bartoli
07-29-2004, 12:14 AM
no i cant use mc_audioplayer.onRollOver for some problems that are difficult to explain for me.

another way to do it?

thanks