Animating Curtains Using Predefined Images
#1
Posted 19 January 2008 - 07:59 PM
#2
Posted 20 January 2008 - 01:15 PM
on (release) {
_root.instancename.gotoAndStop(2);
}
#3
Posted 20 January 2008 - 06:09 PM
#4
Posted 21 January 2008 - 08:58 PM
Obviously, this will only switch them from closed to open. If you want it to be animated, you will have to do that yourself. First, make a movie clip with the first frame being the closed curtain and the second the open curtain. Put a stop action on the first frame and the second frame. Return to the root level and single click the movie clip, open the properties panel, and give it an instance name. Make a button, then use the following code for the button (substituting "instancename" with the movie clip's instance name):
on (release) {
_root.instancename.gotoAndStop(2);
}
So u solved his problem,Thanks to u. You have also solved my problem . I also want to do the same thing on doors.Thax again.
Edited by devils.master, 21 January 2008 - 09:01 PM.
#5
Posted 21 January 2008 - 11:43 PM
#6
Posted 22 January 2008 - 10:31 PM
In Flash, you can't tween predefined images. Tweens are only for movement, size changes, rotation, or transformations. If you want the opening to be animated, you will have to edit each image. You could have the curtains shrink to the side, but it wouldn't be as fancy as the picture above.
Since I have the images in vector format, can they be used as shapes to tween into eachother?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users