Transitions

I’m currently working on a site that has several buttons for several sections. Each section has its own transition. My question is, how do I blend the transitions? For example if I click on button 1, section 1 content appears, now when I click on button 2, section 1 content fades away and section 2 content fades in and so on with the rest of the buttons and sections. I’m guessing I should use the prevframe action, but I’m not quite sure how to impliment it. Could someone help? Thanks. =)

now i aint sure but have ur timline with the transition after all your buttons and stuff after the transition in have stop then after it start the ttransition out and have a stop after that have that for each different transition make sure each page is at different frmaes on the timeline e.g. transition1 frame 20-30 transition 2 31-40 etc etc then on ur button have i aint sure what the code is as im at college but have on release gotoandstop(framename)

ask for the code though as i aint sure wot it is

hoe this is right

-Tom

oh i see what you’re saying, I just need to figure out the AS for the buttons to play the fade out part of each transition. Hope someone will read this and help me with it. I’m new to actionscripting. :-\

tell me bout it electron when i get home i will get the code i have it in a few fla’s around my pc

What kind of transition effects are you using? do you need one to play it’s transition out then the next one to transition in or do you want them both to happen at the same time?

Thanks for replying sorcerer, Yes, I would like for one transition to go out then the next one to come in. So lets say I press button 1, section 1 slides in, now I press button 2, section 1 slides out and section 2 slides in…etc. I hope that is a bit more clear…can you help me? Thanks.

I made a simple little fla that shows one way you could do it using variables to get your transitions to work. Hope this is what you were looking for, i just used a couple simple fades on some boxes for my test but it should do what you are looking for.

yeah!! thats what im talkin about! woohoo! Thanks a lot sourcerer, I was beginning to lose hope, thought no one knew what i was talking about. =) Thanks for the fla too.

ok now here’s another question, how would I rewrite the AS to make it load a external swf after the transitions? I know i need to add the loadmovie action in there some where, but where?
Oh and would this same method work if i wanted to instead of having the boxes fade in and out, have external swf’s load and unload itself? you get it?

You could either have one transitions movie where you transition in and load your movie within that. That would work basically the same way but you would load your movie on the stopped frame and could unload it on the first frame of your out transition. Or instead of using frame names store the file names in your variables and use that to load your movie or target it once it has been loaded. Then add your transition in and out animations on that movie and use the variables to unload your movie and load the next one. I’ve never tried it so I’m not sure if it would work, if you haven’t figured it out tomorrow I’ll see if I can play around with it and get it to work.

wow that’s a lot to absorb, but I think I know what you’re talking about, I gotta see how I’m gonna set up the AS for this. If you can come up with anything more than that would be great, thanks for all your help so far.

I got it Sorcerer! I based it upon the fla you provided and did what you told me and it works great! My client is gonna be thrilled, thanks a lot! :stuck_out_tongue: