Actionscript 3.0: MovieClip MovieClip over

Just a Flash Developer / Actionscript is preparing to write a function similar to a tooltip, clashes immediately with the problem of the propagation of events between overlapping MovieClips. In fact, if a MovieClip (B) is superimposed to a MovieClip (A), which responds, for example, an event MouseEvent.Mouse_OVER , by hovering on the MovieClip (B) no event be higher than intercepted by the MovieClip (A):

MovieClip MovieClip over

In this scenario it is necessary to inhibit the interception of events by the MovieClip (B). : This is possible by setting to false the property mouseEnabled :

1
= false ; mcb. mouseEnabled = false;

One Response to "Actionscript 3.0: MovieClip MovieClip over"

  1. August 21, 2009 Undolog.com "Preventing the spread of events with jQuery :

    [...] Event bubbling. This behavior (which is also found in other development environments: See Actionscript 3.0: MovieClip MovieClip over) is in itself useful in many cases. However, in others, it creates many problems. For example [...]

Leave a comment

XHTML TAG PERMIT: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL 


Stop SOPA