gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil...
Date: Sun, 29 Apr 2007 16:30:44 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/04/29 16:30:43

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: Makefile.am DrawingApiTest.as 

Log message:
                * testsuite/misc-ming.all/: Makefile.am, DrawingApiTest.as: add
                  tests for hitTest (not automatically run, but works fine so 
far).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3033&r2=1.3034
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.99&r2=1.100
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DrawingApiTest.as?cvsroot=gnash&r1=1.10&r2=1.11

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3033
retrieving revision 1.3034
diff -u -b -r1.3033 -r1.3034
--- ChangeLog   29 Apr 2007 14:08:44 -0000      1.3033
+++ ChangeLog   29 Apr 2007 16:30:43 -0000      1.3034
@@ -1,5 +1,7 @@
 2007-04-29 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/: Makefile.am, DrawingApiTest.as: add
+         tests for hitTest (not automatically run, but works fine so far).
        * server/button_character_instance.{cpp,h}: implement pointInShape().
 
 2007-04-28 Sandro Santilli <address@hidden>

Index: testsuite/misc-ming.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -b -r1.99 -r1.100
--- testsuite/misc-ming.all/Makefile.am 24 Apr 2007 21:02:20 -0000      1.99
+++ testsuite/misc-ming.all/Makefile.am 29 Apr 2007 16:30:43 -0000      1.100
@@ -966,7 +966,7 @@
 
 
 DrawingApiTest.swf: $(srcdir)/DrawingApiTest.as 
-       $(MAKESWF) -r2 -o $@ $(srcdir)/DrawingApiTest.as
+       $(MAKESWF) -r12 -o $@ $(srcdir)/DrawingApiTest.as
 
 DrawingApiTestRunner_SOURCES = \
        DrawingApiTestRunner.cpp \

Index: testsuite/misc-ming.all/DrawingApiTest.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DrawingApiTest.as,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- testsuite/misc-ming.all/DrawingApiTest.as   24 Apr 2007 21:02:20 -0000      
1.10
+++ testsuite/misc-ming.all/DrawingApiTest.as   29 Apr 2007 16:30:43 -0000      
1.11
@@ -157,3 +157,38 @@
        }
 };
 
+createEmptyMovieClip("cursor", 3);
+with(cursor)
+{
+       lineStyle(2, 0xFF0000);
+       beginFill(0xFF0000, 100);
+       drawCircle(_root.cursor, 0, 0, 10);
+       onMouseMove = function()
+       {
+               _x = _root._xmouse;
+               _y = _root._ymouse;
+
+               // Bounding box check
+               if ( hitTest(_root.a) ) {
+                       _alpha=50;
+               } else {
+                       _alpha=100;
+               }
+
+               // Bounding box check with circle center
+               if ( _root.a.hitTest(_x, _y) ) {
+                       _root.a._alpha=50;
+               } else {
+                       _root.a._alpha=100;
+               }
+
+               // Shape check with circle center
+               if ( _root.a.hitTest(_x, _y, true) ) {
+                       _xscale=50;
+                       _yscale=50;
+               } else {
+                       _xscale=100;
+                       _yscale=100;
+               }
+       };
+}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]