Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Reverse Then Do Another Action



hi i am searching in the forum an i found some posts about what i am questioning what i wanna do is:


i have 4 links

home-services-about-contact

ok what i wanna do is if a press services it reverse the actual mc for example if the page is in home you press services and it reverse home then play services then for example if you press contact it reverse services then play contact the example waht i wanna do is here the site with reverse

please i need help,give me a clue at least i know reverse but i don´t know how to that please help me it´s urgent



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-29-2006, 10:19 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Reverse Action
hi,
what is the simplest way play a movie clip backwards from the push of a button. getting to play is simple, but in reverse? not so simple i'm finding. i'll check the tutorial links as well.

Reverse Action?
I have this code which makes 2 objects slide across the page from right to left (PAGE, SUB). I need them to then go back to their position when another button is clicked. Is there a way of just saying 'reverse function' or do I have to reverse the code?



I'm trying to write the code to accomodate the changes but can't quite get it right!!





this.onEnterFrame = function()



{_root.btns._alpha = 0}

{if (_root.container1.SUB._x>440) {

_root.container1.SUB._x += -30;

} else if (_root.container1.SUB._x>-30) {

_root.container1.PAGE._x += (-40-_root.container1.PAGE._x)/8;

_root.container1.SUB._x += (0-_root.container1.SUB._x) /2;}

else {delete this.onEnterFrame;

}}}

Reverse GotoPlay Action
Hey, there. I want this Action to play my movie in reverse:


on (rollOver) {
tellTarget ("tween") {
gotoAndPlay(2);
}
}

Thanks for your help…

Reverse Action On A Button
Hi I am trying to make it so that when the "print button" is clicked a line comes down and displays a sub menu with more options on. I have done this by masking out the sub menu and tweening the mask out as the line comes down... easy...but...

