Moving a timeline movieclip using a class

How do you get a class to see/talk to several different movieclips on the main timeline?

For example, let’s say I want to move the x and y position of a movieclip that’s already on my timeline.

And my .as file code looks like


package com.main {
    import flash.display.*;
    
    public class MoveItem extends MovieClip {
        
        public function MoveItem() {
            mc.x = 25;
            mc.y = 25;
            md.x = 50;
            md.y = 50;            
        }
    }
}

And then I import it on the main timeline using:

import com.main.MoveItem;
var test:MoveItem = new MoveItem();

I know I could just send the name of the instance through the main function but I’d like to stray away from that. Any ideas or suggestions would be greatly appreciated!