Merge branch '0.8'
[swfdec.git] / test / custom / mouse-movie-below-nonevent-movie.as
blob6654cf10e5c10841d089eff76b823f3e7adfd685
1 // makeswf -v 7 -s 200x150 -r 1 -o mouse-movie-below-nonevent-movie.swf mouse-movie-below-nonevent-movie.as
3 rectangle = function (mc, color, x, y, w, h) {
4 mc.beginFill (color);
5 mc.moveTo (x, y);
6 mc.lineTo (x, y + h);
7 mc.lineTo (x + w, y + h);
8 mc.lineTo (x + w, y);
9 mc.lineTo (x, y);
10 mc.endFill ();
13 install = function (mc) {
14 mc.onRollOver = function () { trace ("onRollOver: " + this); };
15 mc.onRollOut = function () { trace ("onRollOut: " + this); };
16 mc.onDragOut = function () { trace ("onRollOut: " + this); };
17 mc.onDragOver = function () { trace ("onDragOver: " + this); };
18 mc.onPress = function () { trace ("onPress: " + this); };
19 mc.onRelease = function () { trace ("onRelease: " + this); };
20 mc.onReleaseOutside = function () { trace ("onReleaseOutside: " + this); };
23 createEmptyMovieClip ("a", 0);
24 install (a);
25 createEmptyMovieClip ("b", 1);
26 rectangle (a, 0, 0, 0, 200, 150);
27 rectangle (b, 0xFF, 25, 25, 100, 100);