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
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 10-12-2004, 10:34 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
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
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
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
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
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
[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
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?
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.
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?
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.
[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
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!
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.
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.
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
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
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.
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
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
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.
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.
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!
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!!
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
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.
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!!
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
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
Scrolling Graphic- Duh
I can't believe I've been toying with this for three days. I have to ask, I can't take it anymore. I have a graphic and 2 buttons that should scroll it. I got it to work but it went too slow, now I found a script that introduces a speed variable that you can change and I can't get it ot work for the life of me. Pleas, please, someone take a look and tell me what I'm doing wrong...miakazi
on MC (called content):
onClipEvent (load) {
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
onClipEvent (enterFrame) {
if (frameCounter%speedFactor == 0) {
if (move == "up" && counter>1) {
this._y--;
} else if (move == "down" && counter<counter.maxscroll) {
this._y++;
}
frameCounter = 0;
}
frameCounter++;
}
on buttons:
on (press) {
_content.move = "up";
// scroll up
frameCounter = speedFactor;
}
on (release, releaseOutside) {
_content.move = 0;
}
all of the tutorials are for scrolling text boxes and I can't tweak them correctly for graphics. Thanks for anyone'S help! miakazi
Graphic And Scrolling
Okay, here's what im trying to do.
I have text as a graphic in a movie clip. I'm scrolling the movie clip with a scrollbar that i made. What I would like to do is to add another graphic to the top and bottom of the information that is being scrolled (the text graphic/movieclip) that fades the text out... so it would look like the text fades in and fades out at the top and bottom when you scroll. The background is black. The graphic that I tried making was also black... a black rectangle box. I tried using alpha, but im still not having the right effect. Is it possible to make the black into a 1 color gradient by using transparence and/or alpha?
Help With Scrolling Graphic
I'm using ActionScript 2.
I have created a graphic that is longer than my stage. So I would like to script two buttons, one for back and one for forward, to move the graphic across my movie.
I'm an unsure what script to use. I tried
on(release){
_x -=10;
}
However, that obviously moves the entire movie to the left. How do I script it to just move the graphic?
Thanks.
X/y Pos Scrolling Graphic Help
ive built a site with a xpos scroll on it ( www.skichute4.com.au )
i now want to build a site that allows the scroll to go left and right as well as up and down. check out the site ive done and let me know if its a simple add on to the site. or can someone point me in the direction of a tutorial please
[MX] X/y Pos Scrolling Graphic Help
ive built a site with a xpos scroll on it ( www.skichute4.com.au )
i now want to build a site that allows the scroll to go left and right as well as up and down. check out the site ive done and let me know if its a simple add on to the site. or can someone point me in the direction of a tutorial please
Help With Scrolling Of Graphic
Ok Folks,
Here's another one. what I'm trying to do is seamlessly scroll the satin graphics in my interface from right to left - I would also like to eventually have that occur while the satin closes like a window on the black part of my stage. can anyone help me out with this? Let me know.
Happy Flashing!
Kelly
Help With Scrolling Of Graphic
Hey Everyone,
I was hoping that I could get some help from someone with a problem I'm having. I have an intro I'm creating which I have posted here:
www.k2powered.com/drais/
What I want to do, is in the second and third scenes I would like to have the satin at the top and bottom continually scroll from right to left throughout the scene. I have tried to accomplish this effect by using the "Infinate menu" tutorial here on Kirupa.com. However, I do NOT want the satin to move and speed up/down in relation to the mouse pointer. Is there anyone out there who can help me with this. I would be very greatful.
Thanks,
Kelly
Help On Scrolling Large Graphic
I am trying to have a site scroll a wide graphic file (about 2500 pixels wide or so) depending on a mouseover to a certain part of that file. The problem is that flash does not seem to handle files larger than a certain width very well when you try to control it's x and/or y position.
There is a site http://www.webagent007.com that is loosely like the idea that I have.
Which is the best way to tackle this. Any ideas/comments/suggestions would be appreciated.
Scrolling Graphic Problem
If any one is familiar with this scrolling graphic thing, i need your help. I have this image
(well check it out)
http://www.oymdesign.com/back/movprob/scroll.html
that scrolls back and forth triggered by this empty clip with actionscripting on it. The way I thought it was supposed to work was, that the action was relative to this clip. but when I try to move it to the right, the action is still happening in the same place. I can send the flash file. I'm very frustrated, please help.
Scrolling Graphic In Flash 4
Calling all cars,
(Ok, if it can't be done in Flash4, then I'll upgrade and TRY to understand Flash5.)
I'm trying to create a scrolling box with graphics (not a text scroll).
To take a look at my embarrassing attempt: www.meridianaeventi.com
As a temporary solution, I've created a movie that has a graphic that moves up and down as you go through frames. I've put in a script for the up arrow that directs the movie to go to "previous frame" when pressed, or to go to "next frame" when the down arrow is pressed. I need a smooth scroll instead of tiring out my index finger.
I've also used a script that works, but only for the down arrow: "on press" tell (target) "play". That works, but how do I do the reverse for the up button.
Any suggestions?
-Cinesina
Scrolling Using Static/graphic Text
Hello,
I know how to create scrolling text boxes using dynamic text, how do I go about setting up a scroll bar using static text and graphic images. I would prefer to avoid using the customised scroll bar if this is possible.
Any advice, pointers to articles would be very much appreciated.
Thanks
max
Repeating Scrolling Graphic Menu
Hi,
I've been browsing flashkit for the past hour or so looking for an example/movie/tutorial of how to do something similar to this http://www.podlob.com/flash/template...0&quality=HIGH
with no luck - can someone point me in the right direction?
thanks
Infinite Menu...infinite Madness
Hi there
I’m making a gallery, with a few thumbnails of my Illustrations and I’m using the infinite menu.
It works great, but there’s one thing that bothers me, the fact that it keeps on moving when you’re not scrolling over it, it’s distracting. I would like to have it ease back to 0 when you move your mouse outside its boundaries, I’m loading the .swf into the main interface and I want it to remain visible, but only to scroll when you move inside its boundaries, other wise it’s running wild even when you’re using the rest of the interface.
This is the code for the infinite menu, as it is now:
onClipEvent (load) {
xcenter = 513;
speed = 1/10.5;
}
onClipEvent (enterFrame) {
var distance =_root._xmouse-xcenter;
_x -= (distance*speed);
if (_x>0) {
_x = -1109;
}
if (_x<-1109) {
_x = 0;
}
}
Can someone pleez help me solve this, I’m going slightly mad…Thanks
Replacing A Graphic For Another Graphic
Hi! Im right now creating a flash program, in which i want to replace the graphic with another graphic from the library using ActionScript coding. I have started using action script properly a couple of days ago, so anything beyond a beginner level code wont really make sense to me.
Thanks for your help.
Infinite Loop? Please Help
hey guys... here's my problem.. i have 7 buttons all in seperate movie clips.. when you hover over each button text fades in, mouseoff the button and the text fades out.. clicking on the button will make the text stick.. if you mouseover a different button while one is selected.. the text of the one that is selected fades out and the text of the one mouseover'ed fades in.. however.. I have gotton to a point now where I think I'm getting into an infinite loop or something because when i mouseover one while another is active the browser locks and CPU usage goes to 100%.. Each button has the identical code pasted below except that fes1 is replaced with the corresponding movie clip #... like fes2, fes3, etc. if you guys could help would be greatly appreciated.. here's the code.. i'll break it apart and explain whats happening..
CODE--------------------------------------------------
on (rollOver) {
if (_root.fes1.state==0) {
_root.fes1.gotoAndStop(8);
}
/// ON ROLLOVER, IT CHECKS IF THE STATE OF THE BUTTON IS ALREADY CLICKED ON.. IF IT IS, IT BYPASSES PLAYING THE ANIMATION ///
else if (_root.fes1.state ne 0) {
i=1;
while ((i<=7)&&(i ne 1)) {
if (_root["fes"+i].state==0) {
_root["fes"+i].gotoAndPlay(9);
_root["fes"+i].state=2;
i=i++;
}
}
/// THE WHILE LOOP LOOPS THROUGH TO 7 (SEVEN BUTTONS) AND AVOIDS 1 (1 WOULD BE REPLACED BY 2, 3, 4, ETC. FOR EACH DIFFERENT BUTTON.. IT FINDS THE CLIP THAT IS CURRENTLY ACTIVE, FADES OUT THE TEXT, AND SETS THE CLIPS STATE TO 2 FOR LATER USE ///
_root.fes1.state=1;
_root.fes1.gotoAndPlay(2);
}
}
/// AFTER THE WHILE LOOP PERFORMS, MOVIE CLIP 1 GETS IT STATE SET TO 1 (NOT CLICKED ON) AND THE TEXT FADES IN ///
on (rollOut) {
if (_root.fes1.state==0) {
_root.fes1.gotoAndStop(8);
}
/// AGAIN, IF FES1 IS ALREADY CLICKED ON, IT BYPASSES ANY ANIMATION ///
else if (_root.fes1.state ne 0) {
i=1;
while ((i<=7)&&(i ne 1)) {
if (_root["fes"+i].state==2) {
_root["fes"+i].gotoAndPlay(2);
_root["fes"+i].state=0;
i=i++;
}
}
/// ANOTHER WHILE LOOP, WHICH FINDS THE CLIP THAT WAS ON BEFORE AND WAS FADED OUT AND FADES IT BACK IN ASSUMING THE PERSON DOESNT CLICK ON THE BUTTON THEY MOUSEOVERED ///
_root.fes1.state=1;
_root.fes1.gotoAndPlay(9);
}
}
/// MAKES FES1 CLIP GOTO AND PLAY THE FADING OUT ANIMATION ///
on (release) {
_root.fes1.state=0;
_root.newpos=216;
/// SETS FES1 CLIP TO BEING CLICKED ON AND ACTIVE, THE NEWPOS IS JUST FOR A TARGETING MOVIE CLIP I ALSO HAVE ///
i=1;
while ((i<=7)&&(i ne 1)) {
_root["fes"+i].state=1;
_root["fes"+i].gotoAndPlay(1);
i=i++
}
}
/// THE FINAL WHILE LOOP SETS ALL OTHER BUTTONS TO INACTIVE AND NOT CLICKED (BECAUSE THE CURRENT BUTTON GOT CLICKED) AND SETS THEM TO FRAME1 (WHICH IS EMPTY) ///
thats it... I'm really bummed this isn't working, im guessing its something ignorant I looked over.. any help would be much appreciated. thanks
adam
How Did They Make This Infinite MC?
Could someone please tell me how they made the infinite Movie Clip you see when you go to
http://bigmagazine.com
go to "Magazine > Back issues"
I dont need to know how to do the motion controll, just how they got the covers to go infintly in both directions.
Thanks for any help.
Infinite Scroll
Hi!
I need a infiit scrolling menu.
If I click go up, each item are srolling up, and when thee reach the top, the have to re-appear on the bottom...
the same effect on X axe,,, if and object reach the right he a have to ome back from the left... always and always....
HOW CAN I DO THAT!!!
Infinite While Loop
Here's the setup:
I have a Guestbook" Button that when clicked tests to see if my "portfolio" movie is loaded into Level50 because if it is located in that level, then portfolio starts playing from the transition frame "transition". When the end of the transition sequence comes in portfolio, a variable in the root movie called "workdone" is set to "yes". The idea was to have this variable signal the end of the transition so that i could play the entire portfolio transition and then load the guestbook into level50. So this is the code that I thought might work:
if (_level0.page eq "portfolio") {
tellTarget (_level50.portfoliomovieclipname){
gotoAndPlay ("transition");
}
while (_level0.workdone eq "no") {
continue;
//keep testing _level0.workdone until it is set to yes
}
loadMovieNum ("GuestBook.swf", 50);
}
But this is giving me an infinite loop - any ideas why this isn't working? Am I misunderstaning the usage of "continue"?
Thanks guys.
-Jaime
|