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




Reversing Scroll Direction



I have a website I am working on which requires two objects scrolling across the screen. I have done this fine. But I recently learned they need to be scrolling in different directions. How do I do this?

Code:
onClipEvent (load)
{
xcenter=150;
speed=1/10;
}
onClipEvent (enterFrame)
{
_x-=(7);
if (_x > 0) _x=-792;
if (_x < -792) _x=0;
}



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 07-01-2005, 02:13 PM


View Complete Forum Thread with Replies

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

Reversing Scroll Direction In Thumbnail Gallery?
example:

http://www.epic-pc.com/SRD/collection.swf

I am working on this gallery and right now when you move the mouse up over the thumbnails, the images go up and when moving the mouse down, the images go down making it hard for the user to find the thumb they are looking for.

All I need to do is switch it so that moving the mouse down makes the images scroll upward and moving the mouse up makes the images go downward. Any Suggestions? Here is the as:


Code:
spacing = 10;
containerMC._alpha = 0;
pArray = new Array();
pictArray = new Array();
captiont=new Array();
MovieClip.prototype.loadPic = function(pic) {
this._alpha = 0;
this.loadMovie(pArray[pic]);
caption_txt.text=captiont[pic];
this._parent.onEnterFrame = function() {
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
bar._visible = 1;
per = Math.round((l/t)*100);
if (t != 0 && Math.round(l/t) == 1 && containerMC._width != 0) {
var w = containerMC._width+spacing, h = containerMC._height+spacing;
border.resizeMe(w, h);
bar._visible = 0;
delete this.onEnterFrame;
} else {
bar._width = per;
}
};
};
MovieClip.prototype.resizeMe = function(w, h, pic) {
var speed = 3;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
this._width = w;
this._height = h;
containerMC._x = this._x-this._width/2+spacing/2;
containerMC._y = this._y-this._height/2+spacing/2;
containerMC._alpha = 100;
delete this.onEnterFrame;
}
};
};
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success) {
if (success) {
for (var i = 0; i<this.firstChild.childNodes.length; i++) {
pictArray.push(this.firstChild.childNodes[i].attributes.thumb);
pArray.push(this.firstChild.childNodes[i].attributes.image);
captiont.push(this.firstChild.childNodes[i].attributes.captiontx);
}
}
delay = setInterval(makeMenu, 100);
};
my_xml.load("newgallery.xml");
var menu = this.createEmptyMovieClip("menu_tot", 99);
menu.setMask(mask);
menu._x = mask._x;
menu._y = mask._y;
var sub_menu = menu.createEmptyMovieClip("menu", 100);
var p = 0;
var q = 0;
var loadper = 0;
function makeMenu() {
clearInterval(delay);
var item = sub_menu.createEmptyMovieClip("pic"+q, q);
item.loadMovie(pictArray[p]);
var temp = _parent.createEmptyMovieClip("tmp", 9999+q);
temp.onEnterFrame = function() {
var tot = item.getBytesTotal();
var loa = item.getBytesLoaded();
var per = Math.round(((loa/tot)*100)/(pictArray.length*2));
loadBar._xscale = loadper+per;
if (tot == loa && tot>4) {
item.id = p;
loadper += per;
if (q>0) {
item._y = sub_menu["pic"+(q-1)]._y+sub_menu["pic"+(q-1)]._height+10;
} else {
item._y = 0;
}
item.onRelease = function() {
containerMC.loadPic(this.id);
};
nextItem();
delete this.onEnterFrame;
}
};
}
var amount = pictArray.length-1;
function nextItem() {
if (q<((pictArray.length*2)-1)) {
q++;
if (p<(pictArray.length-1)) {
p++;
makeMenu();
} else {
p = 0;
makeMenu();
}
} else {
activateMenu();
}
}
var center = mask._height/2;
var speed = .05;
function activateMenu() {
containerMC.loadPic(0);
var turnPoint = mask_mc._y;
loadBar._visible = 0;
menu.onEnterFrame = function() {
var distance = mask._ymouse-center;
if (mask.hitTest(_root._xmouse, _root._ymouse)) {
this._y += (distance*speed);
if (this._y<mask._y-sub_menu._height/2) {
this._y = mask._y;
}
if (this._y>mask._y) {
this._y = mask._y-sub_menu._height/2;
}
if (this._y<turnPoint-d) {
this._y += d;
}
if (this._y>turnPoint) {
this._y -= d;
}
} else {
//3 is the constant speed, change it to your needs
this._y += -1;
}

};
}
Thank you very much!

