Box Stacker Project

Link to sample: http://wemakeyourmark.com/AdBuilder.swf

Ok so I have a movie clip with input boxes in it that gets duplicated when you press the button. I’m having a really hard time finding the information I need to get this thing working correctly!

First! when I tab between text boxes of input text, it will jump between the different boxes in different children… how do I fix that?

Next I need to figure out how to have these boxes “magnetic” or “snap to”
I want them to auto align with each other. to make this more complicated! I will, in the future have multiple size boxes that “snap to” each other.

And finally I will need to let the user save the users box layout for future use (cookie type thing) I have some information on that in one of my reference books but if there is a good tutorial on this please point me in the right direction.

Please help! There are almost no good AS3 tutorials on the web (unlike AS2 where there are TONS) i’m very frustrated with that!

btn.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void {
var myClip:cont_mc = new cont_mc();
this.addChild(myClip);
myClip.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
myClip.addEventListener(MouseEvent.MOUSE_UP, dropIt);

function pickUp(event:MouseEvent):void
{
event.target.startDrag();
}
function dropIt(event:MouseEvent):void
{
event.target.stopDrag();
}

myClip.x = 300;
myClip.y = 400;
}