Question
Following Doug Winnie's Episode 19 Drag and Drop Objects
Hello Again:
Running the following script on Flash Professional CC 2014 on windows 7 leads to the following compiler errors:
import flash.events.MouseEvent;
dragMe.addEventListener(MouseEvent.MOUSE_DOWN, dragPoly);
dragMe.addEventListener(MouseEvent.MOUSE_UP, dropPoly);
function dragPoly(e:MouseEvent):void
{
dragMe.startDrag();
}
function dropPoly(e:MouseEvent):void
{
dragMe.stopDrag();
}
| Scene 1, Layer 'script', Frame 1, Line 8, Column 9 | 1061: Call to a possibly undefined method startDrag through a reference with static type Class. |
| Scene 1, Layer 'script', Frame 1, Line 12, Column 9 | 1061: Call to a possibly undefined method stopDrag through a reference with static type Class. |
| Scene 1, Layer 'script', Frame 1, Line 3, Column 8 | 1061: Call to a possibly undefined method addEventListener through a reference with static type Class. |
| Scene 1, Layer 'script', Frame 1, Line 4, Column 8 | 1061: Call to a possibly undefined method addEventListener through a reference with static type Class. |
Once again, thanks for your help!
