PDA

View Full Version : alphaTO different backgrounds


Frosty_spl
01-24-2006, 04:11 AM
On my site, lets say I have 2 buttons A and B, that represent 2 different "pages"

If you are on page A, and you click the button to go to page B, i want the background to alpha solid to clear for the page A and alpha clear to solid for page B. This should make a nice transistion between the pages.

On the main timeline, i have placed an MC that contains each of the 5 BG images (bgclip). Each of those is its own MC (bg1 for example).

When i first come into the site I want the first bg to alpha tween to be visible, but this code dosent work

onClipEvent (load) {
alphasolid1("_root.bgclip.bg1");
}

Frosty_spl
01-24-2006, 04:13 AM
on each button I will call the particular bg alpha to fade out from the old page (A), and fade in to the new page(B)

_level0.alphaclearA();
_level0.alphasolidB();

Is this the best way to build it? Am I doing this correctly?

Flash Gordon
01-24-2006, 04:16 AM
Am I doing this correctly?if it works ;)

But I have no idea what you are asking.

Frosty_spl
01-25-2006, 02:59 AM
I want one image to fade into another when i move from page to page.

justin_kink
01-25-2006, 11:57 AM
I take it the alphasolid1 is a function which you have built? Seeing your calling that, perhaps your function doesnt work, or the target inside the function is not dynamic.

Its hard without the source code. could you post it?

Get the Laco tweening prototypes, they will sort your whole life out! ;)

http://laco.wz.cz/tween/

Frosty_spl
01-25-2006, 01:23 PM
Im using that tweening prototype.

I can get the function to work. I just dont know the mechanics of having 2 different images fade in and out. I will have 5 diffrerent pages that i want the backgrounds to fade from one page to the other.

Will i need 2 different movieclips, one for the background that is on the page now, and one above it that will alpha to 100%? Then somehow swap the one that just came in, to the back MC, so when i click on another page, the new BG will fade in on top of the original. (if that makes any since).