Help Reversing Direction Of Spinning Object...
Hi,
I am VERY limited to flash. I have been teaching myself by using templets and see how things work. So i purchased a small templete (i know i know a damn templete) and i cant get this certain movie to REVERSE its current rotation. I have tried everything that i can find but there must be an easier way! Movie
Flash snapshot

ANY help would be great....It just looks dumb on the site when the record is spinning the WRONG WAY to the needle...

Scroll In The Opposite Direction?
Im using the infinite menu, but instead of scrolling to the right when you mouseover the right and so forth, I want to scroll in the opposite direction. When I mouseover the right side I want the movie to scroll left. Any help is greatly appreciated..

Change Scroll Direction If Statement
I have a MC that has a really wide graphic in it that scrolls right to left with actionscript. The script also resets the graphic so it appears to loop forever. This graphic will also stop at certain spots when the user clicks buttons. I'm using the following script and it works:

// reset the variables
cityPos = whole_city._x;
cposRound = Math.round(cityPos);
// loop the city back to the begining if it has reached the end
if (cityPos<-645) {
whole_city._x = 1360;
}
// scroll city towards target position or stop
if (cposRound == _root.targetPos) {
whole_city._x = whole_city._x-0;
} else if (cposRound<_root.targetPos) {
whole_city._x = whole_city._x+10;
} else if (cposRound>_root.targetPos) {
whole_city._x = whole_city._x-10;
}

The PROBLEM is that when the user clicks enter the first time I don't want the scroll to switch directions, I want it to continue to scroll left (-10) until it stops. So I added these lines just before the third comment and really screwed something up:

// check to see if this is the first time user clicks enter and goto "about"
if (_root.enter == "in" && cposRound != _root.targetPos) {
whole_city._x = whole_city._x-10;
gotoAndPlay (2);
}

It works until the user clicks enter and that sets the variable enter to "in". It gives the error that an action script is causing flash to run slow and may crash if not aborted...

Is There An All Direction Movie Scroll Tutorial?
Hi, you may be able to help I'll let you know what I'm trying to do in Flash MX.


I've got a space that I need to put a map into. The map is far too big, so I've shrunk it down and when you hover your mouse over it I want it to zoom in on that part of the map. If you then move your mouse around the map, the map scrolls around under your mouse allowing you to move to any part of it. Then parts of that map will be clickable.

I have the map, and I guess I could make it into a button that gets bigger when you're over it, so it would give the impression of zooming in. Is this the right way to do it? I don't really know where to go next, in terms of scrolling around!


thanks
Pootle

ScrollPane - Knowing Direction Of Scroll
Heya,

Is there a way to know which direction (up or down) the scrollpane is scrolling?

There is a function that lets you know that you are infact scrolling. For instance, you can attach the code:

on (scroll){
// do stuff
}

..to the ScrollPane. But it doesnt discriminate between directions.

Isnt there something like:

on (scrollUp){
// do stuff
}

..etc.?

Thanks

Scroll Text On Mouse Direction
does anyone know of a tutorial that shows you how to do a continuous text scroll on mouse move .if mouse move Up then Scroll to up.and mouse move down then scroll to down.

Direction Of Scroll In Infinite Menu?
I'm hoping this will be a very quick AS question.

I've been following the Infinite Menu Tutorial (http://www.kirupa.com/developer/mx/infinite.htm) to create my navigation. I've gotten it to work just like in the tutorial, but that is the problem. When there is a button to the right and you move to click it, it scrolls off the screen. Is is possible to change the direction of the scroll? I've tried switching the number/signs around, but so far I haven't come up with anything.

onClipEvent (load)
{
xcenter=463.2;
speed=1/200;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-955.3;
if (_x < -955.3) _x=0;
}

ScrollPane - Knowing Direction Of Scroll
Heya,

Is there a way to know which direction (up or down) the scrollpane is scrolling?

There is a function that lets you know that you are infact scrolling. For instance, you can attach the code:

on (scroll){
// do stuff
}

