ActionScript 2.0 :: TweenMax - Making A Tween Start After Another?
Jul 29, 2009
I have a pretty complex problem... i am trying to make a match cards game and i managed to do most of it, i mean the engine part, but i got to mouse-object interaction and this is where i have quite a few problems... I started using TweenMax for the first time at making this game and I don't know how could i get a tween to follow another (if you understand what I am saying) I put a condition and if it is fulfilled, i wanted to start a tween and after that another tween of another object...
View 2 Replies
Similar Posts:
Mar 1, 2012
I'm trying to tween in a movie clip to alpha:1 using the code TweenMax.to(mc, 1.5, {delay:2.5, alpha:1});But this results in a smooth tween to around 50% or so and then it jumps to 100%.I have had this problem before but it's really effecting a project I'm working on for a client. Is this a problem with the Tweenmax?
View 15 Replies
May 11, 2011
I have some image Containers which hold a lot of images(10-100). Some of those Containers(Sprites) are off screens but are loaded and added. Through arrow keys I start a tween in the according direction.The tween is not smooth(stumbles) always the first time when a container comes on-screen. How do I get a smooth tween ?
View 1 Replies
Jul 24, 2009
I know that we can tween multi-filters like this:
Code:
TweenMax.to(mc, 1, {glowFilter:{color:0x123456, alpha:1, blurX:3, blurY:3}, blurFilter:{blurX:20}});
[code].....
View 2 Replies
Jun 21, 2006
Now I am using the Tween Class to move some boxes in my movie, now I can move the first mc and then another mc after the first tween has finished with onMotionFinished but I was hoping someone could help with how do I start the second tween when the first mc has passed a certain _x coordinate. ie starting the second mc moving while the first tween is still moving.
View 1 Replies
Oct 25, 2010
Is there any way to make a movie clip start at a given x and y point, and ends at another x and y point, in 90 seconds?m not getting a good result.The main problem is, I want the movie clip to travel along a straight line. And by this code below the "b" movie clips makes some curves.Heres what Ive done.
"p" is point movie clip
"b" is ball movie clip
fullTime = 90000;_currentTime = fullTime;oldTime = undefined;onEnterFrame = function () {if
[code]........
View 16 Replies
Oct 26, 2010
If you try to make a movie clip travel along a rectangle diagonal within 90 seconds, the movie clip makes some curves.
View 5 Replies
Sep 1, 2011
I want start a tween from library when click on button but i cant !
View 5 Replies
Nov 15, 2009
I'm very new at Flash and while Ive picked up the basics of tweening and creating animations. I'm trying to create an image of a post it note that is revelaed via a mask when a user rolls over a seperate image. I have created the animation of the mask and it revelas the note fine. My question is how do I create an invisible button and code it in action script so when I roll over image 1 my mask tween begins playing to reveal the post it.
View 2 Replies
Jul 30, 2010
Trying to start an animation after a tween is done. Animation starts but way later, like 5 seconds after tween is finished.
Code:
var easeInPic:Tween = new Tween(bg, "alpha", Regular.easeIn, 0, 100, 1000, false );
easeInPic.stop();
function showPic(e:Event):void{
tweenPicEI();
}function tweenPicEI ():void{
easeInPic.addEventListener(TweenEvent.MOTION_FINISH, showMenuBar);
easeInPic.start();
}function showMenuBar(e:TweenEvent):void{
menuBar.gotoAndPlay(1);
}
View 4 Replies
Feb 11, 2008
I have a problem whereby I am trying to Start a tween from set cordinates..[URL].. Which was helpful but did not sort out the problem, I have a movieclip "pano_mc" which moves around driven by mouse movements, there is a hotspot (hs1_mc) nested within it (which moves with the Pano_mc), I have an onPress Event on hs1_mc which when pressed allows me to get the x and y of "pano_mc" at the point of OnPress, I need somehow to use these x and y corodinates to define the start point of the tween, on Pano_mc.
I can't use "this" (as mentioned in the above link) as the event is on the hs1_mc and if I just use "_x" parameter in the tween, it starts from where the movie is originally and not from where it is when the onPress is actioned,where I get the cordinates at that point.
[Code]...
View 3 Replies
Oct 23, 2011
Man, what a difference AS3 is to AS2, but good fun!
I have the following code on a movie timeline :
Actionscript Code:
var myvalue:int;myvalue = 1;mytextbox_inst.text = "Todays Value is : " + myvalue.toString();
I want the dynamic text to show "Todays Value is : 0001" but its showing "Todays Value is : 1". I just cannot remember how to make the dynamic text start as 4 digits?
View 4 Replies
Apr 21, 2010
I have this code below which produces no errors
import Card;
import fl.transitions.Tween;import fl.transitions.easing.*;import fl.transitions.TweenEvent;
var ace_clubs1:Ace_clubs = new Ace_clubs();ace_clubs1.scaleX=0.4;ace_clubs1.scaleY=0.4;[code]......
The only thing is the TRACE output for the MOTION_START EVENT does not fire.
View 8 Replies
Jun 14, 2011
I have 7 movieclips on stage I want to tween around an ellipse from different start points. I am having lots of trouble doing this. I used a circle formula at first and then divided the y value by the width of the ellipse over the height. This sort of worked but after every rotation the y value was a little of. That code is:
this._x += (Math.cos(angle * Math.PI/180) * radius);
this._y += (Math.sin(angle * Math.PI/180) *radius)/1.54;
I also have trouble finding the angle of the start point, if it is off they won't travel in the same ellipse but they all have different starting angles.
View 2 Replies
Dec 5, 2011
i am on a timeline on frame 10 with a stop ,,,, i want to play frame 11 to remove ( play out movie clip) the movie clip using time line tween and the go to frame 20 and play the next movie clip and stop at frame 25 .so far i can get to the frames to start the tweens with
function onHomeClick(e:MouseEvent):void
{
gotoAndStop("somos");
but then before going to next frame will like to play the one i am out and then go to the next one ,
View 10 Replies
Jan 9, 2010
I'm working with some images using the tween to move them. Sometimes the tween seems to stop and quit towards the end (sometimes its fine)
Is there a way to check and ensure the tween is going from from start to finish
View 3 Replies
Apr 20, 2010
Is it possible to alpha tween (or any tween) the end of an animation with the start?For example, here we have a simple animation that alpha tweens three images with looped playback (keyframes capitalized):
IMAGE X: xxxxxxxxxxxxX--->X
IMAGE Y: Y--->YyyyyyyyyY--->Y
IMAGE Z: Z--->Zzzzzzzzzzzzz
(loop)
Image X alpha tweens with Y, and Y alpha tweens with Z.Is it possible to alpha tween image Z with image X when the playback loops?
View 3 Replies
Oct 27, 2009
I am making a webpage for class and i copied all the code from previous projects that i made that worked fine. I made a menu that once you go over the button it starts a 2 motion tweens that end with buttons appearing. i keep getting the message
TypeError: Error #1009: Cannot access a property or method of a null object reference.
The whole code is this
stop();
back.addEventListener(MouseEvent.MOUSE_OVER,back1);
function back1(event:MouseEvent):void {
gotoAndPlay("one");}
pump_link.addEventListener(MouseEvent.MOUSE_DOWN,pump_btn);
function pump_btn(event:MouseEvent):void {
MovieClip(parent).gotoAndPlay("pumpkin_frame", "pumpkin");}
View 1 Replies
Sep 21, 2011
I declare this tween...
ActionScript Code:
private var _tweenX:Tween;
private var _tweenY:Tween;
I even fire it off it when the player hits a corresponding button...
ActionScript Code:
museumGuy.gotoAndPlay("Walk");
_tweenX = new Tween(museumGuy, "x", Regular.easeOut, museumGuy.x,categoryPaintings.x, 40, false);
_tweenY = new Tween(museumGuy, "y", Regular.easeOut, museumGuy.y,categoryPaintings.y, 40, false);
_resetAnimation = true;
As you can see I have some animation stuff in there. I need to stop the museumGuy from doing his walk animation when the tween is over so I have this on the EventEnterFrame function I set up.
ActionScript Code:
if (_tweenX.isPlaying == false && _tweenY.isPlaying == false && _resetAnimation == true)
{
museumGuy.gotoAndPlay("Idle");
[code]...
how I can stop that? In my Init() I tried to state...
ActionScript Code:
_tweenX.isPlaying = false
but it doesnt like that either.I could fire off a tiny tween as soon as the app starts that doesn't last long enough to notice,but I really want to get a hold of how to control it.
View 4 Replies
May 19, 2009
I'm fairly new to AS3 and I'm trying to make a pretty complicated (for me) set of behaviors. You can see what I'm trying to do here: [URL]. The Main class sets up the crosshair, the navigation, the color bars that randomly roam the stage, and the 3 words that float around. The idea is that when you hover over a word, the color bars split apart like a curtain and two random pictures appear. Then, when you roll off the word, the pictures disappear and the color bars start roaming again.
I've got the color bars, the floating words, and the curtain split working great. My problem is bringing in the pictures. For whatever reason, 60 to 70% of the time the tween stops before it is complete. I think it has something to do with the fact that I've got a hover on a piece of text, and the mouse sometimes slips into the empty spaces between the letters, but even when I put a semi-transparent rectangle over the whole word to act as a hit area I got the same results. The ZIP with all my classes is here: [URL]. Again, I'm new to AS3 and OOP,
View 4 Replies
Jan 28, 2010
I'm not too good with flash. I'm trying to make a basic scrolling bar for sponsors. Here's a simple example: I've added an action:
Code:
addEventListener(MouseEvent.MOUSE_OVER, mo);
function mo (event:MouseEvent):void
[code].....
View 10 Replies
Feb 11, 2009
Is it possible to tween the up and over state of a button without making it a movie clip? I just have a button that inverts its bg and text color on over, and I'd like to tween that in the simplest way possible.
View 0 Replies
Oct 8, 2010
I'm loading png files on movieClips attached on the scene dynamically (reading an xml file). then i'm making a tween (with actionscript) to scale the container clip on RollOver.
the png file pixelate when the clip is scaled(to 110%).
View 1 Replies
Dec 5, 2009
I'm making movement of movie clip via creating new Tween in Action Script 3, Flash CS4 and it happens, when I mouse over button in another movie clip. The problem is that movement sometimes work perfectly, but sometimes it gets stuck in middle of movement and continues only if I mouse over again. Here is the code of function of first frame in main scene:
[Code]...
View 5 Replies
Jan 4, 2004
I have a movieClip, with other movieClips inside of it, objects that I want when hit to lose points. But when I have the movieClips inside that one, it just has a giant "boundry box". I want the points to go down when you hitting only one of those items,instead it just goes does throughout the entire thing.
There is no way for me to scroll all those objects across the screen without either making a tween on the main timeline for each object (almost 20), or somehow making a giant movieClip scroll all of them all the way across, bypassing the first boundry box, and acknowledging the movieClips.
View 9 Replies
Apr 21, 2007
i've got a fair bit of text i'm trying to keep on an internal page by just making each section a scrolling content box. So there are 3 buttons at the top, each 'scrolls' onto a new section and I would like the ability for it to scroll back too, hence using the tween class to do this. I've managed to set it up and each button goes to each 'page' fine in reading order, so to speak (1, 2, 3), but if I got to 1, 2 then back to 1 it will start from 0 on the x axis.
Basically what i'm wanting to do is set the tween from the current _x value. So if I go 1, 2, then back to one, it will take the current _x value from 2, and scroll the opposite direction back to one. I am using the following code on the buttons:
[Code]...
View 1 Replies
Nov 2, 2010
im currently making an "AS3 beat em up" ala streets of rage or double dragon.Currently i have my character moving and a few animations done and i am trying to figure out how to make attacks work.I have some "basic" animation for his attack, but im not sure how to get it to work correctley.What happens is, if you press control (the attack button) whilst the character is walking he just keeps moving and is stopped on the attack frame.I want the character to stop moving if the attack is pressed and once it is released start moving again.
hero.gotoAndStop('still');
var left:Boolean = false;
var right:Boolean = false;[code].......
View 2 Replies
Aug 4, 2010
I want my object to animate using Motion Tween in Timeline. I did so. But it starts animating from Frame 1. Instead I would like it to start animating from Frame 25. I don't want anything to animate upto 24 Frames. How can I do that?
View 1 Replies
Nov 1, 2009
import fl.transitions.Tween;
import fl.transitions.easing.*;
var homemanTween:Tween = new Tween(homeman_mc, "x", Elastic.easeOut, 1000, 50, 3, true);//frist tween
var adobeTween:Tween = new Tween(adobe_mc, "alpha", Regular.easeOut, 0, 1, 3, true);//second tween
how can I animate the 2nd tween after 3 seconds when 1st tween stops.
View 9 Replies
Mar 5, 2008
I have (what should be) a really simple little piece of code inside a moviclip, trying to get it to fade in and out in a loop. Here's the code (within the movieclip):
Code:
import gs.TweenMax;
this._alpha = 100;
[code]....
View 3 Replies