PDA

View Full Version : I have a strange problem


good to know
08-10-2006, 11:08 PM
Hello,

I have a strange mc behavior problem.


Description:

The movie clips set as buttons – when cursor is over it a graphic element slides out of the mc in question, when cursor is out the graphic slide in.



Problem:

When cursor is over the graphic element is slid out. As cursor is dragged out, the graphic begins sliding in. If in this moment one drags cursor over sliding graphics it stops sliding in, gets back to its slid out position and begins blinking intensively until mouse is out of graphics.



I have a few swfs with many mcs like this and each one behaves the same way, so there must be a principle behind this behavior.


Thanks in advance

abacajan
08-11-2006, 07:58 AM
perhaps a fla or some actionscript would be useful.

im suspecting you are using a gotoAndPlay(); function. this could cause some problems but its hard to tell unless we can see your code.

good to know
08-12-2006, 08:43 PM
spots_mc.onRollOver = function () {
spots_mc.gotoAndPlay("_over");
}
spots_mc.onRollOut = function () {
spots_mc.gotoAndPlay("_out");
}


Where "spots_mc" is the mc in question, looks rather standard isn't it?

sunlis
08-13-2006, 06:13 AM
I'm going to guess that whatever is sliding in and out is within the mc in question.
If so, then when the mouse moves over any part of that mc, it will initiate the rollOver function.
You might have to put the thing that is sliding in/out in a seperate mc to make it work.
Or, use a button. Create 2 MCs, one that shows the object sliding in, the other of it sliding out. Put a stop(); action on the last frame of each new MC.
Add in the slide out mc on the Over frame, and the slide out mc on the Up frame.
Then on the hit frame, put the shape that you want to trigger the rollOver function.
There are many other solutions, but I think I'll stop there.
Hope this helps,

Sunlis

good to know
08-13-2006, 01:00 PM
yes, the sliding graphic is within the mc.

thank you for the idea to the put sliding in mc in the hit state.

Is there a way to difine hit area for a movie clip which is set as a button?

thanks

good to know
08-21-2006, 12:09 PM
I put another mc with "0" alpha over problematic zone

that does the trick