Movie Clip Reverse Loop
hey --- what I'm trying to do is have a mc play continuously either forward or backward depending on whether you roll over the "forward" or "reverse" buttons...
I've almost got it there, except I can't figure out how to get the reverse to loop after it gets back to the beginning of the animation. any help would be greatly appreciated
http://www.brianfitzgeralddesign.com/spinner2.html
This is the current "reverse" code:
Code:
this.onEnterFrame = function(){
if(rewind == true){
_root.spinner_mc.prevFrame();
}
}
this.onRollOver = function(){
rewind = true;
}
this.onRollOut = function(){
rewind=false;
}
This is the current "forward" code:
Code:
this.onRollOver = function(){
_root.spinner_mc.play();
}
this.onRollOut = function(){
_root.spinner_mc.stop();
}
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-28-2006, 03:56 PM
View Complete Forum Thread with Replies
Sponsored Links:
Reverse Movie Clip
Hi Iam khader and I hope to help me to solve my problem which make be sad I ried to di it but i don't know why didn't be correct ,really Iam trying to reverse Movie clip using Action Script with out using (Reverse Frame)
If there possible to help me plz tell
thanx
View Replies !
View Related
Reverse Movie Clip?
let me see if i can explain this
on my stage i have 2 buttons and a movie clip
in my movie clip i have a line of logo designs so that when i rollover button 1 my logos scroll left until they have cleared off the stage
how can i make button 2 make the movie clip scroll right so to view my logos again
this is the script on button 1.
on (rollOver) {
hit = 1;
}
on (rollOut) {
hit = 0;
}
and this is the script on my movie clip.
onClipEvent (enterFrame) {
if (_root.hit == 1) {
this._x +=- 8;
}
}
please help! thanks
View Replies !
View Related
Movie Clip Reverse
Okay, I have searched for other post related to rewind and reverse, but this is different, let me explain.
What Im doing is a website with menu, and buttons and i want to rollover the button and an animation from a different movie clip starts, but when i rollout i want the animation to rewind from the frame i rolled out.
i what i did so far is rollover and play and rollout rewind but it goes back to playing again, i want to make it stop at the first frame after the rewind, but i did this all in one mc, what Im looking for is to use different mc for each animation. heres the file. Appreciated.
View Replies !
View Related
Reverse Movie Clip
I have a movie clip of a square moving across the sstage. the movie clip has an instance name of square. I have 2 buttons (a forward arrow and a backward arrow). Here is the script I have on the forward arrow.
on (release) {
_root.square.gotoAndPlay(2)
}
Now what script would I put on the backward arrow to reverse the playhead on the movieclip (square)?
Thanks for the help.
creeg
View Replies !
View Related
Reverse Movie Clip
I am a beginner in flash right now and have one quick question. I have just made a movie clip of a 2D character walking to the right. Now I would like to take this character and make him walk to the left (saving this as a separate movie clip). Instead of starting all over and having to go through all the key frames I was wondering if there is a faster way of reversing him. In other words I'd like him to flip over (i know there is a way to flip him easily) and then walk the other way. Almost as if I reversed the entire movie clip except instead of walking backwards he was walking frontwards to the left.
Edit: Also if anybody knows any sites that have help for beginners. Like a tutorial that brings you through the program slowly.
Edited: 11/30/2007 at 05:16:48 AM by mpberlam
View Replies !
View Related
Movie Clip In Reverse
Does any know how to play a movie clip in reverse. I have tried the copy frames and reversing them but that does not want to work for my animation. I am just looking for a simple script that when someone mouses over the invisiible button the playhead moves forward and when they mouse off the playheads moves backward from the frame its on. I have posted the fla here if anyone could help.
Thanks
Jeff
View Replies !
View Related
Reverse A Movie Clip Using AS
have had a crack at this problem and am curious how I can reverse a MovieClip instead of using more frames.
this is what I thought would work but it only goes to the previous frame (as stated in the code), not throught the whole lot.
please feel free to comment.
on (release) {
bckgrnd.cover.prevFrame();
}
View Replies !
View Related
Reverse A Movie Clip Help
Hi all
My first post ever...
I have started on a new website. Using one of Kirupa's great tut's I have created abutton with a 'complex' rollover/rollout effect.
However, if you look here:
http://www.fishgraphics.co.uk/cool4/
And then click on the blank button at the top of the left-hand navigation panel, you will see a 3D movie load in. I want to be able to 'rewind' that movie using one of the other buttons on the left, so that the movie just playes backwards and disappears back into the wall.
What code do I need to place into my new button to make the 'Window Movie' play backwards?
Thanks for your help!
View Replies !
View Related
Movie Clip In Reverse
Does any know how to play a movie clip in reverse. I have tried the copy frames and reversing them but that does not want to work for my animation. I am just looking for a simple script that when someone mouses over the invisiible button the playhead moves forward and when they mouse off the playheads moves backward from the frame its on. I have posted the fla here if anyone could help.
Thanks
Jeff
View Replies !
View Related
Playing A Movie Clip In Reverse
Hello, I was wondering is someone could point me to a tutorial for playing a movie clip in reverse when triggered by a button.
I did find one tut on this subject on the site but it uses the Tell Target and I was wondering what the new method would be for doing so.
I have two buttons, when you roll over one it plays the movie.
When you roll over two I want it to play in reverse
Also, if I have a sound loop in the movie clip that is set to stream, will it also play in reverse??
Can you help?
Thanks Much!
Rick
View Replies !
View Related
Movie Clip In Reverse After OnRollOut
I'm a little new to actionscripting, and I need a little help. I'm using Flash MX, also.
I have a button which I created to play a movie when hovering over it (the button item appears to move out toward the viewer). What I want to do is to have the movie reverse (named "x") once the mouse is moved off of the button (the button item lowers to it's original position).
It seems like I would have to use a script such as:
on (release) {
this.onRollOut = function() {
gotoAndPlay(x);
};
}
where x is the movie in reverse. At the moment, I'm attaching the aforementioned script to the button containing the movie (movie is contained in the "over" state), but I'm not sure where to put x. I don't think x belongs in the button layer (with the button states), and I don't know where else to put it. I've tried putting it in the second frame of the layer containing the button, but it doesn't seem to work. Is there another way to do this? Any ideas, anyone?
TIA,
aaroneousmonk
View Replies !
View Related
Play A Movie Clip In Reverse
I have several button created and several movie clips that go along with the buttons. What I am trying to do is have each button play a particular movie clip on mouse over and then play that same movie clip in reverse on mouse out.
any thoughts?
View Replies !
View Related
How To Do The Reverse Of Creating A Movie Clip
Instead of making a movie clip and working inside that, I need to know how to do the reverse, basically take all the content, layers, tweens everything and put that entire thing into a movie clip.
I have this animation and I don't want to have to open another document and create a movie clip symbol and then basically re-create the entire animation again within that mc. Is there a better way?
Thanks!!
View Replies !
View Related
Play A Movie Clip In Reverse
Little help?
I'm trying to do a little virtual reality thing here. I took several photos of a golf club, circling the club 360 degrees. Now I want to place these photos in a timeline and have the user be able to control which way the movie runs. When they mouse to the left...the movie plays backwards. When they mouse to the right...the movie plays forward.
Any thoughts?
View Replies !
View Related
Reverse Movie Clip Actionscript
For the sake of an easy example.
I got a movie clip of a circle that in 10 frames motion tweens and grows twice the size.
I also have a sqare that when rolled over starts that circle movie.
I need the actionscript that will tell the circle movie to play (on rollover) and when rolled off reverses it back to original size.
Any Help much appreciated! Thanks
View Replies !
View Related
Play Movie Clip In Reverse
Hi I have no real knowledge of actionscript, so please excuse my ignorance. I currently have rollover buttons which tell a movie clip to move along 32 frames at time. Here's what I have (thanks to help from this forum):
button:
on (rollOver) {
this.spinround.play();
}
and then at the first frame of the movieclip I have this actionscript:
stop();
this.onEnterFrame=function(){
if(this._currentframe%32==0){
stop();
}
}
with stop actions at each 32 frame interval.
However I now want to make some of the buttons to tell the movie clip to go in reverse. So on these buttons I have this:
on (rollOver) {
spinround.reverse=true;
this.spinround.play();
}
With this actionscript on the movie clip:
onClipEvent (enterFrame) {
if (reverse) {
this.prevFrame();
}
}
This doesn't seem to work, I'm not sure if it was the right way to go about it. I'm presuming I need to alter the code on the first frame of the movie clip which tells the movieclip to move along 32 frames at a time. But I have no idea what?
Can anyone help me? Many thanks.
View Replies !
View Related
Reverse Movie Clip On Rollout
Hi,
I'm doing something fairly complex for me, but probably pretty simple for some of you.
I have a movie clip of a plant growing. When you rollover a button called sampleText_btn, the movie clip starts playing, and when you roll out of it, the movie clip reverse/un-grows the plant. The problem is, the rollover/rolloff feature only works the first time you rollover. I believe the problem is that the rolloff function reversing the movie clip does not get disabled and it continues to counteract the rollover function of playing the clip forward.
Any suggestions? I tried setting an if/else in the reverse function to make it not go to the previous frame once reaching frame 1, but it did not work. Do I have to set true/false variables or something????
Here is my current actionscript...
ActionScript Code:
stop();
//Define Function plantGrow[url="http://www.russellsresume.com/webdesign/vineGrow04.html"]http://www.russellsresume.com/webdesign/vineGrow04.html[/url]
function plantGrow() {
delete (plantShrink)
plant_mc.play();
}
//Define Function plantShrink
function plantShrink() {
plant_mc.onEnterFrame = function() {
plant_mc.prevFrame();
};
}
//Call Function plantGrow on Rollover
sampleText_btn.onRollOver = (plantGrow);
//Call Function plantShrink on Rollout
sampleText_btn.onRollOut = (plantShrink);
View Replies !
View Related
Reverse Playing Of A Movie Clip
Hallo people! This is my first time posting a thread. Hope it works!
So, i wanna have a movieclip playing backwards. I use a mask and 2 buttons to go from frame to frame so that the user can move and have the illusion that they are standing in the middle of a panorama.
The problem is that i don't know which actionscript to use in order for the movieclip to go backwards when the user rolls over the right button.
hope i explained my problem enough.
thanx anyway for every answer.
View Replies !
View Related
Play A Movie Clip In Reverse...
Someone here had an example of how to play a movie clip in reverse. (had an arrow pointing to a movie clip, and as it rolled off it played backwards) with the use of script rather than creating an "out" animation. I had it, but I misplaced it. anyone know of??
View Replies !
View Related
Play Movie Clip In Reverse?
Is it possible to play a movie clip in reverse?
My navigation is set up similarly to the us.billabong.com site in which it is kind of like the apple cover flow. I was wondering if I should simply create every animation for the cover flow section of the site, or if I could somehow have my animations play in reverse (which would cut my work in half), or if there is some way to do this with actionscript. Thanks so much for the help!
Dave
View Replies !
View Related
How To Play A Movie Clip In Reverse
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 Replies !
View Related
Reverse Playing Of A Movie Clip
Hallo people! This is my first time posting a thread. Hope it works!
So, i wanna have a movieclip playing backwards. I use a mask and 2 buttons to go from frame to frame so that the user can move and have the illusion that they are standing in the middle of a panorama.
The problem is that i don't know which actionscript to use in order for the movieclip to go backwards when the user rolls over the right button.
hope i explained my problem enough.
thanx anyway for every answer.
View Replies !
View Related
How Do I Get A Movie Clip To Play In Reverse?
I have a movie clip that is a simple animation. To cut down on file size I want to be able to play it in reverse. For example, An Animated scene that pans left, then back again. It must be done using key frames. I tried copying frames then reversing them but for some reason with this movie clip the keyframes that I cut and paste are always empty. Please explain why sometimes you can't copy,paste, and reverse keyframes while other times you can. Also please explain how I could play a movieclip in a pingpong type of way. Like going one direction and then back again using action script, and any movie settings I can. Thanks!
View Replies !
View Related
Single Button Movie Clip Reverse
I have seen many reversals using two buttons but that kind of defeats the purpose. I don't want to create the identical frames in reverse and use a stop either. I would like to have a single direction clip that plays forward/ reverse when clicking a single button and operates independently of the main timeline so I can use it as a flyout. I would ultimately want to run a crawl (tickertape) with editable text on this fictitious flyout. Am I nuts?
View Replies !
View Related
Reverse Motion Tween In A Movie Clip
hello, i've searched on this site for my issue, but i'm not sure i've found what i need.
on the root timeline, i have an instance of a movie clip that contains a motion tween (12 frames to increase the size of the mc).
on the actions layer of the root timeline, i have written some code so that when the end user rolls over the mc instance, the motion tween plays. what i'm having trouble with is getting the movie clip to play in reverse from frame 12.
bookIntro_1.onEnterFrame = function(){
this.onRollOver = function(){
this.nextFrame();
this.play();
}
this.onRollOut = function(){
}
}
i've tried this.prevFrame, but it only does one frame, not completing to frame 1 of mc.
i appreciate any assistance offered. thanks in advance.
View Replies !
View Related
Movie Clip Reverse Ignores My Actions- Plz Help?
OK- first post here. I had posted it in Newbie but no avail so I deleted it to post here- hope that is cool.
so...
I made a movieclip that is a series of images that tween into center stage and stop every 12 frames.
I have successfully used a script to place buttons in the clip to play forward and backward, so you can navigate each way through the images.
but...when the back button is pressed it ignores the stop actions on the frames.
code:
function reverseMe(){
_root.mcStreet.onEnterFrame = function(){
if(_root.mcStreet._currentframe > 1){
_root.mcStreet.gotoAndStop(_root.mcStreet._current frame - 1);
} else {
_root.mcStreet.onEnterFrame = null;
}
}
}
button code is:
on (press) {
_root.reverseMe();
}
View Replies !
View Related
Is There A Way I Can Make A Movie Clip Play In Reverse?
I made this movie animation, pretty detailed, but some scenes I think work beter reversed. its not a narrative, just mainly movement.
the thing is since its complex, it didnt work out too well when I did "reverse" frames. Anyone know of any other way I can do this other than the....."hard way?" it seems there would be a script way or just a simple command........
Im using multiple layers which is the reason why I cant flip them around
View Replies !
View Related
Reverse Movie Clip On Button Press?
The site is www.amberbutler.com/index2.html.
Notice that when you click a link, the current content frame dissapears and the next one animates in.
I want the current content frame to animate out and then the next one animate in.
I can't find a tutorial anywhere and I've tried everything I can think of, even naming variables to call a series of complex MCs from the _root. Can anyone point me in the right direction?
Thanks!
sogj
View Replies !
View Related
Movie Clip That Plays In Reverse On Rollout
I have the following code which is applied to the movieclip
on(rollOver){
_root.over = true;
_root.off = false;
}
on(rollOut){
_root.over = false;
_root.off = true;
}
onClipEvent(enterFrame){
if ((_root.over)&&(this._currentframe <= 10)){
this.gotoAndStop(this._currentframe + 1);
}
if ((_root.off)&&(this._currentframe >= 1)){
this.gotoAndStop(this._currentframe - 1);
}
}
I am trying to target the instance for the movie clip as when I apply the code it just plays all the movie clips rather than the instances of the buttons. Could you help me edit the code to target the movie clip that I apply the code too.
View Replies !
View Related
Simple Movie Clip Reverse Problem... Im Thick
Hi All,
im trying to make a scrolling movie clip with a up button and a down button
this is my actionscript on the up button.....
on (press) {
tellTarget ("test") {
prevFrame();
}
}
on (release) {
tellTarget ("test") {
stop();
}
}
this works but only one frame at the time. the problem is i want it to play all the frames back untill i let go of the button...
any ideas?
thanks people
CD
View Replies !
View Related
Movie Clip Timeline Played In Reverse Triggers Multiple Load Events
Howdy
basically I have a movieclip of an animation, which contains 200 frames. the animation's playback is controlled by the _x of the mouse, so the user can shuttle through the animation by moving the cursor from left to right or right to left. OK so far.
when the animation reaches particular points in the animation, i want events to be triggered - so for instance, between frames 50 and 70 of the animation, i want to have a text label appear to specify the contents of that section.
what i've done is to have:
a basic movie clip with a keyframe on frame 50 and a blank keyframe on 70, with the following (approximate) AS:
ActionScript Code:
onClipEvent (load) {
_root.labelholder.labeltxtbox.label = "Scene 1"
_root.labelholder.gotoAndPlay(2)
}
onClipEvent (unload) {
_root.labelholder.labeltxtbox.label = ""
}
hurray! that works fine too. but if i now add a similar clip with different values (label = "Scene 2") further along the timeline, when i shuttle through from left to right, all is well, but when going from right to left, so that playback is in reverse, the load event is triggered several times, BUT ONLY FOR THE SECOND LABEL. no matter where the clip is added, only the first MC on the timeline triggers the load/unload properly.
might make more sense if you have a look at the attached .FLA within the eg.zip.
any solutions or alternative approaches gratefully received...
View Replies !
View Related
How To 'stop' A Movie Clip Within A Movie Clip Within A Movie Clip Loop
I've done searches, laughed, cried, and punched holes through the wall, but I can't figure this out.
I'm in Flash MX (pro) and I have a MovieClip on my main timeline (frame 1). Inside that clip is another animation (the static animation scrolling across the screen), and another inside of it of the static animation (6 characters on a train each animated uniquely).
Confused yet? Ha! OK, so I just want the damned animation on the main timeline to run once and then stop (or to 270 frames). I've tried:
myMovieClip.stop()
to no avail. I've tried attaching the script to the movie clip itself, and also to the frame.
Any suggestions?
View Replies !
View Related
I Need To Know How To Loop A Movie Clip Inside The Main Movie
well heres my problem im trying to loop my movie clip over and over with out tweening from point A to B.
so far i got this actionscript to move it across
---------------
onClipEvent (enterFrame) {
this._x++;
}
----------------
which moves my mc across the screen, and now what i want to do is when the movie clip gets to the end of the screen then i want to loop it again.
i know that it has to be something
-----------
onClipEvent (enterFrame) {
this._x++;
if (this_x<300);
this.removeMovieClip();
}
------------
but i cant get it to work.
well just take a look at my footer and look at the "fog" that changes color, and thats what im trying to do but without having to tween the animation from point A to B.
View Replies !
View Related
Reverse For Loop?
Ok, I really don't know how to reverse the FOR loop.
In my movie I use FOR loop to create a grid out of mc object called wordmc. This mc object has a button inside. Grid has 6 rows and 5 columns. Loops works perfectly BUT I cannot get rid of the grid when move to the next scene. When I go to the next scene the grid stays there and it's always top of each layer??
So how do I delete it or make it invisible when I click "next scene" button? I think I need to reverse the loop somehow so it would pick those buttons out of there.
Here's the loop which creates the grid:
Code:
function buildGrid(){
var t = 0;
for (var y = 0 ; y < s ; y++ ){
for (var x = 0 ; x < r ; x++ ){
var w = _root.attachMovie("wordmc", "wordmc"+t, t);
w_width = Math.ceil(w._width);
w_height = Math.ceil(w._height);
/* place for each button */
w._x = startpX + (x * w_width) + (x * wspace);
w._y = startpY + (y * w_height) + (y * hspace);
w.letterbox.text = wordarray[0].toUpperCase(); /* get letter from the array */
wordarray.splice(0,1); /* remove used letter */
t++;
}
}
}
mc object is called wordmc. Letter R and S have values of 5 and 6 (columns and rows) and wordarray contains alphabet and letterbox is a dynamic text box in the button. So this grid has buttons, which then have letters on them.
How do I get rid of this grid when I move to the next scene?
I would really appreciate your help... I am stuck
View Replies !
View Related
Loop *.flv In Reverse
virtual host
Hi all!
I am building a virtual host with a *.flv streaming into a *.swf. You can see the examle above (stock video from Ultra 2)
I want her to kinda just "hang out" on the site using a loop. To avoid the skip at the end of the loop, I want to make the clip run from Cue Point A to Cue Point B, then reverse back from B to A, then reverse again and continue the "loop" going backward and forward...
It this possible, or am I asking too much?
View Replies !
View Related
Movie Clip Seem To Loop Twice Without Cause, A Bug?
I'm a little bit puzzled. I only have one movie clip on the stage and when I run the script, I noticed this movie clip had looped through the 1st keyframe twice. Problem is I have "stop();" on the first keyframe. I do know the movie clip had started at keyframe 1 and stopped at keyframe 1. So, how did I get to the 1st keyframe twice? Did I so something wrong??
Thanks,
FletchSOD
View Replies !
View Related
How To Reverse Order Of 'for ... In' Loop
The following code works for what I need it to do, except that using 'for (a in xObj){' iterates through the objects in the reverse order:
PHP Code:
private function parseConstruct(xObj:XMLConstructNode, doc:XML):XML {
var a:String, n:String, aObj:Array, nObj:XMLConstructNode, nName:String, nNode:XMLNode;
for (a in xObj) {
aObj = xObj[a];
if (aObj instanceof Array) {
for (n in aObj) {
nObj = aObj[n];
if (nObj instanceof XMLConstructNode) {
doc.appendChild(nObj.toXMLNode());
doc.lastChild.appendChild(parseConstruct(nObj, new XML()));
}
}
}
}
return doc;
}
Does anyone have any ideas on how to adjust it so that the order of the first for...in loop is reversed? I already made a solution that basically creates a new array first and then goes through in the correct order, but that solution just doesn't seem to be the most elegant way. Also, I tried changing the xml operations to use 'insertBefore' instead of appendChild but that didn't seem to work as documented by mm.
Any recomendations would be greatly appreciated.
View Replies !
View Related
Running For Loop In Reverse?
Any ideas on how to run a for loop in reverse? I need it to write the out comes in reverse...and this is the only place where I have control over the information which is being passed through it. Any ideas? Thanks in advance, - Peter.
ActionScript Code:
for (x = 1 ; x < length ; x++) {
}
I tried changing the x++ to an x-- and swaping the x=1 & x<length, but still not working. Any ideas?
View Replies !
View Related
Reverse A Function (w. For Loop)
hello team actionscript once more.
a client asked me to build a simple header, with a few animations and buttons.
so far so good
now as a finisher i'd like to reverse the function while a new page loads
now thanks to the nice reverse() function for arrays i was able to do this
fairly simple.
but one remark/oddity
using the code i pasted below, once i click the unloadMenu function
the last mc (mc4) just directly to place
while mc3, mc2 and finally mc1 nicely tween out
actually this is also in the init function mc1 directly jumps to place followed by mc2 > mc4 nicely tweening in.
can any one point me out what i am doing wrong?
I tried to replace in the unloadMenu function " i " for a new count variable
because i thought flash was having problems with that. but thats to no avail.
I did a fair attempt on searching for this. but the results couldn't help me fix this.
also the code beneath is a blueprint, and i left some parts out, but this should be enough to see the problem.
thanks in advance.
Code:
//imports
#include "lmc_tween.as"
//
//navLoc 1 > 4 is coming from xml input this changes over the different pages all the time.
var mybuttons:Array = new Array (mc1, mc2, mc3, mc4);
var mynames:Array = new Array (navLoc1, navLoc2, navLoc3, navLoc4);
var xLoc:Number = new Number ();
var spacer:Number = 5;
var Xstart:Number = 200;
// opens menu
function init ()
{
for (var i:Number = 0; i < mybuttons.length; i++)
{
mybuttons[i].label_txt.autoSize = true;
mybuttons[i].label_txt.text = mynames[i];
mybuttons[i].tween ("_y", Stage.height / 2, 0.6 * i, "easeOutSine");
mybuttons[i]._x = Xstart + xLoc;
xLoc += (mybuttons[i].label_txt._width + spacer);
//
// for testing only (REMOVE)
mybuttons[i].onRelease = function ()
{
unloadMenu ();
};
//
}
}
//
init ();
unloadMenu = function ()
{
mybuttons.reverse ();
for (var i:Number = 0; i < mybuttons.length; i++)
{
trace ("my buts : " + mybuttons);
mybuttons[i].tween ("_y", 10, 0.6 * i, "easeOutSine");
}
};
View Replies !
View Related
|