How to Save positions for 3 objects in Array to make random position between each other by AS3?
<p>How to Save positions for 3 objects in Array to make random position between each other by AS3?</p>

<pre><code>import flash.geom.Point;

var arry:Point = new Point();

arry[0] = arry[78,200];
arry[1] = arry[217,200];
arry[2] = arry[356,200];

//object called b1

b1.x = arry[0][0];
b1.y = arry[0][1];

//object called b2

b2.x = arry[1][0];
b2.y = arry[1][1];

//object called b3

b3.x = arry[2][0];
b3.y = arry[2][1];

//make objects swap positions between each other

var rand:Number = (Math.random()*arry.length);

//output to see random position [[78,200],[217,200],[356,200]]

trace(arry);
</code></pre>

<p>to get random with tween like this... <a href="https://www.youtube.com/watch?v=8m_m64plQ6E" rel="nofollow">https://www.youtube.com/watch?v=8m_m64plQ6E</a></p>