# Fading between the pages using AS

**URL:** <https://forum.kirupa.com/t/fading-between-the-pages-using-as/251391>\
**Category:** Uncategorized\
**Created:** [February 7, 2008, 11:33pm UTC](https://forum.kirupa.com/t/fading-between-the-pages-using-as/251391 "2008-02-07T23:33:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![idark](https://avatars.discourse-cdn.com/v4/letter/i/6bbea6/32.png) [@idark](https://forum.kirupa.com/u/idark)\
**Post date:** [February 7, 2008, 11:33pm UTC](https://forum.kirupa.com/t/fading-between-the-pages-using-as/251391/1 "2008-02-07T23:33:28Z")

</div>

I’m working on a gallery section for my site which is currently being made in flash CS3 (as1/2). And I’m wondering if it’s possible to create a fade-out/in effect that occurs when you click on a button that redirects you to another scene/page… by making a transparent square (that fits in the canvas size) that would change opacity to 100% everytime I click on a certain button and when the page has loaded the square changes opacity to 0% again. Thus making it look like a fade in and fade out effect!

I’ve tried to apply this effect without AS, but no luck. :stare:

A little hard to explain maybe, but if you can find some sites with similiar fade out effects, don’t hesitate to post the links here :snug:. Oh and if you can mixture a Actionscript for this kind of effect I would be very grateful!

Thank you for your time.
