PDA

View Full Version : Transition Movie Clips


olsjoe
07-14-2008, 08:20 PM
okay i have four buttons each have their own unique transition in and out. (well "out" is just a reversal of the frames going in) I need some help getting me started on this, perhaps you are already aware of a tutorial on this. Every time i click on one button i want it to play the out transition for the page it is on before playing the in transition for the button that was clicked on. I have found a tutorial that will play the same transition between each page, but cannot find anything that does what i am needing it to which is play the corresponding outros and intros. I've done quite a bit of searching, but can't find anything that resembles this... I don't believe it will be that hard, but i'm a novice when it comes to AS3.

- I almost forgot. As of right now i plan on embedding the transitions in the time line as a series of bitmaps each transition is only 10-15 frames. That way i can just reverse the order of the frames for the out-transition

Thanks for any help you can offer.

FlashBytes
07-14-2008, 08:28 PM
I'm not sure what your question is. For most transitions I use caurina or tweenlight or papervision. Personally I dont really make any IDE anything anymore.

olsjoe
07-14-2008, 09:02 PM
I have the animations done, they are a series of images taken from a 3d program. I need the AS for the actual navigation that allows me to click a button and have the transition frames play going to the next page. i dont need to build a tween.

FlashBytes
07-14-2008, 09:57 PM
well first you write the function which would be something like this


function doSomething(event.MouseEvent):void {
t = target.event;
t.gotoAndPlay("frame"):
}
//if you have your mc's set up with frame labels
//then you add the function to your item as handler
myMC.addEventListener(event.MouseEvent.CLICK, doSomething);

you can do this for other mouse states like MOUSE_DOWN, MOUSE_OVER, and MOUSE_OUT so on..

actually in your code I would just eliminate the t=target.event; and the t from gotoAndPlay as thats more reserved for a random target with yours, its pretty much defined its your mc name

olsjoe
07-15-2008, 12:54 AM
Okay your code got me thinking and i used bits and pieces. here is my scripting and the errors it returns. to this point, perhaps this will give you a better idea of what i am trying to accomplish. I found a AS2 sample file that does what i want, but it uses global variables, and a few other things that wont work for CS3. Thanks for all your help. I really appreciate it.

function transition1(e:MouseEvent):void
{
/*t = target.event;*/
t.gotoAndPlay(t.currentFrame + 1);
target.child.section = "section1";
}
function transition2(e:MouseEvent):void
{
/*t = target.event;*/
t.gotoAndPlay(t.currentFrame + 1);
target.child.section = "section2";
}
function transition3(e:MouseEvent):void
{
/*t = target.event;*/
t.gotoAndPlay(t.currentFrame + 1);
target.child.section = "section3";
}
function transition4(e:MouseEvent):void
{
/*t = target.event;*/
t.gotoAndPlay(t.currentFrame + 1);
target.child.section = "section4";
}
menuItem1.addEventListener(MouseEvent.CLICK, transition1);
menuItem2.addEventListener(MouseEvent.CLICK, transition2);
menuItem3.addEventListener(MouseEvent.CLICK, transition3);
menuItem4.addEventListener(MouseEvent.CLICK, transition4);


1120: Access of undefined property target.