ActionScript 1/2 :: Make A Tween Always Play In Reverse?

Aug 20, 2009

I'm using the native Tween class and have a several tweens which make a button, when clicked, fly up into the corner of the screen. Then some time later yoyo() that tween to bring the button back to where it started.

The problem is that we have a replay button that replays from certain points on the timeline.

I want that if on the "screen" (not flash screens just our term for the range of frames that correspond to the timeline between those certain replay points) the user clicks replay that the button will always play the tween backward, i.e., flyout from the upper corner back to the "start" point.

Since there is no reverse() method or playInReverse() the only choice seems to be yoyo(). And one would think that fforward() followed by a yoyo() would make it always play backward. But I can't make it seem to work.
 
"Is there a way to ensure that a tween, regardless of how it last player or is still playing, can be made to go to the end and then play backwards?"

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Tween Event To Play In Reverse?

Oct 6, 2010

I have an simple animation playing using the tween event, then I have an even listener to check when it's finished. On finish I want the tween to play in reverse. I used yoyo() which half does what I want but this loops, is there anything that will just reverse like yoyo but just stop at the beginning of the tween

[code]....

View 4 Replies

IDE :: Make Smooth Reverse Play?

Apr 2, 2009

I am using ActionScript 2 with following code on a button to play in reverse on mouse click:

on (press) {
onEnterFrame=function(){
gotoAndStop(_currentframe - 1);
}

[Code]...

View 4 Replies

ActionScript 2.0 :: [FMX].mc Control - Make A Movie Clip Play Forward Or Reverse

Aug 8, 2003

what im trying to do here is have a button's (named btn) over and out states make a movie clip play forward or reverse. and my fla is named MCC. im fairly new so the more detailed explaination of the code the better. this is my code so far in the MC

[Code]....

View 3 Replies

ActionScript 3.0 :: Make A Motion Tween Play When You Click On It?

Nov 18, 2009

I'm brand new to Flash, and I have a motion tween of a wheel that spins 360 degrees and I need it to play when it is clicked on. This is probably something that's really easy to do, but I just can't figure it out.

View 3 Replies

ActionScript 3.0 :: Button That Plays Reverse Tween?

Dec 15, 2010

I'm trying to make a button that plays a tween, and after that tween finishes playing it stops. If you press the button again it plays the tween backwards to the very first frame where you originally came from.[code]...

View 7 Replies

ActionScript 2.0 :: Stop Yoyo Or Reverse Tween?

Jan 9, 2008

I want the tween to end when the alpha and the _x tween go back to the beginning. here is my code

import mx.transitions.Tween;
import mx.transitions.easing.*;
var xScaleT:Tween = new Tween(kText, "_x", Back.easeOut, 0, 476.7, 3, true);[code].......

I cant stop the code without interuppting the reversal of the tween.

View 1 Replies

ActionScript 3.0 :: Autoscrolling Text - Reverse The Tween When It Ends

Apr 24, 2009

so i'm now working on a mp3 player, and i got stucked with something. so here's my problem: i've a got bar (songBar) on which it will appear the artist and the song name(artist_txt). what i want is when de title_txt width is larger than the songBar.width, the text to scroll from right to left, and when the tween is finished to scroll from left to right(all this tween has to be a loop). if the width of artist_txt is smaller or equal to the songBar.width then artist_txt is aligned in the center of the songBar. all i'm trying to code it's just what you see in winamp player.

[Code]....

View 1 Replies

ActionScript 3.0 :: Reverse Tween Motion From Last Active Frame

Mar 29, 2009

I have a Fade-in/ Fade-out movie that works with the 'alpha'. It begins on a Mouse_Over and works its way toward 0, but stops and reverses from where ever it is at on a Mouse_Out and works it's way back towards 100. I pretty sure someone here showed it to me -- and it has been the cats' meow. I'm wondering if Flash will let you do the same thing with a motion. I played around a little and replaced the 'alpha' call in the function with 'motion' and the code stayed blue (which I'm assuming means that it is acceptable). This would make a really great function, assuming that it is possible. I've enclosed the 'alpha' code so that you can see what I am referring to.

View 14 Replies

ActionScript 3.0 :: Reverse Play On MC?

Aug 10, 2009

I use this code i found on this forum. i want to control an MC to act like a buttopn, on roll over it plays the movieclip forward, on Rollout it plays the movieclip backwards.

