I have a site I’m working on in which the movie fills the browser and elements are repositioned according to the available space or if the browser window is resized - http://www.oroborusmovement.com/flashTest2.html
The navigation elements are some spinning circle movie clips that are centered on the stage stored in a container.
What I want to happen is when one of the rings are clicked, the whole navigation moves to the current x 0, and y 0 coordinates so it is repositioned in the top left corner with a quarter of the navigation showing.
I’ve been having a hard time finding info on how to have a clip move when it is clicked itself, and then I’m not sure how to calculate the current x 0, y 0 coordinates to have the nav move there. I can point the nav to the coordinates, but if the window size changes, those values seem to no longer apply and the nav moves to what it thinks are the x 0, y 0 coordinates.
Someone had suggested that I can use localToGlobal, but I’m don’t know how to use the function to animate the navigation -
var point:Object = {x:0,y:0}; //assuming your registration point is in the center of the circles.
circle_mc.globalToLocal(point); //circle_mc being the movie instance that you want to get your globalToLocal x and y.
circle_mc._x = point.x;
circle_mc._y = point.y;
I’m trying to avoid using any frame tweening and would prefer to have everything controlled via actionScript.
I have uploaded the source file here - http://www.oroborusmovement.com/flas...tResizable.fla
Any help would be greatly appreciated