title: Check collision between rectangles AS3
body: <p>What is quick way to check collision between 2 rectangles then you have rectangle coordinates like:</p>
  <p>Red rectangle: A1(x1, y1), B1(x2, y2).</p>
  <p>Blue rectangle: A2(x3, y3), B2(x4, y4).</p>
  <p><img src="https://i.stack.imgur.com/4HczC.jpg" alt="enter image description here" /></p>