This script works ok, but on when reversing it feels slow and often it doesent reverse to the start of frame 1 in the MC.... It is very sensitive to quick mouse over and out. The quirky reverse is possible because i use prevFrame...is there another thing i can use?

[Code]...

View 3 Replies

ActionScript 3.0 :: Play Flv In Reverse?

Nov 17, 2010

I have to play an flv in reverse but don't know how. I tried embedding the entire flv inside a MC but the result was not pretty.

View 2 Replies

ActionScript 3.0 :: Play A Mc In Reverse?

Oct 24, 2008

How can i play a mc in reverse using as3? i know hwo to do it in as2 but not sure about as3

View 9 Replies

ActionScript 3.0 :: Play Timeline In Reverse?

Feb 24, 2010

I'm working with AS3 and I have two questions. First, to save on having to re-do work, is there a way to simply play the timeline in reverse IE from frame 210 - 200? I've got a page set up to slide in from the right when clicked on, and if you click on the back button, I want the page to slide out to the right again. Figured the easiest way to do this would be to simply reverse the timeline. Just don't know if that's possible in flash.

Secondly I've got it set up in the timeline for a FLVPlayback component to slide in to the center of the stage from the right when its page is clicked on and though this works in the timeline, when I test the movie, it doesn't slide in and if I expand the preview to full screen, the flv and its controls are still on the right side of the stage. how to get the movie to slide in properly?

View 1 Replies

ActionScript 1/2 :: Play A Movieclip In Reverse?

Mar 11, 2009

I'm creating a movieclip that shows some photo samples with two arrows at the bottom. I want it so that if the user presses on the right arrow, the movie clip plays forward and goes toward the end to "shuffle" through the image samples. But I would also like them to be able to press on the left arrow and be able to play the movieclip backwards to "shuffle" back toward the beginning of the images.

The closest thing I can think of that would be similar to this would be the way you can shuffle through album images in iTunes.I just need to know the Actionscript 2.0 code to play the movieclip in reverse.

View 3 Replies

Getting A Movie Clip To Play In Reverse?

Sep 13, 2009

I have this script to play a movie clip. What do I write to get it play in reverse?
 
