PDA

View Full Version : how can i return to the first image?!


forever
11-18-2005, 02:27 AM
If you click on the link below you will see a button that ive animated to increase size when clicked on.
Id like the image to return to its original position when clicking away?
Ive tried making the button do the reverse action bout its not doing it :mad:


Please help me!! :eek:

heres (http://www.gd-up.net/flash/flash.htm) the link to the problem

Ricod
11-22-2005, 04:29 PM
Welcome to AS[org] !

The handiest way would be to store the original properties in variables and when you want to reset the properties to those initial values, set the properties to the values you stored in those variables.

Example :
//you save the value of the x property of a movieclip
OriginalX = _root.mc._x;
//then you change it
_root.mc._x = somethingElse;
//and when you want to return to it's original value
_root.mc._x = OriginalX;


Many questions like this have already been asked and answered, so my advice is to first look through the forums by using the search option.