  | |  | flash MX 2004 event model | flash MX 2004 event model
2004-02-20 - By Santiago Esperanza
Back when you assign a button event like onRollOver to a clip, you are assigning
it to the contents of that clip. So, whenever you roll over anything within
that movieclip (or the contents of subsequent timelines within) the
onRollOver is handled for that clip. The outer-most clip has precedence as
all interior clips are what make up its contents. So, if any clip within
the outermost clip has an onRollOver event assigned to it, it will be
ignored in favor of the parent clips event.
Can you pass events down to interior clips? No. Instead, you 'll either
have to re-assign your onRollOver events accordingly (so each element
behaves independantly to reflect the desired effect) or figure on using
hitTest to determine mouse events manually.
-se
>From: Marc Antony Vose <suzerain@(protected) >
>Reply-To: flashcoders@(protected)
>To: flashcoders@(protected)
>Subject: [Flashcoders] flash MX 2004 event model
>Date: Fri, 20 Feb 2004 18:28:04 -0500
>
>hi there.
>
>this is a kind of general question.
>
>I am dynamically creating several movie clips in a movie. in this
>instance, i am creating a movie, and attaching a movie to that, and than
>attaching a movie to the enclosed movie.
>
>all of the movieclips have onRollOver handlers, and the problem is that the
>lowest in the pecking order seems to be capturing all the mouse overs. the
>construction is this:
>
>movie2
>movie1
>movie0
>
>if movie 1 is inside movie0, and movie2 is inside movie1, i would expect
>that movie2 would be on top, and, hence, would be accepting mouse events
>before the two underneath it.
>
>however, movie0 is always getting all mouse events, regardless.
>
>so, though it seems counterintuitive to me, having worked with other IDEs
>that were different, how can i pass a mouse event up the chain so that, for
>example, the rollovers will work in buttons contained in the movie2 clip?
>
>any insights here?
>
>--
>Marc Antony Vose
>http://www.suzerain.com/
>
>Goddamn writers -- all they do is use up trees and ruin people 's eyes.
>-- Gus, from Basic Instinct, by Joe Esterhaus
>
>=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>Supported by Fig Leaf Software
>=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>Be sure to check the archives and the wiki:
>http://chattyfig.figleaf.com/
>=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104887
>=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>To unsubscribe send a blank e-mail to: Normal Mode:
>flashcoders-unsubscribe@(protected)
>Digest Mode: flashcoders-digest-unsubscrive@(protected)
>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
Take off on a romantic weekend or a family adventure to these great U.S.
locations. http://special.msn.com/local/hotdestinations.armx
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104890
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |