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








[F8] AS2 (Almost) Infinite Scrolling Timeline With Easing?


Has anyone any idea how this was created?

http://www.bbc.co.uk/history/interac...sh/index.shtml

Click on the zoom-in button. My problem is, if it was *really* zooming
in on a swf that spanned the whole timeline, then the width of the
timeline swf would be enormous. Have they done some clever fudge to
make it look like the timeline is actually scrolling when it actually
isn't?

Yet, if you click on the colour key at the bottom of the screen, they
still manage to get an easing effect on the timeline that makes it look
like the timeline is genuinely as enormous as it seems and it scrolls
appropriately for this vast length.

Befuddled. Any ideas how they did this?
Tim




FlashKit > Flash Help > Flash ActionScript
Posted on: 05-13-2008, 09:42 AM


View Complete Forum Thread with Replies

Sponsored Links:

Infinite Scrolling MC With Easing
I'm having trouble with a scrolling portfolio type of movie that I've created. It contains a movieclip with thumbnails on it and a left and right button that scroll the thumbnails back and forth. It uses easing to move to each position. It also disables the buttons while the movieclip is scrolling to prevent throwing the movie off alignment. What I'm trying to accomplish is to give the scrolling feature endless scrollability. I have duplicated the slidebar to reposition whichever one necessary to be next in line as the user scrolls through. My code seems to be working but not very well. Sometimes I see one of the slidebars shoot accross the screen to it's correct position, sometimes you have to wait a couple seconds for it to move over. It's acting very quirky. I'll post the .FLA and if someone could take a look, I would greatly appreciate it. Thanks! BTW, it's an MX2004 file.

View Replies !    View Related
Infinite Scrolling MC With Easing
I'm having trouble with a scrolling portfolio type of movie that I've created. It contains a movieclip with thumbnails on it and a left and right button that scroll the thumbnails back and forth. It uses easing to move to each position. It also disables the buttons while the movieclip is scrolling to prevent throwing the movie off alignment. What I'm trying to accomplish is to give the scrolling feature endless scrollability. I have duplicated the slidebar to reposition whichever one necessary to be next in line as the user scrolls through. My code seems to be working but not very well. Sometimes I see one of the slidebars shoot accross the screen to it's correct position, sometimes you have to wait a couple seconds for it to move over. It's acting very quirky. I'll post the .FLA and if someone could take a look, I would greatly appreciate it. Thanks! BTW, it's an MX2004 file.

View Replies !    View Related
Infinite Scrolling
I'm trying to make a graphic that slides across the screen depending where the mouse is. I've been using the flash mx advanced book to do so. The only thing is is that I want to make it loop so that it would just go on and on and on....

This is the actionscript that I have already: (its in the first frame of the root timeline)

_root.onEnterFrame = function() {
HOMEbrail._x = HOMEbrail._x+(.5*Stage.width-_xmouse)/10;
};

"HOMEbrail" is the instance of a movieclip that extends well beyond the sides of the frame.

The book just says to read chapter 9. But then it uses completely different examples in that chapter. Which makes it all the more confusing...

So, to recap, I would just like it to loop the movie so it would be infinate instead of just scrolling off the screen.

Thanks,
Tim

View Replies !    View Related
Infinite Scrolling
Hi People,

I want scroll a seemless graphic symbol horizontally forever. I know abou the tutoral on kirupa.com but it includes code to resize the clip according to the mouse positon. i dont want this, I just want it to scroll on and on. Its a cartoon sea that looks like its waves are moving if scrolled. More size efficient then animating the wave by hand. How can I do this?

Thanks

View Replies !    View Related
Infinite Scrolling?
Hi--

I've got a column of thumbnails I'm scrolling, but I need them to scroll forever, so they have to repeat at some point. What's the best way to do this?

I'm loading 18 images dynamically, scaling them, and putting a 1px border on them before placing them in a container. I've got a timer set to perform the scrolling. Everything works great.

I realized I'll need to repeat some of the images to make this look right, but how? Can I add an image twice with addChild(loader)? Or is this a job for copyPixels?

Thanks!

:grimey

View Replies !    View Related
Infinite Scrolling HitTest ? Help
Hello. Im trying to set up an infinite image scroller that is based on the user's mouse movements. im building off of this tutorial on Kirupa's site.

http://www.kirupa.com/developer/mx/infinite.htm

I have the basics of the scroller working. Masks are used to limit what the user sees making the scroller seem larger. Now im trying to set up a hitTest to limit the scroller to only respond to the mouse when it is within the mask instead of the entire movie. if that wasnt enough, im also trying to set up a "Default speed" - normally the scroller inherits the most recent speed and continues until changed by the user. any help would be greatly apprecciated cuz my head is really starting to hurt.

Here is the Actionscripting that is in the main movie clip(the images scrolling)

onClipEvent (load)
{
ycenter=244.75;
speeda=1/10;
}
onClipEvent (enterFrame)
{
var distancea=_root._xmouse-ycenter;
_x+=(distancea*speeda)*-1;
if (_x > 0) _x=-489.5;
if (_x < -489.5) _x=0;
}



Also you may get the .fla file from this link.


www.technedesign.net/4flashkit.fla

View Replies !    View Related
Infinite Scrolling Graphic
i want to create a graphic that scrolls infinitely within a masked area at a constant speed, and is not interactive at all, just a simple animation. I want it to sort of be the be same idea as this example : http://www.kirupa.com/developer/mx/infinite.htm only without the mouse interaction. I just want to have something that loops and scrolls continuously. can anyone help? thanks

View Replies !    View Related
[MX] Help With Scrolling Infinite Loop Of MC's
Hello,
I need some help creating controls to scroll a MC of MC's that loop infinitely. This would be not unlike all of the side scrolling galleries that are controlled by mouse poition, left or right. But, I would like it to be controlled by buttons rather than mouse position, yet retain the smooth scrolling.

My version would also be vertical rather than horizontal.

I really appreciate any help/ example FLA's.

Thanks

View Replies !    View Related
Infinite Horizontal Scrolling
is it possible to achieve infinite horizontal scrolling with the enter frame event?

so far i have:

Code:
myMc.addEventListener(Event.ENTER_FRAME, handleEnterFrame);
function handleEnterFrame(evt:Event) {

myMc.x -= 20;

}
but it just goes off the stage. is there anything i can add to have it loop around and start again?

View Replies !    View Related
Infinite Scrolling Graphic
i want to create a graphic that scrolls infinitely within a masked area at a constant speed, and is not interactive at all, just a simple animation. I want it to sort of be the be same idea as this example : http://www.kirupa.com/developer/mx/infinite.htm only without the mouse interaction. I just want to have something that loops and scrolls continuously. can anyone help? thanks

View Replies !    View Related
Infinite Scrolling Text
In Flash MX, is there any way to make text scroll infinitely? I'm building a webpage and I'm trying to do this in order to make a news ticker, but I can't figure out how. Any help is appreciated

Leroy?

View Replies !    View Related
Infinite Scrolling Graphic
i want to create a graphic that scrolls infinitely within a masked area at a constant speed, and is not interactive at all, just a simple animation. I want it to sort of be the be same idea as this example : http://www.kirupa.com/developer/mx/infinite.htm only without the mouse interaction. I just want to have something that loops and scrolls continuously. can anyone help? thanks

View Replies !    View Related
Scrolling Infinite Amount Of Text
Hi!

I am trying to create a text crawler that will display very long texts. (>4000 chars). I have encountered some problems and I am not sure which way is the best to solve them.

Problem no 1: The TextField class seems to go insane when I feed an instance with more than 3244 characters.

Problem no2: For the text to run smoothly I need to bitmap cache it. And if I bitmap cache very long text fields it will eat memory and run slow because of that.

To solve these problems I figured that I somehow need to split the text into smaller chunks. The thing is that when i do that it will be a hell to keep track of them, how many characters should each chunk have (depending on font size), which one is displaying right now, which one to remove from the display list, which one to add and when (to overlap seamlessly with the previously).

So I was just wondering if I am missing some neat class that actually handles long scrolling texts or if anybody has developed something similar and might want to give some hints on how to solve this in a nice way.

Thank you!

View Replies !    View Related
Control Infinite Scrolling Of Movieclip
Hiya,

First of all: my AS knowledge is very basic, so please consider this in your replies.

I'm trying to set up an infinitely scrolling image gallery. So far I have set up a movieclip, doubled that, combined those into a new movieclip and added the following script:

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

This works like a charm, however, the gallery doesn't stop scrolling when I move the mouse outside the clip.

How can I modify/extend the script to constrain the scrolling of the clip so it only starts when I move over the clip area and stops when I roll out?

Thanks a bunch in advance for your replies.

View Replies !    View Related
Conditional Scrolling Of Infinite Menu
Can I make the scrolling of the infinite menu conditional on the y position of the mouse cursor?

I have fiddled with if functions to no avail, I only want the menu to move when the mouse is positioned within its borders: eg. not elsewhere on the page.

View Replies !    View Related
Infinite Vertical Scrolling Menu
Hi,
I am using POMs tutorial for making an infinite menu
This one is vertical instead of horizontal.
The MC is 1696 pixels in height. registration is top middle
i drag 2 of these MC's so one is below the other (total height 3392)
Here is my code


Code:


onClipEvent (load)
{
ycenter=848;
speed=1/10;
}
onClipEvent (enterFrame)
{

var distance=_root._ymouse-ycenter;
_y+=(distance*speed);

if (_y > 0) _y=-1696;
if (_y < -1696) _y=0;
}
The clip goes really fast and is making me foam at the mouth if i look at it for too long!
I tried changing ycenter to 300, and it is much smoother but it is very jumpy when moving back to the position determined by the code.
Any help is great

View Replies !    View Related
Infinite Menu Scrolling Issue
I'm new to actionscript

I have followed the Infinite Menu tutorial with success. However I want to have the scrolling action reverse directions. For example if I move my mouse to the left the scrolling goes to the right or vice versa. This is probably an easy fix however I'm not getting it to work. Here is the code

onClipEvent (load) {
xcenter = 444.8;
speed = .0030;
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distance*speed);
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distance*speed);
if (_x>0) {
_x = -889.5;
}
if (_x<-889.5) {
_x = 0;
}
}
Note clip with is 889.5 and mid is 444.8

If this has already been answered please send me a link

Thanks

View Replies !    View Related
Conditional Scrolling Of Infinite Menu
Can I make the scrolling of the infinite menu conditional on the y position of the mouse cursor?

I have fiddled with if functions to no avail, I only want the menu to move when the mouse is positioned within its borders: eg. not elsewhere on the page.

View Replies !    View Related
Infinite Vertical Scrolling Menu
Hi,
I am using POMs tutorial for making an infinite menu
This one is vertical instead of horizontal.
The MC is 1696 pixels in height. registration is top middle
i drag 2 of these MC's so one is below the other (total height 3392)
Here is my code


Code:


onClipEvent (load)
{
ycenter=848;
speed=1/10;
}
onClipEvent (enterFrame)
{

var distance=_root._ymouse-ycenter;
_y+=(distance*speed);

if (_y > 0) _y=-1696;
if (_y < -1696) _y=0;
}
The clip goes really fast and is making me foam at the mouth if i look at it for too long!
I tried changing ycenter to 300, and it is much smoother but it is very jumpy when moving back to the position determined by the code.
Any help is great

View Replies !    View Related
Infinite Menu Scrolling Issue
I'm new to actionscript

I have followed the Infinite Menu tutorial with success. However I want to have the scrolling action reverse directions. For example if I move my mouse to the left the scrolling goes to the right or vice versa. This is probably an easy fix however I'm not getting it to work. Here is the code

onClipEvent (load) {
xcenter = 444.8;
speed = .0030;
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distance*speed);
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distance*speed);
if (_x>0) {
_x = -889.5;
}
if (_x<-889.5) {
_x = 0;
}
}
Note clip with is 889.5 and mid is 444.8

If this has already been answered please send me a link

Thanks

View Replies !    View Related
Infinite Scrolling Menu Problem
i've got a menu i'm working on that needs some help. the menu is a vertical scrolling menu that needs to loop so it never ends. i can get the menu to scroll and react to the mouse, but i can't figure out the script to make it duplicate and keep on scrolling...infinently. need some help please.

i've checked out the "infinite scrolling menu" tute here, but it uses code that doesn't pass the syntax checker of mx2004 pro...not that it should matter. here is my fla file for reference...

http://www.idcreativegroup.com/data/


here's a preview of the swf file
http://www.idcreativegroup.com/data/infiniteMenu.swf



the file i'm working with is infiniteMenu.fla

got any ideas. thanks.

View Replies !    View Related
Infinite Horizontal Scrolling Images Using Actionscript
hello, this is my first post here.

Any and all advice is greatly appreciated, wtih luck I will be able to help others as well.

So here is my issue.

I have a very long image (w=13612.8, h=198) which has been made into a graphic and placed inside of a movie clip. It is a collection of 32 product shots.