..to the ScrollPane. But it doesnt discriminate between directions.

Isnt there something like:

on (scrollUp){
// do stuff
}

..etc.?

Thanks

Continuous Scroll With Direction Based On Mouse
Hello All-

I am frustrated to no end. I am attempting to make a movie with continuously scrolling images that react to the mouse. ie: if it is to the left of center it scrolls to the left and if it is to the right of center it scrolls to the right. In addition depending on how far to the left or right you are it should increase or decrease speed accordingly, where speed = 0 (not moving) is the center of the movie.

I have seen this effect many times but have been unable to replicate it sucessfully.

My latest attempt involves taking my movie clip, duplicating it twice with AS so I have one clip off the stage in each direction. I have been unable thus far to make the image sucessfully "wrap" around consistantly. I also seem to be having a wierd shaking occuring with the images when the speed is too slow. I think this can be solved by adjusting frame rate or setting a miniumum allowable speed.

Is there a tutorial out there for this? I can post the fla or clarify if needed.
I am exporting to Flash 7 and using AS2 and MX 2004

Changing Direction Of Vertical Scroll Menu
Plase if someone could help me,
I made a vertical flash menu and I would like to change a direction of its movement. When I drag my mouse down from the center, I would like links ( in my case photos to move upwards, not downwards). You can see what am I talking about at
alarmi 555. You can download one of the menus to check out the code if you need HERE.

The code that is causing scrolling you can find below.
Thank you all, and wish you HAPPY NEW YEAR.







Attach Code

onClipEvent (load) {
ycenter = 120;
speed = 1/20;
}
onClipEvent (enterFrame) {
var distance = _parent.mask_mc._ymouse-ycenter;
if(_parent.mask_mc.hitTest(_root._xmouse, _root._ymouse, false)){
_y += (distance*speed);
}
if (_y>0) {
_y = -2293;
}
if (_y<-2293) {
_y = 0;
}
}

Variable Speed And Direction (L+R) Image Scroll
Hello,
I am an absolute newbie at Flash. I've been going over all the training I can for DreamWeaver HTML, CSS and Flash at Lynda.com
Whilst I can make sense of HTML and CSS, I am having a hard time grasping Action Script.
What I'd like to do for some might be easy to do. Your advice would help me decide if a newb can do this or if it is over my head.
I'd like to make a scrolling stage of images about 300x400 pixels say 20 images max where the mouse moved to the left or right from center controls the speed and direction of the scroll. Nothing needed in the way of zooms, enlarge, or swap image, nor clickable links.
I made a 3 part frame-set in Dreamweaver with the center frame being built with a table 20 columns wide which works, but frame-sets are not the desired way to go for a photographer's website.
What is involved, where should I look, and is there somewhere to buy the code already done to do make this easier if at all possible?
Thanks.

Image That Follows And Moves Into The Direction To The Direction The Mouse Is Moved.
Hello

I'm having problems trying to figure out how to come up with a solution to this dilemma so any help would be more than greatful!

IN A NUT SHELL

I want to make an image (one that is larger than the actual stage itself) to follow and move into the direction to the direction that the mouse is moved to. So when the mouse is moved 65 degrees, the image should move 65 degrees etc etc.


PLEASE HELP! PRETTY PLEASE!

Thanking you in advance, cheers, lovely thanks!

How To Detect Direction Of Movieclip And Rotate To Face Direction
Hi!

I have searched this forum, but Im not really sure what to search for, so I havent found anything similar to this. If anyone know, then please post the link to that thread.

I am trying to do some sort of aquarium with random moving amoebas.

But I want the amoebas (movieclips) to detect in what direction (angle) they are moving and rotate so that they "face" the direction they are going in.

I also post the fla file here so anyone can download it to see what I mean.

Thanks in advance

Detect Direction Of Movieclip And Rotate To Face Direction?
Morning all!

Little thing bugging me here.....

I have a movie clip which moves around the stage randomly, but I want it to face the direction it randomly changes to. Can you help or shed some light for me?

Here is my code:


PHP Code:



