-1

I am using as3 and try to drag the background within the screen. What am I doing wrong? enter image description here Here is my code:

bg.startDrag(false, new Rectangle(-bg.width + stage.stageWidth, stage.stageHeight, bg.width - stage.stageWidth, bg.height - stage.stageHeight));
  • 1
    The boundaries seems to be pretty much correct in sense of geometry. So, define **wrong**. – Organis Mar 02 '19 at 11:27
  • 1
    _"What am I doing wrong?"_ I could not test your code so please **describe the problem**. What seems "wrong" to your eyes?? Also in your `mouse_move` function did you check positions / boundaries there? – VC.One Mar 03 '19 at 18:05

1 Answers1

0

It seems that it didn’t work properly when the background was with a transparent background like this. That is, the flash had green rectangles without a common rectangular background. enter image description here