Load MovieClip to specific frame on main timeline
I currently have a movieclip which is loaded on the main timline on top of other buttons that call other movie clips.
I'm not sure what additional code I add to make the movie clip load on frame 2 of the main timeline, thus not interfering with the buttons below.
var that = this;
var myRectangle;
function addFromLibrary(e)
{
if (!myRectangle)
{
myRectangle = new lib.Rectangle();
that.addChild(myRectangle);
}
}
function removeClip(e)
{
if (myRectangle)
{
that.removeChild(myRectangle);
myRectangle = null;
}
}
this.buttonAdd.addEventListener("click", addFromLibrary);
this.buttonRemove.addEventListener("click", removeClip);


