package { import flash.display.MovieClip; import flash.events.*; public class Main extends MovieClip { public function Main() { //this is the constructor function //this will run when the movie opens (if this is the Document class); square_mc.addEventListener(MouseEvent.MOUSE_DOWN, moveRightSide); } private function moveRightSide(e:MouseEvent) { //move squqre_mc from the left side to the right side of teh screen square_mc.x = 464; } } }