pushfate
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by pushfate
-
-
Also I have a preloader on the first frame of the maintimeline.
-
Yeah I check no typos but still getting the same error and also should cardClick(); be place on the first frame or the last frame of the animation on the main timeline.
-
when I add the cardClick to frame 20 on the main timeline, I get this error.
1180: Call to a possibly undefined method cardClick.
Not really sure how to fix the prob.
-
Hi Im kinda new to AS3, I normally code in AS2 and Im using flash cs3.
I have created a zooming playing card animation and so basically inside the zooming movie clip I have placed the front_mc and the back_mc of the card and the back_mc has an animation on it when it flips over all that works except, I want the card to auto flip at the end of the animation on the main timeline without having to click on the card itself, I dont really mind if the is no flip back option, I just want the card to flip over at frame 20 on the maintime.
I downloaded the greensock component, I used this because you cant distort mc's and bitmaps and this is the code Im currently using which I got from this site:
import com.greensock.TweenLite;
front_mc.addEventListener(MouseEvent.CLICK,cardCli ck);
function cardClick(event:MouseEvent):void {
back_mc.visible = true;
TweenLite.to(front_mc,0.5,{scaleX:-1, overwrite:false});
TweenLite.to(front_mc,0,{alpha:0,delay:.15, overwrite:false});
TweenLite.to(back_mc,0.5,{scaleX:-1, overwrite:false, onComplete:hidden});
TweenLite.to(back_mc,0,{alpha:1,delay:.15, overwrite:false});
back_mc.addEventListener(MouseEvent.CLICK, backClick);
}
function hidden() {
front_mc.visible = false;
}
function backClick(event:MouseEvent):void {
front_mc.visible = true;
TweenLite.to(back_mc,0.5,{scaleX:+1, overwrite:false});
TweenLite.to(back_mc,0,{alpha:0,delay:.15, overwrite:false});
TweenLite.to(front_mc,0.5,{scaleX:+1, overwrite:false, onComplete:ReHidden});
TweenLite.to(front_mc,0,{alpha:1,delay:.15, overwrite:false});
}
function ReHidden() {
back_mc.visible = false;
}
Does anyone know how to make the front_mc flip over to the back_mc without a mouse click on frame 20 of the main timeline.
PLEASE HELP.
3d card flip using tweenlite
in GSAP (Flash)
Posted
Not to worry I just broke apart the movieclip and added the AS to the main timeline works perfectly.
Thank you so much for the help couldnt have done it otherwise cool!!!!!!!