PDA

View Full Version : Animation


jason4354
08-08-2007, 09:29 PM
Greetings,
I am working on a website where I need to have animation occur after a navigation button is pressed. Once the animation is completed, then I need the viewer to be taken to a new page.

For example, the user selects "Contact" from the universal navigation...the exiting animation on the current page plays...then the viewer is taken to the contact page.

Any suggestions? Thanks.

-Jason

kool-Aid
08-09-2007, 05:15 PM
I would do this through AS. Have you ever worked with fuse? It would look like this.

import com.mosesSupposes.fuse.*;

ZigoEngine.register(Fuse,PennerEasing,FuseFMP);

var var1:Fuse= new Fuse();
var1.push({target:box2, x:72, y:446, seconds:1.5, height:315, width:600, _alpha:100, ease:"easeOutQuad",func:afterFuse, scope:box2})
var1.start();

function afterFuse():Void
{
trace("Fuse complete");
gotoAndStop("start");
}

if you have not worked with fuse you are going to have to do it on the maintimeline through navigation. For exaple:

yourbutton.onRelease = function()
{
gotoAndPlay("animationFrameLabel");
}

Then at the end of the animation on the timeline you put this
this.onEnterFrame = function()
{
gotoAndStop("yourPageFrameLabel");
}

Fuse is by far thew better way to do it. If you don't know about it i would look into learning it. It will help with all kinds of things like this, and will keep your timeline from looking like a mess.