I want the action to reverse when another (or the same) button is clicked so the line goes back up and hides that menu and then opens the new menu (of the corresponding button

My site is here so you can see what i have done - (click the button that says print)

http://vectorsesh.com/vectorsesh_2/v_3.html

please help me

Button Reverse Action?
I am trying to make a MC button with the

on (press){ gotoAndPlay(2); }

but i need it to on press again, do something else...basically gotoAndPlay(8) which in essence reverses the action that the previous press command initiated, but i can't figure it out...

Please help a noob out!

thanks for any help you guys might can lend!

Reverse Last Action With Button?
Is it possible? Say I click a button that plays a section of a movieclip. Is it possible to reverse that action, or undo it somehow when another button (any other button) is clicked?

Button With Reverse Action
I would like to make a button that when you roll over it, there is like a darkening of the background of the button, then when you roll off of the button, the background of the button returns to its original color , but not instantaneously...

www.2advanced.net   the navigation buttons at the top right ... something like that.  The background in the button deepens in color then returns just as quickly when you roll off.  How do you do that?



Reverse Button Action?
Is there a simple way to reverse the action shown when a button is rolled over, after it has been rolled off. In otherwords, I have something for instance come out of the button when it is rolled over that shows what the link is to. When it is rolled off of I want that to retract as opposed to just disappearing. I have figured out a couple ways of doing it that seem very inefficient, so any help is certainly appreciated! Thanks!

Reverse Frames Action Script
Does anyone know how to make a movie clip play in reverse by action script?
I want to use onLoad and tellTarget because it is what I am familiar with. Mucho abliged to the Falshelper

Action Script? For Reverse Transition
here's my latest build....once you get to the main menu, only the white button is active...when you click it it'll bring you the the section where you can d/l my resume....now the transition from "menu" to "resume" section, i need for that to play in reverse to get back to the menu....do i HAVE to make another labeld frame called "resumebackwards" and "tween" all my shapes in reverse? or is there an easier way.

http://www.motiv8gaming.org/peejah/alpher.html

there's my latest build.

(the code in lamens terms would imply "play labeled frame 'resume' backwards, then play frame label 'menu'") "menu" is my static main menu, the initial animation that brings you to my main menu is labeled "intro"

thanx,
pj

Help Argent Reverse Action Script
I have created a turning book in flash that is navigated by 2 arrow buttons that guides you forward and back through the book. I cant find a simple action script that will enable the viewer to click on one of the arrows buttons and make the frames play in reverse. So the previous pages they have viewed can be viewed again. Please help.

HELP TIMELINE EVENTS + REVERSE ACTION
I am not sure if i am going at this the right way but here goes...i have a set of 5 images and im doing a simple tween animation where they scroll to the right and loop seamlessly. now i want the animation to go in reverse (left) if i mouse over a button. the animation and code work perfect but once it reaches the end of the timeline (in reverse) it stops and if i put a gotoAndPlay on that frame, flash freaks out and crashes. here is my code for the reverse button:

MC

onClipEvent (enterFrame) {
if (gostraight) {
nextFrame ();
} else {
prevFrame ();
}
}

BUTTON INSIDE MC

on (rollOver) {
gostraight=true;
}
on (rollOut) {
gostraight=false;
}

now keep in mind the above code works fine i just want the animation to loop seamlessly in reverse like it does going forward. any help please, RIPPIN!!!

oh i also want the the animation to start when the swf loads, right now it just seems to stay still up until i roll over the button. THANKS!

Reverse Actionscript Code (On Rollover Action)
Hi There,

I'm about to start a freelance project and can't seem to find code online for what is a necessary part of the project.

It's basically this: I'll have a main timeline with 5 different buttons (with rollover actions) , which will move the playhead from left to right or vice versa to five different frame labels. The approach is similiar to the following site: http://www.28degrees-boston.com/flash.html

Has anyone ever worked with Flash in this capacity before? I'm under the assumption that I should look for a reverse actionscript?

How Do You Reverse Your Animation Or Do A Reverse Wipe...
...when loading a new movie or going to a new scene? In other words, when a new movie is fading in and then stoping to reveal buttons or navigation, how do you tell your movie to reverse your frames or reverse the intro animation, then go to and play a new movie? I apoligize it's hard to explain. Here is an example...

http://www.djstevelawler.com/
1)enter the site
2)skip the intro
3)you will then see the turntable and all of the animation fade in along with a drumset that if clicked reveals your navigation.
4)click on "chart" for example
5)the entire animation reverses itself or fades out the way it first came in, this is the effect that I'm after.
6)the chart page fades in along with the navigation
7)clicking the back button and the chart page fades out again just as it faded in and load the portal page.

Please help me out with this. Even if you can point me toward a tutorial I would be extremely grateful.

Thanks!

Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Question: Where Is The OnRelease Action In The Action Folders
Action Script Question: where is the OnRelease action in the action folders

I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Replaycer, Action Script Viewer V.3,08 And URL Action Editor V.3
My friends! I urgently need the programs: Action script replaycer and URL action editor v.3 (or upgrade v.2 up to v.3).
In an exchange I can give you the programs: Action script viewer v.3,08, URL action editor v.2, SWF decompiler MX, SWF scanner v.2,63, SWF extractor, Action script obfuscator , Fla****! (deprotector), Vid2flash7t ( converter to format SWF), Fireworks (MX), Dreamweaver (MX), FreeHand (MX), Director (MX).
I shall be glad to send you any (or several) program in exchange for one or both programs which I need. And if you don't need its, send me please simply so.

My E-Mail: Flash_567@mail.ru
Flash_567@mail.ru

Image Keep Flying By The Site In Circular Action In Action Script
hi
all right are goes to try to talk in ingles:
how to do to create an effect in which for image keep flying by the site in circular action in action script
would you know the step-by-step?

Jeov@n

Frame Action To Call Tell Target (rather Than Button Action)?
I really need a frame to Tell Target a movie clip. For some reason, I can't get a Frame Action to work with Tell Target.