onClipEvent (load) {
    width = 600;
    height = 450;
    speed = Math.round(Math.random()*2)+1;
    x = Math.random()*width;
    y = Math.random()*height;
    this._x = x;
    this._y = y;
    x_new = Math.random()*width;
    y_new = Math.random()*height;
}
onClipEvent (enterFrame) {
    if (x_new>this._x) {
        sign_x = 1;
    } else {
        sign_x = -1;
    }
    dx = Math.abs(x_new-this._x);
    if ((dx>speed) || (dx<-speed)) {
        this._x += sign_x*speed;
    } else {
        x_new = Math.random()*width;
    }
    if (y_new>this._y) {
        sign_y = 1;
    } else {
        sign_y = -1;
    }
    dy = Math.abs(y_new-this._y);
    if ((dy>speed) || (dy<-speed)) {
        this._y += sign_y*speed;
    } else {
        y_new = Math.random()*height;
    }
}





I have experimented with:

_rotation = (Math.round(180 / Math.PI * Math.atan2(diffy, diffx)) + 360)
and also this._rotation += 1; but not having much luck. Thanks for looking and helping if you can

Mouse Direction Scroll With Mouse Over Image Enlargement...
Hi all..

Haven't had much luck finding a tutorial to help me do this one so any help locating it would be good.. I'm trying to design an image gallery where the images scroll left to right depending on mouse movement. Once a mouse is over an image it enlarges then returns to normal shape with mouse off.

any help appreciated..

cheers!

Movie Direction Based On Mouse Direction
I have a MC with two movies init one going left one going right.

I want to have the clip direction change based on the direction the mouse is going.

One:
I need to know how to tell wich direction the mouse in going

Two: I need to know how to switch the clips inthemovie based on the direction.

I'm fairly new the indepth scripting.

Thanks for any help.

Roger

Reversing Only If...
Hi All,
Ive been messin with this for quite sometime and i just cant quite get it. On a menu I have a list of buttons and when you click one a movie clip shows up, but when you go to click another button from clicking the previous one i want the prevous movie click to reverse...
i have this code on the menu button.





on (press) {
root_.pictureMC.onEnterFrame = function() {
// root_.pictureMC. being the mc that i want to reverse.
if (root_.pictureMC._currentframe>1) {
root_.pictureMC.prevFrame();
} else {
delete root_.pictureMC.onEnterFrame;
}
};
}

Thanks in advance

Please Help Reversing This AS.
Hello all!


What I need help with is to create a prev button for this slideshow. I have copied the below AS from the nextImage button, and changed all the things I can think of, but it always does something wrong… like the “pos_txt” will go backwards, but the image and description go forward on first prev click, then start going backwards… and other weird things like that.

So below is the "nextImage" code and below that is what I changed for the "prevImage" button.

code:
function nextImage() {
pos_txt.text = a+1+" / "+total;
for (var obj in movies) {
if (movies[obj].p != a ) {
if (movies[obj]._alpha>0) {
movies[obj].onEnterFrame = fadeout;
}
} else {
movies[obj]._alpha =0
movies[obj]._x = 10
movies[obj]._y =10
movies[obj].onEnterFrame = fadein;
}
}
desc_txt.text = description[a];
a++;
a %= image.length;
}


So the code below is the closest I could get the prev button to work. What it does is reverse the counter(pos_txt) right, but makes (description) and the images go up one, then reverse... wierd, wierd.

Also, in the code is "a %= image.length;" which makes it cycle from the last image to the first image once you get to the end, but when using the "prevImage" button with the code below it goes to 1 then -1, -2, -3, -4 and so on, instead of cycling to the last image.


code:
function prevImage() {
pos_txt.text = a-1+" / "+total;
for (var obj in movies) {
if (movies[obj].p != a ) {
if (movies[obj]._alpha>0) {
movies[obj].onEnterFrame = fadeout;
}
} else {
movies[obj]._alpha =0
movies[obj]._x = 10
movies[obj]._y =10
movies[obj].onEnterFrame = fadein;
}
}
desc_txt.text = description[a];
a--;
a %= image.length;
}


Thanks,


Dale!

[F8] Reversing X Or Something
Hi all,

I've been wondering about a little piece of code:


PHP Code:




var stars = 40;
var maxSpeed = 16;
var minSpeed = 2;

for (var i = 0; i<stars; i++) {
    var mc = this.attachMovie("star", "star"+i, i);
    mc._x = random(Stage.width);
    mc._y = random(Stage.height);
    mc.speed = random(maxSpeed-minSpeed)+minSpeed;
    var size = random(2)+0.6*(random(4));
    mc._width = size;
    mc._height = size;
}


