Return to Snippet

Revision: 19840
at November 1, 2009 21:52 by arpit


Initial Code
var self:DisplayObject = this;
this.addEventListener(MouseEvent.MOUSE_DOWN, function(event:Event):void{
     if(event.target == self){
	self.startDrag();
	self.addEventListener(MouseEvent.MOUSE_UP, function(event:Event):void{
	     self.removeEventListener(MouseEvent.MOUSE_UP, arguments.callee);
	     self.stopDrag();
	});
      }
});

Initial URL

                                

Initial Description

                                

Initial Title
Make a window target

Initial Tags

                                

Initial Language
ActionScript 3