function fadeUp(event:MouseEvent):void {    buttonFadeOver_mc.play()

View 1 Replies

ActionScript 3.0 :: Play My Video Reverse?

Apr 17, 2010

I Have some small videoes I have to play on a seamless loop. It's basicly a little peace of video that i then play backwards so it appears like a seamless loop. At the moment I have made the video so it plays backwards, but I was hoping to cut that out to have some actionscript that would do that so i becomes a bit easier on the bandwith.[code]...

View 1 Replies

ActionScript 3.0 :: Play Animation In Reverse?

Mar 7, 2011

I made a flash banner that includes a videofile and some vector animations. I would like this banner to play from fram 1 to the last fram and then reverse play back to frame 1 ad infinitum (the whole movie should do this that is). I cant just reverse the frames though, because of the videofile (at least I think so?)

View 5 Replies

Flex :: How To Play An Effect In Reverse

Jul 27, 2011

In one function I am calling the play method on an effect and in another I am calling the reverse method. The play method works but the reverse method does not. It appears that the propertyChangesArray is used to store the previous effect start values but that property is null when calling reverse.

[Code]...

View 1 Replies

ActionScript 2.0 :: Play Frames In Reverse?

Jul 30, 2009

I'm trying to set up 2 buttons. 1 that plays 5 frames and stops each time it's released and 1 that does the same in reverse(goes back 5 frame and stops upon each release) I.E. a forward button and back button. I'm creating a flip through brochure.

View 9 Replies

ActionScript 2.0 :: Go To Frame And Play Reverse

Jun 23, 2010

Is it possible to go to a frame earlier in the timeline and then play the timeline in reverse?

Here is my reverse script:

Code:
retouchBtn.onRelease=function()
{
_root.onEnterFrame=reverseFrame;

[Code].....

View 3 Replies

ActionScript 3.0 :: Can't Get Movieclip To Play In Reverse

Apr 18, 2011

I've got a movie clip which i want to affect with 2 buttons. On a mouse over, the right button makes the movie clip play, and tween to the right, and on mouse out, it stops. I want it to do the same thing but in reverse for the left button. Here's what i've got so far...

ActionScript Code:
/* Code to animate thumbnails RIGHT */
MC_ADNAV_RIGHT.addEventListener(MouseEvent.MOUSE_OVER, PlayThumbsRight);
function PlayThumbsRight(event:MouseEvent):void

[Code].....

View 4 Replies

ActionScript 2.0 :: Possible To Have A Timeline Play In Reverse?

Jun 11, 2005

Two questions to which I cannot find the answers:

(1) I would like to be able to "grab" the current frame (as an integer) that the timeline is currently playing as the SWF plays and use it as a variable:Number. Is this possible? Alternately, it could be how many (milli)seconds the swf is into at a given point during playback. Is this possible? I'm trying to create a scrubbable SWF based on current frame that playhead is on relative to frame(1) and frame(last).

(2) Is it possible to have a timeline play in reverse? Example: swf plays until frame 25 where it is told to stop();, then depending on a condition, it either play();'s on to the next stop(); action or playReverse();'s (I know that this doesn't exist) back to the beginning of the SWF at the document's frame rate.

View 1 Replies

ActionScript 3.0 :: Play And Reverse A Movieclip

Jan 7, 2010

I am trying to play and reverse a movieclip using the following script:

[Code]...

It works but just only one frame. Do I need to loop this function - if so how.

View 2 Replies

ActionScript 2.0 :: Play Reverse Ignores Stop()

Oct 25, 2010

I am currently working on a flash presentation and I have this code to play the slides:

Code:
MovieClip.prototype.playhead = function(dir) {
this.onEnterFrame = f

[Code].....

What happens is that when I press the leftBtn or rightBtn it plays the whole presentation, ignoring the stops I put in the MC. My mc has slides every 5 frames with tweens between them.

How can I make this and have my MC stop in every slide instead of just reading all at once?

View 5 Replies

Activate MovieClip To Play Reverse In Timeline?

Nov 5, 2009

I need to have the ability to spin or rotate an object such as a globe. I have 2 rollover mc's that spin the globe but I am having trouble getting it to loop on the backwards spin. Right now I have it acivating the mc to play fowarding in its timeline then loop but what is the best way to get it to go in reverse. My .fla can be found here [URL].

View 1 Replies

ActionScript 3.0 :: Get A Movie Clip To Play In Reverse?

Jun 9, 2010

I've created a slide presentation when you click the next button the playhead advances to the next frame plays a movie clip and stops (the stop() is at the end of the movie clip script). When you click the previous button I would like the playhead to move to the previous frame, play the movie clip in reverse and stop at the beginning of the clip.

View 25 Replies

ActionScript 3.0 :: Cant Play Video In Reverse Properly?

Jul 29, 2010

I've looked around on google and i see you cant play video in reverse properly because of keyframe issues and you can use prevFrame on movieclips with data on frame, but this second way, i've tried by using Tweener class, and has some "clunky" moments.So does someone know a good way that plays smooth in reverse either a movieclip or a video or both?

View 3 Replies

ActionScript 3.0 :: Play A Movie Clip In Reverse?

Jun 2, 2008

I have a movie clip which I want to play part of it in reverse when I click the button.

For example before I click the button, the movie clip will play from frame 150 to 155 then stop. Then when the button is clicked, the movie clip should play from frame 155 to 150.

Is there a way to do it using ActionScript 3?

View 7 Replies

IDE :: Play Movie Clip In Reverse On Rollout?

Jan 12, 2009

I have movie clip buttons, that on rollover playthrough from frame 2 to 15, then rollout play the animation through til the end to return to the 1st frame. Is it possible to have the movieclip on rollout play through in reverse to the frame 1 and reverse the animation?

Because sometimes you may get to frame 8 or so, and it keeps playing even know you have already rolled out of the movieclip. Is there any code for this or an .fla file someone could give me.

View 1 Replies

ActionScript 3.0 :: Get Animation To Play In Reverse Order?

Sep 22, 2009

I am trying to get my animation to play in reverse order and this is a pain in my leg.I have most of it figured out, this script below. I need to know if and how do I get this forward function to stop at a labled frame or key frame and not just use a number of px.

In this example I have x: "100".I need this to just play till it reaches a stop actions / lable frame or key frame. I have been trying to get this animation to play in reverse order for about a week now and I came across the TweenMax and it has a lot of good subclasses, but not much information online about the reverse subclass.

stop()
// importing the classes TweenMax and easing
import gs.TweenMax;
import fl.motion.easing.*;

[code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved