Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to reset a zoom, and pan movie clip???

Status
Not open for further replies.

jbearclaw84

Technical User
Jun 6, 2007
20
US
Hello all,
i have a movie clip that i can zoom and pan, but i am trying to make a reset button that goes to my default position of the mc. I'm thinking about telling the button to place the mc at (0,0) cordinates. Am i on the right track? i am using vr. MX, 04.

Thanks for any help!
 
is there a script i could use and i could just add mc name?
 
Code:
[i]resetButton[/i].onRelease = function():Void  {
	with ([i]yourMovieClip[/i]) {
		_x = [i]originalXPosition[/i];
		_y = [i]originalYPosition[/i];
		_xscale = _yscale =100;
	}
};
Something along these lines.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top