ActionScript 2.0 :: Playing A Movieclip Backwards?
Nov 5, 2009
I hope someone will know a solution to this problem: I have a movieclip with a tween in it, which moves a object up and down.
I have 2 buttons on my _root: One which had to move the object up till the end of the movieclip when pressed so it will stop after reaching the end of the tween. Or it stops playing when the button is released.
Another one doing exact the oposite, it moves the object down when pressed. And should stop at the beginning of the tween. This button also has to stop when the button is released. The button playing the movieclip backwards doesn't work as it should be. It doesn't reverse the movieclip, it just jumps to a previous frame.
View 1 Replies
Similar Posts:
Jun 15, 2010
I'm re-designing my website in Flash CS4. There will be 6 buttons when it is finished. I have created 6 movieclips that fades in the text when you click on each button. What I'm trying to do is make the movieclip play backwards when a different button is clicked so the text fades back out before the new text fades in. I think I've nearly got it. I googled the effect and found the below action script. I've put it on the first button to see if it works, but I get the error messages at the bottom.
WelcomeButton.onRelease = function() {
startRewind (29);
};
function rewindMovieClip (targetFrame) {
[code]....
I keep getting these error messages:
Scene=Scene 1, layer=Welcome, frame=142, Line 1 - Statement must appear within on handler
View 12 Replies
Jan 14, 2003
I remember reading one time that you can play frames backwards. I have this ball going along this line, and when it reaches the end I want it to go back exactly the same. Isnt there some kinda code to play the frames backwards? Also, the line is curved, so I cant just move it straight across real easy like. I had to do a lot of tweening.
View 7 Replies
Jun 23, 2007
I'm having a bit of a problem with getting the timeline to play backwards through frames.I've tried doing something like the following and thought it should've worked but it didn't,with this plz:
function onEnterFrame() {
gotoAndPlay(lastframe);
lastframe = _currentframe--;
[code]....
View 14 Replies
Jul 13, 2004
I managed to make a controller that can play embedded-video-SWF's in "slow-motion" (1/2 speed, 1/4 speed) and in reverse at different speeds. What I'd actually like to do, is something similar, but then with FLV's. I am trying to use the NetStream.pause() as a toggle onEnterFrame, but that doesnt work. Using seek doesn't seem to work either, because it kind of doesn't like non-integers and also for an unknown reason keeps sending the playhead to 4 seconds. if it should be possible to play an FLV at a different speed/reversed, how to do this, and if this should cause performance issues. (Reverse-playing an SWF is much slower for example)
View 4 Replies
Oct 23, 2004
I have an empty movie clip which is loaded with main.swf.When i click on a btn ( in menu ), the movie will play backwards till frame 1 and unload then load a new swf.
View 1 Replies
Aug 23, 2007
I have this movie clip that is a vertical menu. the menu has a left and right button on either side and several small thumbnails inside. when you click on the right arrow, the animation plays, which just slides the thumbs along using a tween. I'm trying to get the left button to play the reverse of the animation.
this is the swf here to have a look. i hope you get the idea of what I'm trying to do.
I've been looking for a tutorial on how to do this through action script, but haven't found it yet. how can i do this so it's more efficient or through action script 2.0?
I did do the scroll tutorial before, but I would like it to go from one thumb to the next one at a time. You can also see that the animation I'm doing now is causing the left arrow to play each time.
View 3 Replies
Feb 16, 2009
I'm trying to figure out how to play my movie on a mouse over on a button, and then reverse it on mouse out, and I can't make it work.
Code:
function forward(event:MouseEvent):void
{
gotoAndStop(2);
[Code]....
View 1 Replies
May 5, 2011
I am looking anywhere to find a way to play sounds in reverse wih flash.
View 5 Replies
Jan 22, 2010
Is it best to try to play a movieclip backwards or maybe use some other technique like reversing the frames and creating a new sequence and the play that one?
or is there an easy way to play the frames backwards?
View 4 Replies
Mar 10, 2009
I have some code done but it could be all wrong as I am not the best coder at all, just starting out.
Here it is:
package classes
{
import flash.display.*;
import flash.events.*;
import flash.display.MovieClip;
[code]....
View 2 Replies
May 4, 2010
I am creating an animation for mouseover. The problem is that when you put the mouse on the edges of the activated animation it "stumbles", trying to decide whether to play next clip forward or next clip backwards.
I got this code from taco:
onClipEvent (enterFrame) {
// if the mouse IS over the clip ...
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
[Code]....
But it doesnt solve the problem that I am describing with the "stumbling".
View 4 Replies
Nov 20, 2007
i'm trying to get a movieclip within a movieclip to stop playing when it reaches its last frame. let me describe my problem: it should start playing when the user rolls over the movieclip that is containing it(i'll call this mc1, and the movieclip within it mc2). i've put a stop action in mc2's last frame but it won't stop and plays again and again. one thing i should point out is that there is a variable in mc1 that tells the movie whether it's ok to play the movie in reverse when the user rolls over mc1, if this is false, that means that it plays normally(not in reverse). i'm using "play()" to play mc1 when the user rolls over it and this is where i think the problem is; even though the last frame of mc2 has a stop action, it is somehow told to play again? anyways, this is just a guess, i haven't figured out why or how to fix it. i'm not sure if my explanation was too hard to understand so i'll try to clarify it if anyone wants me to.
View 1 Replies
Sep 15, 2009
I have two buttons named buttonOne and buttonTwo. When I click buttonOne, the movie clip named oneMc should play its intro and then stop then after that whenever I click buttonTwo, the movieclip oneMc should play outro animation and then movieclip twoMc intro comes in.
Do I need to use the Loader and URLRequest for this one? or use a String?Also, how can I call the movieclip to play its outro and play the next movieclip's intro?Here is my code so far...
buttonOne.buttonMode = true;
buttonTwo.buttonMode = true;
buttonOne.addEventListener(MouseEvent.CLICK, btnOneHandler);
[code]....
View 1 Replies
Jul 10, 2010
Pausing, stopping and playing movieClip (MC) children. I am making SWFs that an interface will load and control (pause, re-start, stop, etc.). Then the interface is paused, the main MC will pause but not it's child MCs. I didn't write the interface, I am just supplying SWFs that are loading into the interface. The developer of the interface willn't allow me to use animated MCs in my SWFs since he can't control them with the interface. So all my animation need to be on the main time line, which is no optimal to say the lease.Can I provide him with some code to allow him to stop the child MCs or is there an Event Listener I could include in the child MCs that would pause, stop, restart, etc when the main MC changes?I currently do not have a fix at this time and since all my animations are on the main timeline, is there a way to select multiple objects (on difference layers) and move and resize them across multiple keyframes?
View 1 Replies
Oct 4, 2008
In as2 I am using:
_parent.gotoAndPlay(_parent._currentframe + 1);
to have one movieclip play and then when it finishes the next movieclip plays. How do I do this is as3?
View 14 Replies
May 10, 2011
What I'm trying to do is show a little explosion movie clip each time the player's ship gets hit by enemy fire. I thought it would be similar to how my shield powerup works, but apparently it isn't -- or it is, and I'm just doing something wrong. Here's the code for the shield business, to give an idea of how things are set up. The shield movieclip is nested inside of the ship movieclip, and it only becomes visible when the ship collides with the shield powerup icon. It runs for 240 frames, fades out and disappears. What I'd like to do is have a multi-frame explosion movieclip inside there as well, which appears, plays once, then disappears, whenever the ship is hit.
[Code]....
View 8 Replies
Jun 20, 2011
I have no idea why it doesn't work. I have a movieclip I make it go to frame lowWalk. mc_player2.gotoAndStop("lowWalk"); On that frame is another movieclip with an animation which should just automatically play and loop... but it doesnt, it stays on the first frame. Remember I tell it to go to frame lowWalk, which is 1 frame with a movieclip with an animation within. I even tried putting a play(); actions on the first frame inside the animation movieclip.
View 5 Replies
Dec 6, 2011
I want to play video clip when it is dragged into the timeline I created. I handled the timeline and drag/drop part but I need that clip to play when button is clicked on. So I need to make my function determine the x position of the movieClip and play it if it is on the certain x value.
View 3 Replies
Feb 3, 2011
So at the beginning when my SWF loads up it also loads up a sequence of animated clips like [code]...
And my clipLoaded function is[code]...
The clip4 file being loaded in has a stop() at the first frame. Later in the game (clip4 is the "outro") I use[code]...
However, the clip only seems to play about 25% of the time and all the other clips which I load the exact same way play fine. The only difference is that those clips get played fairly soon after they load which leads me to believe clip4 is being autoreleased at some point but I really have no clue.
View 1 Replies
Apr 17, 2011
I have movieClip (in as3) and I'd like to know is this movieClip playing now
View 2 Replies
Mar 10, 2012
I'm finding in my current project, a need for a method of playing animations (MovieClips) at a speed that is different from the stage framerate. I need to dynamically adapt animations, which i've created natively at 20fps, to play at 10, 40, or any other arbitrary value. Of course frame skip/stall is most likely the only way to do this - that is when playing slowly the animation may stay on the same frame for a number of stage frames, eg 1,1,2,2,3,3 etc.. and when playing fast, may jump over several frames to advance the animation faster (at the cost of a minor loss of smoothness, but that's fine.) eg, 1,4,6,9,11,14 etc. (the size of jumps wouldn't always be consistent)
View 3 Replies
Apr 6, 2007
I am trying to figure out how to connect a preloader with a movieclip I made. Essentialy what I want to happen is for the heart graphic to start out black and white and as the percentage preloaded increase, the color version of the heart I masked will appear. Here is the link to the .FLA file. I have a basic mask over the colored version of the heart that I motion tweened to move. Now that I have this setup, how do I plug it into a preloader to enable it to sub as a load bar. Partially coloring the image as more of the document is loaded.
[URL]
View 8 Replies
Jan 31, 2009
I've got a movie clip instanced as "ground", with stop(); in the first frame, and I want it to play if either the S or W keys are down, but stop when neither are down.
I've got:
PHP Code:
var myListener:Object = new Object();
myListener.onKeyDown = function() {
if (Key.getAscii() == 87 || Key.getAscii()== 83) {
_root.ground.play();
}else{
_root.ground.stop();
}}
In on the root frame. Though, obviously this doesn't work.
View 4 Replies
Mar 15, 2009
I am trying to play a simple movie clip when the playhead gets to a frame label called "home". The moveclip is called "playRollClick".I am trying to write this in as3.The code below is what I've come up with so far, but it doesn't seem to work.
addEventListener(Event.ENTER_FRAME,playRollClick);
function playRollClick(event:Event) {
rollClick_mc.play();
}
View 2 Replies
Mar 17, 2009
I dragged and dropped my movie clip on to the stage, and it doesn't play. Other movie clips play, but the one I need to use doesn't play. I even added a function that is supposed to play the clip when you click on another clip, and it doesn't work although others do. I've attached the fla for reference, the clip that I'm trying to use is wipe3.
View 1 Replies
May 15, 2009
I'm just wondering if there is an event for MovieClips that tells when the MovieClip's animation has finished playing. Basically, I have an explosion movie clip that I put on the stage. I want to have it animate once through it's loop, then remove itself.
View 1 Replies
Jan 16, 2010
If I have a flash document, that's set at 12 FPS.... can I make certain movie clips play at like 30 FPS even though the main document is set to 12?
View 2 Replies
Apr 26, 2010
I'm using AS2 (Flash CS3). I have an invisible button that on rollover should play a movie clip. Within that movie clip I need it to play frame 33. However, when I use the following code it does absolutely nothing. Instance name of the movie clip is "flavorIcons".
on (rollOver) {
flavorIcons.gotoandPlay(33);
}
View 2 Replies
Jul 13, 2010
Why won't my sound play? It should play on Mouseover and stop on Mouseout.
stop();
import flash.display.MovieClip;
import flash.events.MouseEvent;
var req:URLRequest = new URLRequest("squeeak.wav");
var sound:Sound = new Sound();
var controller:SoundChannel;
function soundLoaded(event:Event):void{
controller = sound.play();
[Code] .....
View 1 Replies