Dear all.
I am using the flash to build my personal book online. I need zoom many movieclip, my images.
i make the code and function perfectly. But I want to find a way to use the same function for all movieclips and so, mantaining my code clean.
mc_01.addEventListener(MouseEvent.MIDDLE_MOUSE_DOWN, Drag);
mc_01.addEventListener(MouseEvent.MIDDLE_MOUSE_UP, unDrag);
mc_02.addEventListener(MouseEvent.MIDDLE_MOUSE_DOWN, Drag);
mc_02.addEventListener(MouseEvent.MIDDLE_MOUSE_UP, unDrag);
and many others....
function Zoom(e:MouseEvent):void
{
mc_01.x = 0; //I try here for this.x but the previews movie, called "Books" is who have changed your x value.
mc_01.y = 0;
}
I
EDIT: For untangle, the previews movie is called MyAllPhotos and then, contain all movieclips that are each movie clip is one my images