[BNM] Flash help!
Sebastian von Bischopink
lists at allaboutseb.com
Wed Apr 5 18:22:44 BST 2006
Hi BNM,
i am having a strange problem with some actionscript that i did for
a rollOver menu.
i have the following code attached to one of my menu movie clips:
onClipEvent (enterFrame) {
if (this._y == 0 && this.hitTest(_root._xmouse, _root._ymouse)) {
trace ("hit");
_root.showContact();
} else {
if (! this.hitTest(_root._xmouse, _root._ymouse)) {
_root.hideContact();
trace ("not_hit");
}
}
}
i am getting the trace messages so the hitTest is successful, but the
_root.showContact();_root.hideContact(); functions aren't working.
The weirdest thing is that if I change onClipEvent to (mouseMove)
everything works as it should (the response isn't great).
The code i am using for _root.showContact(); :
function showContact() {
_root.menu.contact_menu.contact_top.alphaTo(60, 0.3, "easeInSine");
_root.menu.contact_menu.slideTo(465, -50, 0.5, "easeOutSine", 0,
_root.showCLinks);
}
What to do? Appreciate any help,
Seb
More information about the BNMList mailing list
BNMList is hosted by Screenlists, a Screen-Play.net service