function moveStars() {
    for (var j = 0; j<stars; j++) {
        var mc = this["star"+j];
        if (mc._x
            <Stage.width) {
            mc._x += mc.speed;
        } else {
            mc._x = 1
            mc.speed = random(maxSpeed-minSpeed)+minSpeed;
            mc._x = random(Stage.width);
        }
    }
}







At the moment, the stars (little movieclip with linkage) go across the screen from left to right.

I want them to go from right to left. I've tried editing the line:


PHP Code:




mc._x += mc.speed;







to:


PHP Code:




mc._x -= mc.speed;







It makes one "batch" of stars, and then just stops.

Does anyone have any ideas?

Reversing The Vx
I am trying to reverse this at a random vx when it reaches one side of the movie. Then when it reaches the other side it reverses the vx again at a random vx.

////////////////////////////////////////////////////////////

spdText.damp = .95;
centerx = 4.3;
leftside = -258;
spdText.vx = Math.random()*8+6;
spdText.onEnterFrame = TextMove;
function TextMove() {
this._x += this.vx;
if (this._x>318) {
this._x = 318;
this.vx -=Math.random()*8+6;
}
if (this._x<leftside) {
this._x = leftside;
this.vx +=Math.random()*8+6;
}
this.vx *= this.damp;
this.vy *= this.damp;
}

///////////////////////////////////////////////////////////////
right now it gets to the right side but it won't reverse the vx

Reversing An Mc
i've got a button that when you click on it the insides of the button jump/walks out and forms a square. I want to know how to, when clicking off the mc, make the mc step backwards to it's origional state. Is ther anyway you can do this with ActionScript?

Actionscript would be great for this if there's a way as if the box was coming out, you could make it go back in from it's current position/frame.

Thanks heaps for your help!

josh

Reversing SWF
:x
Hi
Please solve my small problem

1 have three btn. which will load external swfs onRelease. and i have also one mc on main timeline (10 frames animation)
what i want if user click any of these btns first mc play all its 10 frame and then load the external swf.
thanx

Reversing A Tween....
I have a tween which starts from frame 1 and ends at frame 25. How do I reverse it?

Thanks,
Flashkid

REVERSING KEYFRAMES
Hello,

My particular problem is how to reverse KEYFRAMES. So basically I can have a script that when the user preses something it reverses the action (I have a 3D sequence, and basically when the user gets out of that section, I would like the 3d to reverse).

I can do this without an actionscript, but hoping a script is available.

Thankyou.

Reversing A Boolean?
Hey there...
Is there an elegant way of reversing the value of the boolean?
m

Reversing Frames
I am extremely new to actionscript, so I am not really sure how to get started on what I want to do.

I have a page up at: http://www.iown.org/flash.htm

It is barebones at the moment but I thought I would put it up as it would be rather hard to describe what I want to do without it. I am looking to have it recognize that one button has been pressed and the page is being displayed if another button is pressed, so before the second buttons action occurs it reverses the frames from the first appearance so it "fades out" before the next one fades in.

Am not sure if there is an easy way to do this or not. Any help would be greatly appreciated.

Thanks.

Reversing The Tween? Pls Help
lo all. basically each page of my site tweens in and then out again before the next page is loaded. i have done the tweening in, but am now having to copy all my scenes again but in reverse so that it tweens back out again... any easier way this can be done???

thx
lev

Reversing Question
If you have an intermediate or above knowledge of actionscipt, I hope u can help me with this problem I've had for years.

The situation is that Im making a game in flash and say for instance I have a player, instance name 'player'.
Also say for instance I have a car, instance name 'car'.

The game is birds eye view.
The player moves forwards with the up key and backwards with down, the left and right keys rotate the player on the spot.

To do this the player has the code:

onClipEvent (enterFrame) {
_y += acelerar*Math.sin(_rotation/57.3);
_x += acelerar*Math.cos(_rotation/57.3);
acelerar *= 0.8;
}

And can be moved forwards by increasing the acelerar or backwards by reducing the acelerar. The problem is I want him to be prevented from walking through the car when either the car or the player is at any angle. I have tried making him bounce back off it by reducing the acelerar when the player hits it but obviously if he's walking backwards, he'll go through the car.

