PDA

View Full Version : unload movieclip in reverse



openface
May 12th, 2006, 10:00 PM
hi, i'm going kind of crazy trying to find a direct answer to this question, and would greatly appreciate a response. i am loading movie clips into a movie clip called 'gallery', which works fine as it should. however, when the user clicks one of the other buttons that loads a new movie clip into 'gallery' i need to have the current movie play in reverse to its beginning and then load the new movie clip into gallery, which when a different button is clicked would do the same. any help? it seems fairly possible as there are a number of sites on which this is done, but i haven't found any straight answers cruising on the web.
thanks.
paul

unclesond
May 13th, 2006, 11:19 AM
Not sure if this is the correct way, but lets just assume we are looking at the time line of your movie clip youve just loaded in.

Frame 1 play to frame 30 where you stop the play head and it shows whatever content you like. Now lets also assume there is a close/back button. When you click that button, assign some code to goto and play frame 31. Frame 31 can then play to frame 60 where it unloads the movieclip. Now if frames 31 to 60 are the same as 1 to 29, but in reverse it will give the appearance of playing in reverse. Easy way to achieve this is copy frames 1 to 29, paste on frame 31, select them all, right click and select reverse frames. Well thats what i used along time ago, for example (http://whatishome.co.uk/) just click on one of the houses and then close. Probably is an easier way....but thats one way to do it.

openface
May 13th, 2006, 07:07 PM
thanks for the idea, but i need something that doens't require the user to click a window to close it. needs to be contained within a frame next to the buttons. i have done the reverse frames thing. i'm looking more for some actionscript or a link to a tutorial that someone knows about.