Hi all,
this is a silly problem that, because it is silly, makes me nervous and
frustrate at the same time.
I've got a class (extends Sprite) that has embedded some MovieClips. Those
MCs are actually containing textboxes with the name of the sections.
for each MC
MC.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
MC.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
private function onRollOut(e:MouseEvent):void {
//change colors here of e.currentTarget
}
private function onRollOver(e:MouseEvent):void {
//change colors here of e.currentTarget
}
In the Main Class I am adding the above class to the displayList and I set
Click Listeners for each of its children
var CurrentLink:Sprite // assume it holds a reference of a link
var linkbar:LinkBar = new LinkBar();
linkBar.link1.addEventListener(MouseEvent.CLICK, onClick);
private function onClick(e:MouseEvent):void {
e.currentTarget.mouseEnabled = false;
CurrentLink.mouseEnabled = true;
CurrentLink = e.currentTarget;
}
The link clicked is now disabled but there is a little problem, the
CurrentLink still listens for RollOut events as its color change when i take
the mouse off it. I think it shouldn't because I am setting its mouseEnabled
to false.
Any Ideas?
--
Omar M. Fouad - Adobe Flashâ„¢ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [email protected]
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders