Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Thread Tools Rate Thread Display Modes
Old 06-25-2007, 11:50 AM   #1
Chuck Taylor
AS 3.0 Donkey
Join Date: Feb 2007
Posts: 123
Default How to prevent children from listening to parent's events

So I have set a mouseOver eventListener for an MC which contains a child. Whenever the mouse moves over the child, it hijacks the parents event. How do I prevent this?
Chuck Taylor is offline   Reply With Quote
Old 06-25-2007, 01:07 PM   #2
hangalot's Avatar
Join Date: Feb 2002
Location: on the road
Posts: 2,858

mouseChildren = false
oi poloi
hangalot is offline   Reply With Quote
Old 06-25-2007, 01:38 PM   #3
Chuck Taylor
AS 3.0 Donkey
Join Date: Feb 2007
Posts: 123

Thanks a lot, man!
Chuck Taylor is offline   Reply With Quote
Old 06-25-2007, 04:18 PM   #4
dr_zeus's Avatar
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999

MouseEvent.ROLL_OVER and MouseEvent.ROLL_OUT were designed for this purpose as well. Your children won't "hijack" the event.
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KEY_UP events missing aerosoul ActionScript 3.0 5 05-29-2008 06:39 AM
Listening to Events in subclasses dispatched from superclasses NappaStefano ActionScript 2.0 4 05-03-2007 05:20 PM
EventBroadcaster - Simple events solution... MichaelxxOA ActionScript 2.0 18 09-22-2006 05:21 PM
this _root and that _root, parents, children, loadMovie... beau Other Flash General Questions 2 11-04-2004 05:42 PM
Missing events for components? Denaes Components 0 10-05-2003 04:04 PM

All times are GMT. The time now is 07:05 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.