I want the image to independantly scroll to the right and when it gets to a certain x possition, either go to frame 2 where the same set up will be, or reset the x possition back to its origional point thereby creating an infinite display.

I have the image set up so the items at the end match the ones at the begining.

I have succeded doing this using a tween tutorial I found but the motion was very jumpy.

What I do have is

onClipEvent (enterFrame) {
movespeed = 2;
}
onClipEvent (enterFrame) {
this._x += movespeed;
if (this._x<=-6018.6)
gotoAndStop (2)
}


Which kind of works, I got this help from a glorious person at actionscript.org.

I don't know why, it may be because of the size of the image, but the

if (this._x<=-6018.6)

makes no sense. The actual start position is -12832.8

I've been bang my head around this for the last 9 hours and can't seem to figure it out. I think I need to just back off for a few.

I can post the actual file tomorrow if anyone thinks that will help explain what I am experiencing.

Again, any advice is greatly appreciated.

View Replies !    View Related
Infinite Scrolling Images Problem (flickering)
Hello,

I am trying to make part of a banner for a travel agency website, and I want to make an automatically scrolling set of images in horizontal direction

it will scroll in the direction of your mouse and it will scroll faster depending on the distance your mouse is from the centre

so basically it will look like

**end of banner** image1 - image2 - image3 - image4 .... - imagex **end of banner**

and it will scroll infinitely

The main scene is a simple 520 * 80 background on which I put 2 movie files
movie1 is a movie file file which has on its first frame the actionscript
its instance name on the main scene is "heers"

PHP Code:



    //load the movies from my directory and space them 90 px from each other
    for(x=0;x<=5;x++){
        var ec = this.createEmptyMovieClip("externalClip" +x, x);
        var ic = ec.createEmptyMovieClip("innerClip" +x, x);
        ic.loadMovie("image" +x+ ".jpg");        
        ec["innerClip" +x]._x=x*90;
    } 




movie2 is an empty movie file, and on its instance on the mains scene I have the actionscript

PHP Code:



