Hey all. I’m a huge noob, so apologies for a basic question - I have spent a while (read: hours) sifting through information and trying to figure this out, but I just can’t. Need help. This seems like a good place. Using Flash 8.
Here’s what I am doing: I am making small flash modules for my site, to be embedded in an html page. They’re simple, just a scrolling text window (which I have made with components, no problem) and a rollover movieclip at the top that functions as a link (again, no problem).
Here’s what I need: When the mouse enters the flash movie, I want to change the appearance of the background layer. When the mouse exits the flash movie, I want the appearance of the background layer to revert back to its original state. I’ve been doing this by using the following code:
Quote:
[SIZE=1] //turn red BG on
_root.BGHit_mc.onRollOver = function() {
_root.MainClip_mc.gotoAndStop(2);
};
//turn red BG off
_root.BGHit_mc.onRollOut = function() {
_root.MainClip_mc.gotoAndStop(1);
};[/SIZE]
As you can see, rolling over a buried hitbox makes the background movie clip move forward one frame, changing its appearance. Rolling out of the hitbox reverts it.
The problem arises when I try to put any other button or a dynamic text box on top of the background hitbox. As I’m sure anybody with experience knows, Flash counts these as onRollOut events for the background hitbox.
I need to know a technique to change the background appearance when the embedded flash movie is moused over, but that doesn’t rely on the onRollOver function and its confusable nature.
Apologies for the length of this post, I wanted to make it as clear as possible. Thanks in advance for your help - if you need more information let me know.