Anyone have a solution?

Reversing Timelines
*EDIT* It would help if I attached the FLA, hmmm...? OK FlashKit... after futile searching to *almost no avail... I needed to reverse playback of my MC. Came up with some code that did the trick. NOW, I need the same action that calls the reverse function originally, to call the same reverse function of another MC on that same timeline. Should be a simple rewrite somewhere Im sure... Id appreciate any help. Thanks. heres a little snippet:
(on first frame)

Code:
stop();
closedMC.onRollOver = function(){
gotoAndPlay(2);
}
function doReverse(){
_root.onEnterFrame = function(){
if(_currentframe > 1){
gotoAndStop(_currentframe - 1);
} else {
_root.onEnterFrame = null;
_root.play();
}
}
}

(on last frame)

Code:
stop();
openMC.onRollOut = function(){
doReverse();
}


I need the openMC function to call ringsMC timeline to reverse playback as well. Ive tried several different variations and just cant seem to hit the nail on the head...

Thanks again,
Geoff

Another Basic: Reversing
I am so far rather new to actionscripting. Unfortunately. Is there a script for reversing frames in movieclips and the Main Timeline?

regards
ikaros

Reversing Playhead In MC?
Hi,
I have an MC with four links revolving around a graphic. I used a button with an on rollover action to play and rollout to stop. Looks great. The problom is I would like to have another button reverse the links and have them revolve the opposite way. I've tried using prvouse fame but have had troube getting it to work on the root timeline. I'm usng MX. any help would be appreciated. Thanks

Reversing A Timeline
Hi there:

Is there anyway to reverse an animation. I have it playing at the beginning of the movie where it implodes a logo into different shapes. At the end of the intro I would like it to explode instead of implode which means I need to reverse it. The only way I can think of is by taking each individual frame cutting and pasting each one in a reverse order in a new movie symbol. Time consuming. Is there another way?

Thanks

Tab Reversing V. Forwarding
Tabbing in my application doesn't work, however if I "shift-tab" it tabs between the text fields and combo-boxes perfectly (only backwards).

Does anyone else have this problem? and if so, any work-arounds?

About Reversing The Timeline
Hi folks !

I want to know the method for animated timeline goes reversly. Please let me know the action script code for reversing the timeline. I hope a kind folk who has idea on it will definately mail me as soon as possible. Thank you...

Ishwor

Reversing A Movie
Hi

Hope someone can help.

I have a movie clip made from an image sequence. When it gets to the end of the sequence, it returns to the start and loops. I would like it to start playing in reverse A-B, B-A and so on!

I presume it's a simple script, but cant seem to find it anywhere.

Thanks very much

Reversing Movies
i read a while ago on some post that theres some code to reverse the movie so it plays backwards
i acnt find the post anymore so could someone tell me how you do this without copying each frame one by one?

Reversing Animation
This must be easy...

I have an animated movie with graphics and buttons coming out towards the screen from out of the centre of the screen and disappearing off screen. There are around 50 images, so as one fades off screen another will fade in at the back of sequence etc.

The user activates the animation by rollover button and can stop the animation by rollout as some of the images in the animation are animated buttons.

But how do I reverse the sequence ie if I include a "back" button as well as "forward" button, so that the user can reverse the animation and see images that have already passed them and disappeared off the screen.

I want the reverse sequence to take place from the frame that it is currently at rather than starting the reverse at the beginning.

I know that in Director you can reverse the sequence but have no idea how to do this. Got the idea from www.hypegallery.com.

Any help much appreciated as part of my final year project due in 4 weeks!

Aly

Reversing .mov File
Can anyone help me -- i would like to know if i can reverse a .mov
i cant seem to do this nor am i sure its even possible to do...if you know how, can you please tell me. fireelement@hotmail.com
thanks

Reversing An Animation
How can i make to run a scene in reverse? I've done the "normal" animation but now i need to run it backwards. Thanks

Reversing Frames....
hi,
i was wondering how can i reverse the frames...
what i mean is if for example u have a motion tween of a circle sliding to the right..
what should i write in the last frame of the motion tween so the circle will go back...
_current frame--?!
or what..
if it's possible...
thanks ahead...