I have no problem applying the same Tell Target to a button, however. Am I missing something? Is Tell Target not meant for Frame Actions?

On(rollOver)action + On(release)action + Photo Transition
Okay, I'll try to describe what I want to do and probably just need help putting it together.

I have :

5 black & white photos -- all converted to MC's (bwimage1, bwimage2 etc)
5 color photos (same as b&w) -- all converted to MC's (image1,image2 etc)
5 buttons -- all converted to symbol-buttons (image1_btn, image2_btn etc)

I have the 5 buttons lined up vertically on the left side of the page. I have a spot on the right side of the page where I want the picture to be visible, the black&white version on (rollOver) and the color version on(release).

I know how to make just one of the photos appear on rollover or on release but I don't know how to change the photos from B&W to Color on the actions. I would like a transition between the photos from rollover to release (b&w to color) like a fade.

Any help is appreciated.

Assign Cursor Action To MovieClip Using OnRollOver Action?
Hi all

I have a cool component from FlashLoaded which lets me create brilliant 3d layouts with out much hassle. The componet uses the cursors to zoom in zoom out and pan left and right.

I dont want to have to put an explanation on the site, I would like to put some invisible mc's or buttons on the stage that when the user rolls over them with the mouse it triggers that action.

Is there a simple piece of code i can place on the buttons to make this happen?

Many thanks in advance

Greg

On(rollOver)action + On(release)action + Photo Transition
Okay, I'll try to describe what I want to do and probably just need help putting it together.

I have :

5 black & white photos -- all converted to MC's (bwimage1, bwimage2 etc)
5 color photos (same as b&w) -- all converted to MC's (image1,image2 etc)
5 buttons -- all converted to symbol-buttons (image1_btn, image2_btn etc)

I have the 5 buttons lined up vertically on the left side of the page. I have a spot on the right side of the page where I want the picture to be visible, the black&white version on (rollOver) and the color version on(release).

I know how to make just one of the photos appear on rollover or on release but I don't know how to change the photos from B&W to Color on the actions. I would like a transition between the photos from rollover to release (b&w to color) like a fade.

Any help is appreciated.

Adding Action To Button Stops Other Action.
Flash MX.....

I have two frames, there resides on the stage a button with the instance name "blabla".

First frame actionscript is.....

blabla._y = blabla._y + 1;

Second frame actionscript is........

gotoAndPlay(1);

The button slides down the screen when published, that is the desired effect.

Problem..... as soon as I add any actionscript to the button, even just two comment slashes "//", the movement stops.

I have a feeling that there is some really basic concept that is flying over my head at the moment.

Action Script Doubt For Changing The Action
i had used two this code to stop the movie and to play the movie


on (press) {
kk.onPress = function() {
this.count++;
if (this.count%2) {
stop();
} else {
play();
}
};
}


kk = button instance name.


it is working but the only thing is that on the very first click there is no action taking place
and on the next click onwards it is working properly

help me out to over come this.

from
aristotle

Button Triigers Action Only If Other Action Has Been Performed.
I need to make a button call an action only if another specific action has already been performed.

Here's the scenario:

I've got four MC's, each set up as a button, placed on my main stage and given an instance name.

Each MC has a stop action in the first frame. When the button is clicked the MC will begin to play simply by using this code:

on (release) {play();

Once it's off the screen (or no longer behind a mask I should say), the MC stops at a frame labeled "down" with a simple stop action. A few frames later, I have a frame labeled "up" that when triggered, will cause the mc to start again and the button/graphic that is off the screen will come back on the stage.

This works fine using the code below:

on (release) {play();
_root.associates.gotoAndPlay("up");
_root.services.gotoAndPlay("up");
_root.portfolio.gotoAndPlay("up");
}

However, I dont want the button to trigger any of the gotoAndPlay actions UNLESS the specific button has already been clicked and is off the stage.

I guess the code I am looking for would be something like this:

if_root.associates =("down") then _root.associates.gotoAndPlay("up");

any ideas?

Thanks

Reverse An MC
yes my flash bible would answer this question quickly but I dont have it!! please help

what is the action to reverse movie please?

How To Reverse
How do you make a movieclip reverse ?
i mean make them go back after a certain time (for instance at then end of the movieclip)
Thx guys

Reverse MC?
Is there any way of getting a movie clip to play in reverse

Ive asigned a button to play a movie clip but I want the movie clip to play in reverse is this possible

Reverse The MC
What could be added to this code to keep the MC playing in reverse instead of moving back just one frame while the mouse is over the button?

on (rollOver) {
if (_currentframe>1) {
prevFrame();
}
}
on (rollOut) {
stop();
}


Thank you,
JF

XML In Reverse
i had this problem like a year ago, but i forgot what it was
i have an xml document like:

[ things ]
___[ a / ]
___[ b / ]
___[ c / ]
[ / things ]

i load the xml, put these into an array and get them out using a for..in loop

so i tested this before i hit the submit button

when i use the for..in, it goes backwards
if i get the maxLen of the array and use a for loop, it works fine

funny huh?

Reverse
Can someone tell me why this would not work for me as a Button action..

on (press) {
while (this.textMc._currentframe>1) {
// keep playing the previous frame...
this.textMc.prevFrame();
}
}
// if the mouse is NOT over the clip
on (release) {
this.textMc.stop();
}


OR EVEN THIS....


on (press) {
if(this.textMc._currentframe>1) {
// keep playing the previous frame...
this.textMc.prevFrame();
}else{
stop();
}
}
// if button is released
on (release) {
this.textMc.stop();
}

I wanted the simplest possible way of making a movie play backward,,,

Many thanks

Getting A Gif To Reverse?
Hi i hope this doesnt post twice i already did it once and it never posted sorry if it does. I have a gif that i want to reverse. I have my image going one way now i want it to go another way. Any ideas on how to do this? Thanks

Reverse?
hi,

workin with a menu which tells a certain swf. to load. i want to know if there's a way to have
1. the button which tells to unload a movie
AND
2. tell the same movie to play reverse. something with tellTarget maybe?

i have this action on the button:

on (press) {
unloadMovie("bio.swf");

thanks in advance,
noodle

How To Reverse An MC
Hello,

I have an MC that contains a video that's 175 frames long. I'd like it to play forward and backward endlessly but I can't figure out how to reverse it so that I can paste the reverse onto the end of the forward clip or how to script it so that when it reaches the end of the clip it plays itself backwards. Seems so simple, yet I can't get it.

Much appreciated,
Llyfre

Reverse
Ok,
Here is what i am trying to do. I am trying to make a slide show. And it intels pictures. Well anyway, I want this slidshow to have a certain feature when a user press on a pic the lets say he or she press on the 9th pic and the slides will scroll to that pic. well here is the tricky part. If he or she press on the third pic, then the slides will scroll back to the third pic. How can I do this? what source will I need to look up? Thanks All.

Reverse
Ok,
Here is what i am trying to do. I am trying to make a slide show. And it intels pictures. Well anyway, I want this slidshow to have a certain feature when a user press on a pic the lets say he or she press on the 9th pic and the slides will scroll to that pic. well here is the tricky part. If he or she press on the third pic, then the slides will scroll back to the third pic. How can I do this? what source will I need to look up? Thanks All.

Reverse
I'm using the follwing AS to f & R the MC.

onClipEvent (load) {
centerPoint = 390;
}
onClipEvent (enterFrame) {
_x += (centerPoint-_root._xmouse)/10;
}

My stumbling block and question is this, can the MC be stopped/paused, if so
what would be the AS if it is possible. I have 2 books in which none speak of the ability to stop or pause the clip.

Thanks,
FlashDummy
p.s. Great site

Reverse A M.c. In Mx To Pro 8
does anyone know if actionscript has changed in the flash pro 8 from flash mx. i have tried the same exact code to play and reverse a m.c. on mouse rollOver and rollOut. and the same code doesn't work in pro 8 as it does in flash mx. does anyone have any ideas. i am desperate.
thanks,

jeff

How To Reverse An M
Hello,

I have an MC that contains a video that's 175 frames long. I'd like it to play forward and backward endlessly but I can't figure out how to reverse it so that I can paste the reverse onto the end of the forward clip or how to script it so that when it reaches the end of the clip it plays itself backwards. Seems so simple, yet I can't get it.

Much appreciated,
Llyfre

Reverse
Hi Me Again

I had a question ---- Is it possible to play a timeline in reverse order? ---- by that I mean ---- Imagine a ball animated to move from left to right --- is there any way by which the play head can be made to move in reverse order---- that is without animating the motion back---- i.e. form right to left....

Reverse AS?
Alright I have a pretty big animation with alot of letters in it where they change from one color to white now I don't want to spend alot of time doing it so that it would fade back to blue in the same order it did the first time so is there some type of actionscript where It would play it but backwards and then start the animation again?

Like gotoAndPlay(80) = reverse; or something?

EDIT/ and I know that my title is Reverse AC it should be AS lol.

Reverse MC
Able to get the swap function to work but seem can't get the reverse function to work (prefFrame):


Code:
var swaps:Array = [one, two, three, four, five];
var highest:Number = _root.getNextHighestDepth();
var current:Number;
for (i=0; i<swaps.length; i++) {
swaps[i].onRollOver = function() {
current = this.getDepth();
this.swapDepths(highest);
this.gotoAndPlay(2);
};
swaps[i].onRollOut = function() {
this.swapDepths(current);
this.onEnterFrame = function(){
prevFrame();
}
};
}
The functions I'm attempting to simulate is similar to this concept: http://www.templatemonster.com/flash...ates/8785.html

Any suggestion or better functions than above?

Thanks,

Friggin' Mick

Reverse The MC
OK - I'm been searching the forum, and found some useful information, but I still can't get it to work the way I would like it to.
Here the thing, I've made a simple animation and ONE button. When you RollOver the button the animation STARTS to play, and when RollOut the animation plays backward (prevFrame)..

I'm kinda stuck here, found alot of useful code in here, but I can't figure out how to put it together so it will work my way!

So ANY help would be NICE!

Oh, and BTW the animation needs to be stoped at the last frame!

Reverse
I wouold like to make an interactive button be able to reverse action in a scene. Any ideas?


In Reverse
hey,
Well, i got flash 8 about 2 days ago and have been teaching myself without tutorials, anyways im having a problem... say i press the left arrow key to make the box for instance move left then when i press cntrl+enter the animation is in reverse :S please help us.

Alex

How To Reverse Movement
Hi, I'm a newbie in scripting. Anyways, here's the scenario:
I have a bouncing ball (using regular tweens). It then moves from left to right using:

this._x = this._x + six;

Then, as soon as it hits a certain point, say, 500 pixels, I'd like to reverse it. Si I added an <if> condition, that says this: (I'll just add the whole script!)

onClipEvent (enterFrame) {
six = 10;
end = 400;
if (this._x >=end) {
this._x = this._x - six;
} else {
this._x = this._x + six;
}
}

So as soon as it hits the "wall", it should reverse, and it does for one step, but then it goes back again, and is stuck in an oscillating movement. Perhaps someone could help explain how to keep the ball moving backwards???

thanx

Reverse Movie
can I use action script to reverse a movie.
I'm working on a rotating UI and want to use buttons to control the direction of the rotation. Any suggestion on how to achieve this would be very welcome. I can send a file with the movies in it.

I've seen action scripts that make things rotate in place. But I need icons to rotate around a center and stay still (not around around their own center as well)
[Edited by sandbender on 07-11-2001 at 06:25 PM]

Copyright © 2005-08 www.BigResource.com, All rights reserved