Passing Backward A Movie
Hello.
I'm traying to run backward a movie. I write this in the last frame:
_root.gotoAndPlay(_currentframe-1);
and I hoped the playhead jump backward frames one after one. That doesn't occur.
Someone have an idea to accomplish this?.
Thanks Friends!.
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-12-2004, 02:49 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Movie Clip - Forward And Backward
Hey,
Does anyone out there know how to set this up?
2 buttons (a) and (b)
I have a movie clip with 10 frames in it.
I want button (a) to make the movie play forward
and (b) to play it backward from the place that
(a) left off. When your not on either button the
movie stops.
I don't think its very hard but I can't seem to
figure it out and can't find any tutorials on it.
I know how to make buttons that 'slide' a movie
up and down or left and right, but what I want is
for the buttons to play the movie.
Thanks to anyone who can hook me up.
Scroll Movie Forward Backward Etc
Hello, a novice here. Wanting to learn how to have the cursor control an embeded quicktime movie. The cursor movements control the forward and backward direction the movie plays in. By the way the movie has linked buttons in it. I have a poor version worked out but is awkward...
Any help would be grand Cheers...Taksman
How To Play Movie Clip Backward?
Hello, I know that this is a simple question. I also now that there have been posts with same question. They all were not satisfying for me.
I have a movie clip (25 frames long animation) and i am trying to play it from end to the beginnig (because there is no way, as far as i know, to reverse animation in the timeline).
I have created a second layer (empty) with actionscript in it. It is supposed to control the process.
Code:
_root.onEnterFrame = function() { //it is executed every frame
if (i==null || i>33) i=0; //duration of animation & empty frames = 33
i++;
trace(i);
_root.gotoAndPlay(33-i);
}
well... yeah. It does not work :]
Forward And Backward Buttons On Movie
well what i am trying to do is move between 2 text boxes through a motion tween. but thats not going to work because you can't tween backwards. so what would be the best thing to do?
this has probably been posted before but i have no idea where it is. i tried the sliding menu tute but that didn't work. i'd appriciate any help.
dave
Playing A Movie Clip Backward
I rememer seeing somewhere a tut about playing a movie clip backwards to save frames. the effect is like in the advanced rollover tut, only instead of making half the tween one way then half the other, you make it play one way then use script to play it backwards on rollout. anybody know how to do that?
I hope that was understandable.
Forward And Backward Buttons On Movie
well what i am trying to do is move between 2 text boxes through a motion tween. but thats not going to work because you can't tween backwards. so what would be the best thing to do?
this has probably been posted before but i have no idea where it is. i tried the sliding menu tute but that didn't work. i'd appriciate any help.
dave
Playing Forward And Backward A Movie Clip
Hello friends, I was hoping someone could enlighten me on this.
I have a movie clip and some buttons on the stage. Depending on the button I press, the movie clip will either have the frames moving forward or backward.
Let me illustrate :
Movie Clip : total 30 frames
6 buttons (A, B, C, D, E,F)
Actionscript : Stop() at frames 5,10,15,20,25,30
If frame is at 1 : will move to frame 5.
At frame 5 :
Button A does nothing
Button B moves movieclip to frame 10
Button C moves movieclip to frame 15
Button D moves movieclip to frame 20
Button E moves movieclip to frame 25
Button F moves movieclip to frame 30
At frame 10 :
Button A moves movieclip backwards to frame 5
Button B does nothing
Button C moves movieclip to frame 15
Button D moves movieclip to frame 20
Button E moves movieclip to frame 25
Button F moves movieclip to frame 30
At frame 15 :
Button A moves movieclip backwards to frame 5
Button B moves movieclip backwards to frame 10
Button C does nothing
Button D moves movieclip to frame 20
Button E moves movieclip to frame 25
Button F moves movieclip to frame 30
etc etc... you get the idea
Can anyone please detail out how this is possibly done ?
Thank you very much for your kind assistance
Can I Get A Flash Movie To Play Forward Then Backward?
Is it possible to have a flash movie play forward, then once it reaches the end starts to play backward? I would really like to accomplish this so that I can have a seamless, looping animation that will still be small in file size. Any help is appreciated.
Thanks
Garrett Reese
Control Movie Forward/backward With Mouse Movement
I've got a movie clip that I would like to control with the mouse. Wherever the mouse goes the movie will either go forwards or backwards depending on where the mouse is in relation to the center of the screen.
Also, I have 9 buttons across the top of this. How can I control the movie that when I click each button the movie continues to play up to a specified label. Then if I click another button it will move on to that specified label. All can get it to do is gotoandstop label"first". That just jumps it to the label. I want the movie to play through until it gets to the label and stop. Also, is there any way to make the movie run backwards? Like if I clicked frame label 9, then clicked frame level four that it would play backwards from 9 to 4. Know what I mean?
Forward & Backward Movment Control In Movie Clips?
I have a movie clip of a 3d fly through of a map of my local town exported to Flash from Cinema 4D. What I want to is have control over going forward and backward through the movie clip to specific points upon hitting specific buttons. I don't want to jump from point to point, I want to play and rewind from point to point.
Usual searches have come up with nothing. Where do I start?
Many thanks
Chris
Forward & Backward Movment Control In Movie Clips?
I have a movie clip of a 3d fly through of a map of my local town exported to Flash from Cinema 4D. What I want to is have control over going forward and backward through the movie clip to specific points upon hitting specific buttons. I don't want to jump from point to point, I want to play and rewind from point to point.
Usual searches have come up with nothing. Where do I start?
Many thanks
Chris
Controlling A Movie Clip (playing Forward & Backward) With Multiple Buttons
Hey guys, i started tinkering around with actionscript a few weeks back. Hence, i don't really know the more complicated syntax. However, since i was learning programming (C, VB etc) a looong time back, i figured i'd be able to work out the underlying logic.
Problem: I can get a movie clip to play forward and backwards with two buttons. However, when i'm adding more buttons, which are supposed to get the movie clip to start playing from wherever it is, and to come and stop at x frame, i'm hitting a roadblock.
My stage currently has 3 buttons, with the following code:
BUTTON 1
Code:
on (release) {
_global.newLink = 1;
_global.buttonValue = "one";
}
BUTTON 2
Code:
on (release) {
_global.newLink = 2;
_global.buttonValue = "two";
}
BUTTON 3
Code:
on (release) {
_global.newLink = 3;
_global.buttonValue = "three";
}
My movie clip has the following script on it:
Code:
onClipEvent (load)
{
stop();
_global.currentLink == 1;
_global.newLink == 1;
_global.buttonValue == "none";
}
onClipEvent (enterFrame)
{
stop();
if (_global.currentLink - _global.newLink < 0)
{
_global.dir = "fwd";
}
else if (_global.currentLink - _global.newLink > 0)
{
_global.dir = "bkw";
}
else
{
_global.dir = "stay";
}
// FOR FORWARD MOTION
if (_global.dir == "fwd")
{
if (_global.buttonValue == "two")
{
if (this._currentframe == 15)
{
stop();
}
else
{
this.nextFrame();
}
}
else if (_global.buttonValue == "three")
{
if (this._currentframe == 24)
{
stop();
}
else
{
this.nextFrame();
}
}
}
// FOR BACKWARD MOTION
else if (_global.dir == "bkw")
{
if (_global.buttonValue == "two")
{
if (this._currentframe == 15)
{
stop();
}
else
{
this.prevFrame();
}
}
else if (_global.buttonValue == "one")
{
if (this._currentframe == 1)
{
stop();
}
else
{
this.prevFrame();
}
}
}
else if (_global.dir == "stay")
{
stop();
}
}
Where am i screwing up?
Passing Variables From Loader Movie To Loaded Movie, Flash Satay Method
I like the Flash Satay method for its clean integration and standards-compliance, however there are still some things I can't manage the way I want to... I'm trying to implement a working method to pass variables from the loader movie to the loaded movie. As you may know, the Flash Satay method uses a small SWF file which uses a bit of code to load the desired movie, all in order to allow IE browsers to retain streaming capabilities when rendering Flash content through the <object> tag. Basically it's just a small file with the following AS2 code in the first frame:
loadMovieNum(path, 0);
This means the c.swf file is ENTIRELY replaced at level0 with the desired movie, and any variables that were passed to the loader movie turn to smoke.
I'm trying to generate a querystring using all other variables the loader movie receives, and pass that along with the filename for loadMovieNum. This seems to be working very well in most cases, but whenever there's a URL in the querystring (even URLEncoded), BAM, everything turns to lowercase... EVERYTHING... here's an example:
c.swf?path=banner.swf&myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER
this successfully loads banner.swf in place of c.swf, with the following correct querystring appended
banner.swf?myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER
If I try:
c.swf?path=banner.swf&clickTag=http://www.myurl.com/&ANOTHER=variable
this successfully loads banner.swf in place of c.swf, but I end up with lower-cased querystring (all of it!!):
banner.swf?clicktag=http://www.myurl.com&another=variable
what happens to my capital letters?? I need these to remain case-sensitive as there is no saying how the loaded movies are programmed. The generally accepted convention for "clicktag-enabled" banners is to use _root.clickTag as the link button's URL...
Even URL-encoding the URL doesn't change this
For reference, here's the HTML snippet and ActionScript 2 code I use:
---- html ----
<object type="application/x-shockwave-flash" data="c.swf?path=banner.swf" width="728" height="90">
<param name="movie" value="c.swf?path=banner.swf" />
<param name="FlashVars" value="clickTag=http://www.google.com/" />
</object>
Attach Code
----c.swf----
var queryString:String = "";
for (var i in _root){
if (i != "path" && i != "queryString" && i != "$version"){
if (queryString) { queryString += "&"; }
queryString += i + "=" + _root[i];
}
}
if (queryString != "") {
loadMovieNum(_root.path + "?" + queryString,0);
} else {
loadMovieNum(_root.path,0);
}
Edited: 10/01/2008 at 10:40:48 AM by Inzoum
Passing Variables From Movie Clip To Loaded Movie
I've got a movie clip which contains a button in it. This movie clip contains a few dynamic text fields and is duplicated 20 times. When clicked the button loads a movie into a specified target. Is there a way to send the movie clip's variables to the loaded movie?
Thanks very much.
-Mike
Backward Mc's
Hey,
having a problem. I created a image viewer with next and back buttons that have the following actionscript:
on (release) {
tellTarget ("engine") {
nextFrame ();
}
}
and one this:
on (release) {
tellTarget ("engine") {
prevFrame ();
}
}
the "engine" mc has all the mc's of the images in it. this works great. One thing though.
I want the images to tween in from left to right. I created separate mc's for them, and they work really great when they go forward. when I click on the previous button though, the previous clip plays in the forward direction as well, making the previous button look really weird when it is pressed.
is it possible to have the individual mc's to play backwards when the previous button is pressed. So the mc's tween from right to left instead of left to right like they do when the next button is pressed?
the file is here:
http://www.e-dotsolutions.com/html/gallery.htm
any help would be greatly appreciated.
Thanks.
Backward Playing
Hi,
I have encountered a little problem recently, how do I play a movie backwards,
i.e. starting from the last frame and playing backwards to the first frame.
I am trying to make an animated button in an efficient way. When a mouse rollovers a button, a movie clip plays, but when it rolls out I want the movie clip to play backwards, starting from the frame that it stopped.
I would appreciate any help,
Thanks, Stas
Playing Backward
Hello,
Does anyone know a command for playing the movie backward (e.g. for a button).
Thanks,
Mike
Play Mc Backward - Help
hii alll
im new here and an i hope you can help me.
i need to create mc that will play when mouse over
and when mouse out it will play backward
from the same frame to start.
ill use the mc fot up state of a button.
thanks
tin tooon
Play Backward
Hello,
i've just passed through the archives but couldn't find my answer despite the fact that it's porbably there somewhere
I created a MC that is a rectangle, very small, that grows in the bottom right direction (up to here nothing exceptional) but that grown rectangle must retract and disapear (hence, play backwards) once i cliqued on a button included inside the MC.
I found in the archives how to create on (press) play forward or backward but what i'm looking for is simply on (release) play backward (and disapear since vary small again)
any ideas?
thanks and thanks to all the ones who helped me a lot these past days
Simple Backward In MC
Hi Guys, iv been searching around on backwards codes, but nothing seems to work for me so i gonna post my simple idea, pls someone help...
I Just have a Movie Clip that is a book...inside it i have a button to go forward and backward (and a flip page animation)...
I just want that..when the left corner button is pressed, it (the Book mc) goes PREVIOUS FRAME like 5 times ( 5 frames)....
is there an easy way to do that?? thanks in advance
Backward Slider
I can't figure out why this is backwards.
If I drag to the right the volume decreases. If to the left it increases.
Code:
onClipEvent (load) {
top = _y;
bottom = _y;
left = _x-50;
right = _x+50;
}
onClipEvent (enterFrame) {
if (dragging == true) {
_root.audio_mc.mySound.setVolume(100-(_x-left));
}
}
What's wrong?
Thanks in advance!
Playing Backward
Can somebody help me?
I`ve got a 12 keyframes with some images, forming a short movie,
ANd two buttons one is play and the second is a oposit of play, it should play in the oposit direction, from 12-th keyframe to 1-st frame. for the play button i`ve got action:
on (press) {
play();
}
how to make a action oposit from this one?
Thanks a lot
A.Sacchi
PLEASEEEEEEEEE HELLPPPPPPPPP
Going Backward Whit A FLV At 30 Fps ?
My playHead is going from frame 1 to 205.
When it hit the frame 204 or more its going back to frame 4 playing all the frame one by one backward.
Code:
onClipEvent (load) {
var backward = false;
}
onClipEvent (enterFrame) {
if (_currentFrame >= 204){ backward = true;
} else {
if (_currentFrame <= 4) backward = false;
}
}
onClipEvent (enterFrame) {
if (!backward) {
play();
} else {
gotoAndStop(_currentFrame-1)
}
}
The problem is that it seems to go backward at 1 fps and not 30 fps.
It is not fluid when it goes backward.
Anyone got a idea ?
Playing MC Backward - How To ?
Hi experts!
What I want to do is (what I've seen on a thousand flash-pages, but can't figure out how do to myself!) have each content-page of my homepage in seperate movie clips and control them with a menu movie clip. As I've done it so far is following:
Each movie clip (with content for each page) is placed in a seperate layer and in a seperate frame - first frame displays page with front page content, next frame displays the usual "About company", and so forth.
Each page-mc has a roll-down function, when the frame is entered, with following code:
onClipEvent (enterFrame) {
if (this._currentframe<this._totalframes) {
nextFrame();
}}
This works fine. The problem is that I want it to "roll back up" (play the movie clip backward) when I click the menu to enter another page - that is, just before I enter the next page, naturally. That, of course, presents the problem, that the content of the next page covers the rewinding content of this page, so I can't see it, even I figure out how to rewind it.
So, you see, several problems in one... I'm getting lost here.
I've tried the usual prevFrame code with several code snippets to play the mc backward, but the problem is, right now I don't even know how to handle the organizing of the movie clip pages, so they don't cover eath other.
I've fiddled with the idea of whether it's possible to first rewind the ongoing content movie clip, and then jump to another frame (with another mc) by the click of a button in a third mc (the menu mc). If this is possible, I think this would solve it all.
Please advise. My deadline was three hours ago!
How Can I Play Flv As Backward?
hi,
I need to play my movie firstly normal and than play backward when normal is
done.
but I didnt find any way except putting it into a swf for timleline frame
control. so, is there any way to make backward playing with FLVPlayback
component
btw, I have lots of videos, so using swf way is really wrong way.
regards,
Burak
Backward Timestamp
I am using simple record, but it is not recording properly, playback is showing still video, audio is running, at last moments video runs very fast without audio.
Management console always displays several lines like this
Server detected a backward timestamp from 60332 to 60056
Forward And Backward
PHP Code:
onClipEvent (enterFrame) {
if (this._currentframe == 1) playMe = true;
if (this._currentframe == this._totalframes) playMe = false;
if (playMe == true) this.nextFrame();
if (playMe == false) this.prevFrame();
}
PS: I've seen this asked a few times in some forums... I thought I should share my way.
Help With Backward Button
hi, i'm new to this awesome forum. i apology if this has been mentioned before.
it's starting to get on my nerve. grr, i'm trying to get backward button to work and it did but it goes all the way to beginning of the movieclip. forward button works just fine, it stops whatever frame has stop();. any help will be great!
here's an example on what i have done so far. i'm so confused with actionscript.
hope that makes sense.
How To Play MC Backward When It's On End?
Hi!
Can anyone help to solve my problem: I made a very compley shape tween and want it to play backward when it's end, but I don't know how. The MC must looping forward and backward.
I don'r have any idea . HELP!
Timeline Backward
I wonder if I can play the timeline backward with a actionscript.. That I tell it to go from frame 45 to 1??
Help With Backward Button
hi, i'm new to this awesome forum. i apology if this has been mentioned before.
it's starting to get on my nerve. grr, i'm trying to get backward button to work and it did but it goes all the way to beginning of the movieclip. forward button works just fine, it stops whatever frame has stop();. any help will be great!
here's an example on what i have done so far. i'm so confused with actionscript.
hope that makes sense.
How To Play MC Backward When It's On End?
Hi!
Can anyone help to solve my problem: I made a very compley shape tween and want it to play backward when it's end, but I don't know how. The MC must looping forward and backward.
I don'r have any idea . HELP!
Timeline Backward
I wonder if I can play the timeline backward with a actionscript.. That I tell it to go from frame 45 to 1??
Play Backward
is there a component like actionscript that plays the movie backwards? i wanna use it at anytime in my projects, couldnt figure it out.
on (release) {
_root.art.gotoAndPlay("one");
if (_root.pics._currentframe eq 34) {
_root.pics.gotoAndPlay("two");
}else (playReverse);
How can i replace that playReverse? any help? Thanks!
Play Backward On Mouseout?
How do I make a button play the animation contained in it's own 2nd keyframe backwards on mouseout?? I have a button that will play it's animation when the mouse rolls over it, but I need to know how to stop and play backwards from the current frame when the mouse rolls out. I'm sure everyone has seen it a million times, but I can't figure it out.
Backward Compatible With Flash 5?
I started a website for a client in Flash Mx, then he told me that it would have to be done in Flash 5, is there any way i can convert it over?
anyhelp would be kool
thanx
Gadgets
Forward/Backward Animation
I have animation in legth of 5 frames, it is opening drawer, so to reuse this 5 frames i would also like it to close..how should i simply do that in AS, just to go back to frame 1??
Playing Frames Backward
I have an annimation with two buttons one goes to the next approaite frame the other goes backward.
For the forward buttons I am just using the GotoAndPlay fuction, but how do I make the back button play the frames backward?
Any help would be grand!
Cheers
Jemes
HELP Text Backward (Inside Out)
Hello everyone! I have a problem on the dynamic text and i am wondering if anyone can help me out...
when you go to this website
www.lasermd.ca
when you go to the main page the text is backwards and inside out.. i am wondering how come this is the case.. really strange..
i used flash to make a dynamic text box and add the text in ... add the scroll bar from the components and voiala it works all the time on my other sites but this one.. really strange..... i used front page to import the flash file into the html page...
any help would be great! since i am about to pull my hairs on this one! thanks!
Sam
Making A MC Timeline Go Backward.
My brain is hurting badly. Could someone take a look at this file and tell me why it will not play in reverse when you roll over the bottom button?
Thank you,
John
Play Head Backward
I have created scrolling text which moves one frame at a time up or down using the action script code:
on (release) {
tellTarget ("/text") {
nextFrame();
}
}
and
on (release) {
tellTarget ("/text") {
prevFrame();
}
}
but I need to make it play instead of advance one frame at a time so I changed the 'nextFrame' to 'play();' which works and stops at the next stop(); command, but how would I be able to have the playhead go in the reverse direction to scroll in the other direction?
Can I Send The Timeline Backward?
well...I don't know if it's what I mean, but I need to make a command scroller such as the one in this page
http://www.ign.com/?fromint=1
you know, the 'today on ign' one.
I can make a scroller that goes in a direction and it's perfect, but I want to use 2 buttons (forward/backward) to have total control on the bar.
any help????
Playing Backward.....complicated
Hi Buddies...
It's been really helpful all of u who have been frequently responding my queries. My sincere thanx to u all for that.
I'm going to ask something about playing reverse in timeling without copying frames and set them "reverse".
I went through a tutorial yesterday but that didn't help me out. On that tutorial the simple animation and buttons were included. And that seems really easy to play backward the movie.But my project wants more than that. At first the button (on which actionscript for playing backward is to be assigned) is not in the same movie. Let's put it this way...
Part of my animation is started this way :
1)My first MovieClip(MC) named Main_menu includes 2 MCs
a) Shadow (MC) (on frame 1, includes animation)
b) box (MC) (on frame 2, includes animation; starts to play only after finishing animation in Shadow MC)
box (MC) also includes another animated MC called main_box which includes some buttons. Lets come to the point now.What I want to do is; I want the button named "close" to reverse all previous animation exactly reverse or play backward to the original state of MC Main_menu....exactly reverse.
I hope u all understand what I'm trying to do or say. I direly in need of the wayout for this. So I'll be looking forward to anyone of urs help. Any sort of help or link for tutorial would highly be appreciated. Thanx in advance !
Flashish
Random Backward Forward
hi, i need a script, that makes:
on the main timeline the movie plays backward and forward one frame randomly and looping forever. I mean on each frame should be an action sript that randomly decides where to go: backward or forward.
Is This Even Possible? Running Frames Backward
Hello there fellow Flashers!!
uh.. can somone tell me if it is flashively possible to get the frames to run backward, without using buttons, just adding the actions directly into the frame. The same layer must also be capable of going forward. So it goes fwd, then backward and fwd and backward in a loooooop.
I've been stuck in the rut with this one for a couple of DAYS now!
Thanks!
Playhead In The Backward Direction
(AS 1)
Hi,
Is there a way to reverse the direction of the playhead in a timeline? I'd like to control the direction (normally frame 1 to 400) so that it can also be played in the direction frame 400 to 1. So backwards.
Thanx!
Scrolling Nav Forward And Backward
Hello, I'm new and am just past the beginner stage of flash.
I have a question. Take a look at this site:* www.fabianocom.com
Does anyone know how the flash on this site is done. It can scroll backward and forward on the timeline.
any help would be appreciated, thanks, robw
[F8] Forward And Backward Button
I'm doing a school project in Flash, and I have it so that it shows a description of a picture. I made buttons and I need a script so that I can go forward one frame and stop, and another button to go one frame backwards and stop. Please help!
[CS3] [AS3] Backward Button Linking
Ok I'm having a problem getting my buttons working. I have 5 seperate Symbols, one for each page of my website. When the page loads 5 buttons appear and the user can select which page they want to visit. I use
PHP Code:
stop();
import flash.events.MouseEvent;
//---Main_Line---\
main_btn.addEventListener(MouseEvent.CLICK,mClick)
studio_btn.addEventListener(MouseEvent.CLICK,sClick)
service_btn.addEventListener(MouseEvent.CLICK,uClick)
join_btn.addEventListener(MouseEvent.CLICK,jClick)
contact_btn.addEventListener(MouseEvent.CLICK,cClick)
function mClick(event:MouseEvent):void{
gotoAndStop("Main_1");
}
function sClick(event:MouseEvent):void{
gotoAndStop("Studio_1");
}
function uClick(event:MouseEvent):void{
gotoAndStop("Us_1");
}
function jClick(event:MouseEvent):void{
gotoAndStop("Recruit_1");
}
Well now what I'm having problems with is when they select an option, It moves them to the correct symbol. However, I can get the buttons from one symbol to link to the others.
For instance once they click the "Main" button, it goes straight to the main page correctly. But if I select the "Us" button, it simply re-loads to the Main page again instead of going to the Us page. I have a feeling it has to do with the destinations. but I can' seem to figure out the right destination I tried this.Main_1 and root.Main_1.
Phew that was long, but any suggestions?
|