Rollover explanations

I was wandering how you can make it so that when you move over a button, like a button for “about us”, a box appears telling you what the button is for?

I think I heard how to do it before, something with:

on rollover
play movie clip

but i cant get it right :frowning:

thankyou for your help

Regards
NoRegrets
www.timewaste.co.uk

You got the idea right, just apply an action similar to this one to your button:[AS]on(rollOver){
_root.aboutMC.play();
}[/AS]

“aboutMC” would be the instance name given to the movieclip that holds the about us info that you want to appear on rollOver.

thx a tonne eg, works fine now :slight_smile:

no problem. =)

one problem, when I use this method to make it play the movie on rollover, how do I place it where I want without it being on the actual stage?

thx for your help again

Regards
NoRegrets

I’m not quite sure I understand you, could you explain it a bit more?

Well, you know when it plays the MC when it rolls over the button, how do you make actionscript position the movieclip where you want it to be, without placing it yourself on the main stage…

If you just use that piece of AS, won’t it play the MC anywhere on the stage?

Regards
NoRegrets

Well if the MC isn’t on the stage then how is it going to play?

What you could do is set the MC’s visible property to false meaning it will be invisible and then set it back to true on rollOver of that button.

So first, place your aboutMC wherever you want it to be on the stage then apply this action to it to make it invisible:[AS]onClipEvent (load) {
this._visible = false;
}[/AS]

Now on your button you would apply this action to it:[AS]on (rollOver) {
_root.aboutMC._visible = true;
_root.aboutMC.play();
}
[/AS]
That would make aboutMC visible again and play it as well on rollOver. I hope that is what you’re trying to do. =)

that’s exactly what I was trying to do, thx again

sorry for the trouble

Regards
NoRegrets

Hey no problem. =)