Anyway to set object in different layer using AS?

I have 2 objects here, A and B
But i need object B to pass under object A.
Object A is done by duplicating empty movie clip and
attach movie clip on it.

I can attach movie clip on B if is needed…

Anyway to solve by using action script?
Because the empty movie clips are generated by AS as well…

thanks alot :angel: