The 2nd argument to startDrag is of type 'Rectangle' . try: var r:Rectangle = new Rectangle(10,0,myCanvas.width,myCanvas.height); event.target.startDrag(false, r);
--- In flexcoders@yahoogroups.com, "jmfillman" <[EMAIL PROTECTED]> wrote: > > Well that's what I thought, but when I change this: > > event.target.startDrag(); > > to this: > > event.target.startDrag(false, 10, 0, myCanvas.width, myCanvas.height); > > I get the following error: > > ArgumentError: Error #1063: Argument count mismatch on > flash.display::Sprite/startDrag(). Expected 0, got 5. > > > --------- > > startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void