This is a property of the parent frame, not of the object that is being fixed. So to do it, you need to change the container/parent frame property.
container.insertChild(0, newFrame);
container.numberOfFixedChildren = 1
This is a property of the parent frame, not of the object that is being fixed. So to do it, you need to change the container/parent frame property.
container.insertChild(0, newFrame);
container.numberOfFixedChildren = 1