Reversing Frames?
well i've seen it in couple of websites but i'm not sure if its possible at all, lets suppose you have a button and when its press it makes a movie_mc play and it goes from frame 1, 25. but then the movie_mc, would have a close button in it so when i press it, it would play the movie_mc backwards so for example if the movie_mc is a circle that goes from left to right at the beggining when you close it it should go from right to left and then it should unload the movie_mc...

Reversing The Sequence Of A Mc
Hello all.

I would like to try to reverse the play of a movie clip (ie, instead of playing from frame 1 to 50, is there a code to play the same movie clip from 50 to 1???). I realize I can just add another mc with the frames in a reverse order, however, can this be done??

Thanks in advance!

Reversing Frames
hi,
i have created an "explode" effect - but what i want to do is reverse this effetc (so instead of going from a still letter and exploding everywhere, i want it to go from an exploded letter back into a formed one. but when i click on it the option of "reversing frames" is not highlighted... any ideas?

Reversing Timeline?
Alright . . . I can't seem to figure this one out, help please?!?

I am building a design portfolio site (my first web page ever) completely in flash. In my "Portfolio" page, there is a bar across the bottom that contains thumbnails of six of my pieces. This whole navigation is a movie clip. To the left and right of that, there are up and down buttons. When you hit the down button, six new images slide in from the top and the old images slide down (like a slot machine). There are four tiers of thumbnails (24 pieces total) I have gotten the down button to work somehow. This is the Action Script that I used.

on (release) {
gotoAndPlay(2);
}


Now I do not know how to make the up button work and essentially make the timeline work in reverse.

If I have not provided enough information for you to answer, please let me know and I will fill in the blanks.

Many thanks in advance!

Reversing A Timer :)
Hey everyone, one quick question for you.

I like how this timer is setup here. But instead of it counting up forever, I need it to count down from a minute and then stop on 0 of course.

How would I go about editing the actionscript in this tutorial?

http://www.spoono.com/flash/tutorial...rial.php?id=22

Thanks everyone!

Reversing A For Loop?
Hey All,

I have this for loop set up to duplicate a movieclip based on a count of xml nodes. Thing is this whe the loop is done the order of the clips is highest to lowest and I would like to switch that so my first clip is zero and my last which ever.


for(a=0; a < photoThemes.length; a++){
totalPhotos = a;
IM1 = photoThemes[a].firstChild.attributes.pic;
_root.dupClipHolder.dupClip.duplicateMovieClip(a, a);
_root.dupClipHolder[a]._x = _root.dupClipHolder[a]._x + a*-14;

}

Where "a" is simply swapped in as the clips instance name. The clips are duplicated left to right and the instance name of the clip at 0.0x and 0.0y is the total and I would like it reversed.

Any help would be sweet!
-jub-

[F8] Reversing A Movie
I'm trying to find the code a need to make a button play a movie backwards
i have one that plays forwards - nice and easy obviously, i would like the other button to work in exactly the same way but play backwards anyone able to help me with this ?

all the codes i have found so far play the movie backwards but you need to keep the mouse over the button to keep playing it as they only work one frame at a time

Reversing A For Loop
For some reason when I attempt reversing this for loop, to load to images from highest to lowest, it doesn't work.

stop();

var mcBack:MovieClip = this.mcBackground;
var lvImage:LoadVars = new LoadVars();
lvImage.onLoad = function(bSuccess:Boolean):Void{
if(bSuccess){
var num_images:Number = lvImage.numImages;
trace(num_images);
igniteImages(num_images);
setBack(num_images,mcBack);
}
}


function igniteImages(numImages):Void{
for (var i = 2; i<=numImages; i++) {
duplicateMovieClip(image1, "image"+i, i);
this["image"+i]._y = (this["image"+(i-1)]._y)+(this["image"+(i-1)]._height+20);
}
}
function setBack(numImages):Void{
mcBack._height = numImages*120;
_root.thumbs.onComplete();
}

lvImage.load("illustrations/imageInfo.txt?"+Math.random()*10000);



Changing the For Loop to:


for (var i = num_images; i<2; i--) {
duplicateMovieClip(image1, "image"+i, i);
this["image"+i]._y = (this["image"+(i)]._y)+(this["image"+(i)]._height+20);
}

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