" om
Druk " F9 " om het venster " Actions " te openen en typ de volgende gegevens 4 " REDBALL . " :
RedBall.onPress
= function ( ) {
this.startDrag
( ) ;
}
redBall.onReleaseOutside
= redBall.onRelease = function ( ) {
dit. stopDrag ( ) ;
//indien REDBALL wordt gesleept op blueBOX
if ( this._droptarget == " /Blue-box " ) {
trace
( " ! CORRECT " ) ; .
}
}
5
Test
de animatie door op " Ctrl " en " Enter " gelijktijdig
< br >