onClipEvent(load){        
//set the speed, movie width and speed
    moview = 520;
    h = _root.heers._width;
    speed=200;
}
onClipEvent (enterFrame) {    
//move the movie clip depending on mouse position    
    xpos = _root._xmouse;    
    xpos = xpos-(moview/2);    
    _root.heers._x = _root.heers._x-(xpos/speed);
    
    if (_root.heers._x<-_root.heers._width/2) {
        // trace("a");
        _root.heers._x = _root.heers._width/2;
    } else if (_root.heers._x>_root.heers._width/2) {
        _root.heers._x = -_root.heers._width/2;
    }    





the first frame on my mainscene has as actionscript

PHP Code:



fscommand('allowscale',false);

//duplicate the movie clip and put the duplicates on both sides of the the original    
m = 0;
tmi = 2;
while (m<(tmi*2)) {
    m++;
    dup = 'heers' add m;
    _root.heers.duplicateMovieClip(dup, m+2);
    _root.heers1._x = _root.heers._x+_root.heers._width;
    _root.heers2._x = _root.heers._x-_root.heers._width;
    } 




any help or a link to a tutorial dealing with this will be very much appreciated!

View Replies !    View Related
Limiting The Scrolling Of The Infinite Menu [renamed]
I'd like to limit the scrolling of the Infinite Menu to an area NEAR the menu and not when the cursor is anywhere on the stage.

See the original tutorial for the Infinite Menu:
http://www.kirupa.com/developer/mx/infinite.htm

I'm assuming that, to do this, I would need to use an if/else script with the condition being a rectangle of coordinates on the stage and a result of a scrolling menu when the cursor is within those coordinates.

I found this code on another thread for a similar menu idea but can't figure it out how to fit the Infinite Menu script into it (see http://www.kirupaforum.com/forums/sh...se+coordinates for entire thread):


Quote:




onClipEvent(load){
this._x=0; //set original x
this._y=0; //set original y
divider=5; //speed
numx=this._x; //numx is destination x
numy=this._y; //numy is destination y
}

onClipEvent(enterFrame){
if(_xmouse>300) {
numx=-1; //set destination x
}
else{
numx=9; //set destination x
}
x=numx-_x; //setup variable named x
this._x+=x/divider; //see the x transition
//y=numy-_y; //setup variable named y
//this._y+=y/divider; //see the y transition
}
onClipEvent (load) {
_y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endY = _root._ymouse;
_y += (endY-_y)/speed;
}




And here's the Infinite Menu code I'd like to use as the result of the coordinates coding:


Quote:




onClipEvent (load) {
ycenter = 375;
speed = 10/100;
}
onClipEvent (enterFrame) {
var distance = _root._ymouse-ycenter;
_y += -(distance*speed);
if (_y>0) {
_y = -596;
}
if (_y<-596) {
_y = 0;
}
}




Thanks for any help!!

View Replies !    View Related
Scrolling Movie Clip That Isnt Infinite
I've created a short list thats only partly seen under a mask. I want to make it like an infinite menu where it moves when the mouse goes over it, but i want it to stop at the start and end of the list. ive looked all over the net for tutorials but ive only found one that works on MX 2004. if someone could give me a link to a tutorial or help me out that would be good.

Brendan Smith

View Replies !    View Related
Infinite Scrolling For Kirupa Image Gallery
Hello guys,

I had fun following the "Adding thumbnails for the Photo Gallery using XML and Flash" http://www.kirupa.com/developer/mx2004/thumbnails.htm which works perfect, the only problem is I would like for the thumbnails to have the infinite scrolling effect menu style, where the thumbnails keep scrolling at a min speed and when it stop on mouse over and make the user able to click on the desired thumbnail image.

I tried looking at the code for the infinite menu and try to add it to the photo gallery but it doesn't seem to work.

Hope someone could help me out I been searching for answers in vain.
Thank you everyone.

View Replies !    View Related
Limiting The Scrolling Of The Infinite Menu [renamed]
I'd like to limit the scrolling of the Infinite Menu to an area NEAR the menu and not when the cursor is anywhere on the stage.

See the original tutorial for the Infinite Menu:
http://www.kirupa.com/developer/mx/infinite.htm

I'm assuming that, to do this, I would need to use an if/else script with the condition being a rectangle of coordinates on the stage and a result of a scrolling menu when the cursor is within those coordinates.

I found this code on another thread for a similar menu idea but can't figure it out how to fit the Infinite Menu script into it (see http://www.kirupaforum.com/forums/sh...se+coordinates for entire thread):


Quote:




onClipEvent(load){
this._x=0; //set original x
this._y=0; //set original y
divider=5; //speed
numx=this._x; //numx is destination x
numy=this._y; //numy is destination y
}

onClipEvent(enterFrame){
if(_xmouse>300) {
numx=-1; //set destination x
}
else{
numx=9; //set destination x
}
x=numx-_x; //setup variable named x
this._x+=x/divider; //see the x transition
//y=numy-_y; //setup variable named y
//this._y+=y/divider; //see the y transition
}
onClipEvent (load) {
_y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endY = _root._ymouse;
_y += (endY-_y)/speed;
}




And here's the Infinite Menu code I'd like to use as the result of the coordinates coding:


Quote:




onClipEvent (load) {
ycenter = 375;
speed = 10/100;
}
onClipEvent (enterFrame) {
var distance = _root._ymouse-ycenter;
_y += -(distance*speed);
if (_y>0) {
_y = -596;
}
if (_y<-596) {
_y = 0;
}
}




Thanks for any help!!

View Replies !    View Related
Scrolling Movie Clip That Isnt Infinite
I've created a short list thats only partly seen under a mask. I want to make it like an infinite menu where it moves when the mouse goes over it, but i want it to stop at the start and end of the list. ive looked all over the net for tutorials but ive only found one that works on MX 2004. if someone could give me a link to a tutorial or help me out that would be good.

Brendan Smith

View Replies !    View Related
Is This Possible? - Easing A Movieclip Timeline
Hi. I'm trying to create a smooth ObjectVR for a 360° product rotation in Flash.

Since the movieclip is made up of 36 sequential images (10° each), does that make it impossible to add easing to it? I'm trying to make the start and stop of the rotation (either as a draggable mouse over or just with simple timeline buttons) super smooth, instead of just starting and stopping on a dime.

Here is a .fla file of my movieclip, without any actionscript if somebody wants to play around with it.

http://homepage.mac.com/hallvalla/sa...uo_400.fla.zip

Also, I'd like to control the speed of the rotation somehow. Let me know what you guys think.

View Replies !    View Related
Help With Easing Equations For Timeline
So here's my situation. I have a mc that has several still images of a tool rotating 360 degrees in consecutive frames on the mc's timeline (frames 1-35). What I want to do is play through those images using Penner's easing equations, so that I get nice slow gradual deceleration from say the first frame to the last frame. Is this possible? I would post some code, but I honestly don't even know where to start. Thanks for the help!

View Replies !    View Related
Infinite Horizontal Scrolling Menu After Clicking Button
Hello,

I am looking for an infinite Horizontal Scrolling Menu that scrolls only when you click on a button.
The active button is always the button on the far left. The menu bar can only scroll left. The scroll menu will only scroll when you click a button, the menu will scroll till that button is on the far left, the buttons that scrolled out of frame to the left would show back up to the scroll bar from the right. there are only 4 buttons.
I have looked every where and have posted on several forums but no reply. So i hope someone here can help me with this.

Thanks,
Roy

View Replies !    View Related
Timeline Goes Forwards And Backwards But Easing Only On Previous Not On Next?
This file is driving me crazy...I got the timeline to go backwards and forwards with

function Movement() {
if (_root._currentframe > _root.mytarget){
prevFrame();
}else if (_root._currentframe < _root.mytarget){
nextFrame();
}else{
stop();
}
}
this.onEnterFrame= Movement;

and then on the MC at each stopping point

onClipEvent(enterFrame){
_x += (637.4 - _x)*0.06;
_y += (-252.1 - _y)*0.06;
}

It will ease on the 'previous' button but it skips the animation entirely on the 'next' button...just goes direct to the target...

Is there someone that could help me out??? I would really appreciate it!

View Replies !    View Related
Timeline Goes Forwards And Backwards But Easing Only On Previous Not On Next?
This file is driving me crazy...I got the timeline to go backwards and forwards with

function Movement() {
if (_root._currentframe > _root.mytarget){
prevFrame();
}else if (_root._currentframe < _root.mytarget){
nextFrame();
}else{
stop();
}
}
this.onEnterFrame= Movement;

and then on the MC at each stopping point

onClipEvent(enterFrame){
_x += (637.4 - _x)*0.06;
_y += (-252.1 - _y)*0.06;
}

It will ease on the 'previous' button but it skips the animation entirely on the 'next' button...just goes direct to the target...

Is there someone that could help me out??? I would really appreciate it!

View Replies !    View Related
Control Mc Timeline With Mouse X Position With Easing?
Hi, I'm trying to control a movieclip timeline with the x position of the mouse.
so when the mouse is on the left side of the a masked mc, the clip is at the beginning of the timeline and as it moves right, the timeline progresses and when the mouse reaches the right side of the mask, the timeline is at the end.

I'd also like it to ease out as the user stops the mouse movement or moves out of the masked area.

Here is an example that I found without the easing:

http://actionscript.org/forums/showt...ontrol+_xmouse

THANKS!

View Replies !    View Related
Scrolling And Easing
Hello all.

Can anyone point me in the direction of a tutorial where I can learn how to add easing to a scrollable MC or scrollable text.

This is what I'm talking about:

http://www.flashloaded.com/slidemenu.php

Thanks a lot

View Replies !    View Related
[F8] Scrolling With Easing In/out
Look at the actionscript in frame 2:

The code provides a nice way to scroll through the text with easing in and easing out.

Although i want the user NOT to scroll above or under the the text. One solution is to use an 'easing zone' at the top & bottom of the text (for example an easing zone of 50px).

The code placed on this page uses such an easing zone:
http://www.flashdevils.com/showthrea...hreadid=190697

I already tried that: the problem is that when the user starts scrolling when the container is already in the easing zone, it doesn't ease in correctly anymore.

Thanks in advance,

View Replies !    View Related
Easing And Scrolling
I'm trying to adapt the infinite menu found here

I am trying to adapt the menu so it works with a left and right scroll button rather than the mouse position. I have got this working the only problem is the scrolling movement does not have any easing or inertia. I need to incorporate this some how. I've been looking at combining Penner's equations which I have used in the past but I just can't suss this.

Any help much appreciated, I have attached my FLA in case anyone has time to have a look.

Many thanks

View Replies !    View Related
Help On Mc Scrolling With Easing...
Hello everyone… well I can’t figure out was wrong with this, first of all my knowledge of as is very limited so any help will be very much appreciated. My problem is that I can’t make the mc to stop at a certain x coordinate, I want it to scroll until it reaches that coordinate then stop but I can’t do it!! here is the as I am using on the mc:

ActionScript:
________________________________________

onClipEvent(load){
_root.tarX = -300
mgall._y = 100
}
onClipEvent(enterFrame){
_x = _root.tarX-(_root.tarX-_x)/1.2
}
________________________________________

And on the button:

ActionScript:
_________________________________________

on (rollOver) {
if (_root.tarX>=60) {
delete this.onEnterFrame;
} else {
var speed = 100;
_root.tarX += speed;
}
}
on (press) {
if (_root.tarX>=60) {
delete this.onEnterFrame;
} else {
_root.tarX += 175;
}
}
_________________________________________

also I post a fla with an example of what I am trying to do, any help will be very much appreciated…

View Replies !    View Related
Help On Mc Scrolling With Easing...
Hello everyone… well I can’t figure out was wrong with this, first of all my knowledge of as is very limited so any help will be very much appreciated. My problem is that I can’t make the mc to stop at a certain x coordinate, I want it to scroll until it reaches that coordinate then stop but I can’t do it!! here is the as I am using on the mc:

ActionScript:
________________________________________

onClipEvent(load){
_root.tarX = -300
mgall._y = 100
}
onClipEvent(enterFrame){
_x = _root.tarX-(_root.tarX-_x)/1.2
}
________________________________________

And on the button:

ActionScript:
_________________________________________

on (rollOver) {
if (_root.tarX>=60) {
delete this.onEnterFrame;
} else {
var speed = 100;
_root.tarX += speed;
}
}
on (press) {
if (_root.tarX>=60) {
delete this.onEnterFrame;
} else {
_root.tarX += 175;
}
}
_________________________________________

also I post a fla with an example of what I am trying to do, any help will be very much appreciated…

View Replies !    View Related
Help On Mc Scrolling With Easing...
Hello everyone… well I can’t figure out was wrong with this, first of all my knowledge of as is very limited so any help will be very much appreciated. My problem is that I can’t make the mc to stop at a certain x coordinate, I want it to scroll until it reaches that coordinate then stop but I can’t do it!! here is the as I am using on the mc:

ActionScript:
________________________________________

onClipEvent(load){
_root.tarX = -300
mgall._y = 100
}
onClipEvent(enterFrame){
_x = _root.tarX-(_root.tarX-_x)/1.2
}
________________________________________

And on the button:

ActionScript:
_________________________________________

on (rollOver) {
if (_root.tarX>=60) {
delete this.onEnterFrame;
} else {
var speed = 100;
_root.tarX += speed;
}
}
on (press) {
if (_root.tarX>=60) {
delete this.onEnterFrame;
} else {
_root.tarX += 175;
}
}
_________________________________________
thanks in advance...

View Replies !    View Related
Help On Mc Scrolling With Easing...
Hello everyone… well I can’t figure out was wrong with this, first of all my knowledge of as is very limited so any help will be very much appreciated. My problem is that I can’t make the mc to stop at a certain x coordinate, I want it to scroll until it reaches that coordinate then stop but I can’t do it!! here is the as I am using on the mc:

ActionScript:
________________________________________

onClipEvent(load){
_root.tarX = -300
mgall._y = 100
}
onClipEvent(enterFrame){
_x = _root.tarX-(_root.tarX-_x)/1.2
}
________________________________________

And on the button:

ActionScript:
_________________________________________

on (rollOver) {
if (_root.tarX>=60) {
delete this.onEnterFrame;
} else {
var speed = 100;
_root.tarX += speed;
}
}
on (press) {
if (_root.tarX>=60) {
delete this.onEnterFrame;
} else {
_root.tarX += 175;
}
}
_________________________________________
thanks in advance... :link:

View Replies !    View Related
Easing Out Scrolling Images
howdy guys.
i have some images which scroll using actionscript. the only thing i cant make it do is ease out when it comes into its position. you can see what im doing here http://www.gravity-field.com/newsite and the code i am using is below.
any help would be appreciated.




onClipEvent (load) {

speed = 8;
}
onClipEvent (enterFrame) {

dif_x = _root.target_x-_root.images._x;
sign = dif_x/Math.abs(dif_x);

x += (speed*sign);
_root.images._x += x;
// avoid deviding by zero
if (dif_x == 0) {
speed_x = 0;
x = 0;
}
abs_x = Math.abs(x*2);
if (Math.abs(dif_x)<abs_x) {
_root.images._x = _root.target_x;
}
}

View Replies !    View Related
Easing Scrolling Images
ok i am scrooling some images with actionscripting
take a look http://www.gravity-field.com/newsite

what i dont know how to do is ease them out.
anysuggestions?

cheers
matty

View Replies !    View Related
[ _x Position Scrolling With Easing ]
Alright. I've seen this a million times but can't figure out how to do it, nor can I find a good sample .FLA to help me out. I have multiple pages of content in a clip. It's all masked and layed out and ready for horizontal motion/sliding/scrolling but I'd like to see it ease in and out of its motion without using tweening options. So to put it simply:

• I have a clip.
• Its scrolling is controlled by buttons on the main stage.
• I want it to move horizontally without tweening.
• I want it to rely on _x positioning if possible.
• I'd like to have it ease in and out of its horizontal sliding.

Any suggestions, samples, etc.?

Thanks in advance!

Umnbrella

View Replies !    View Related
Easing My Scrolling Actionscript
i have put together a scene and it works just how i want it to except i would like the movment to ease... i guess what im saying is instead of it being so precise with the mouse movment, id like it to be smooth...

here is the actionscript i am using.


Code:
stop();
var targetx:Number = 2;
onEnterFrame = function () {
targetx = -(((bgplane._width - Stage.width) / Stage.width) * _xmouse);
var dx = targetx - bgplane._x;
bgplane._x = targetx;
}

View Replies !    View Related
Scrolling With Buttons (and Easing)
Does anyone know how I can make an easing scroller using butons like here:

http://www.cookie.pl/wwweng.html

They have 2 black buttons underneath the text and it scrolls up or down with easing.

View Replies !    View Related
Scrolling Text With Easing?
Does anyone know how to scroll text with easing? I am looking for a tutorial that will show me how to do it.

View Replies !    View Related
Easing Of Scrolling Landscape - 3D Effect
Hi all!

I have this script on each of 3 movieclips (background, trees and gras). The values of some variables of the script below (on the other two movieclips) are a bit different of course, but further they're the same.

I would like to extend this script a bit: when the mouse pointer is in the _ymouse area from 0-50 the landscape scrolls fine. But when the mouse pointer is below 50 px, the scrolling SUDDENLY stops of course. This isn't a nice sight. So I'm trying to decellerate the scrolling (to zero) of the landscape when the user moves the mouse pointer from the 'hit area' to the rest of the stage (y below 50 px).

Anyone know how the code should be modified to achive this effect?

Many thanks!!


The code of 1 of 3 images:

onClipEvent (enterFrame) {
if (_ymouse<50) {
if (_root.mainVar == 0) {
homeX = (-_root._xmouse)+700;
} else {
homeX = (-_root.mainVar)+700;
}
thisX = _x;
diffX = homeX-thisX;
if (_root.mainVar == 0) {
moveX = diffX/30;
} else {
moveX = diffX/5;
}
_x = thisX+moveX;
}
}

View Replies !    View Related
Smooth Scrolling Help (actionscript Easing)
I'm trying to achieve a smooth scrolling effect on my thumbnail navigation.

At the moment when you move your mouse to the edges it scrolls in whichever direction your on, thats all cool, but I'm wondering how hard it would be the make the scroll smooth, such as easing out as you get to one side...

Here's the code for the scroller...


Code:
function thumbNailScroller() {
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 5;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
Any help would be great, thanks in advance...

View Replies !    View Related
Easing Scrolling Thumbnails Menu
Hi,
I went through the forum and I couldn't find how to do scrolling menu like that: http://www.saimon.art.pl/saimon.htm

it's very smooth and nice.

Can anybody advise please?

Tx

View Replies !    View Related
Parallax Scrolling And Easing Zoom In/out
hiya,

i'm trying to make a site like this:
http://www.thebees.info

i managed to recreate the parallax scrolling but i cant recreate the smooth scrolling and the zooming in on certain areas in the movie. (the bees movie moves very smooth and mine is kind of 'twitchy' if you change direction with the mouse fast

notice the different zoom-in levels on the different layers and that the movie holds until the mouse leaves the button area... dont know how to do that.

attached is what i came up with so far.
i unfortunately cant post the real file for its very heavy on the image side. 240kb.swf. if youre interested i'd post it somewhere for you to view.

any help would be greatly appreciated.
i tried hard for two days now, but cant come up with anything that works. and of course if i had more than two days left, i'd read a book... but for now i'm stuck...
dual

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved