Horizontal Scrolling?
Here is what I want to do, can anyone help?
I have 6 photos layed out horizontally. On either sides of those I have an arrow button looking like below:
< O O O O O O >
When I hit the arrow I just want the pictures to advance or decrease by 100 pixels. That's it.
Thanks In Advance!
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-27-2003, 01:32 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Vertical Scrolling To Horizontal Scrolling...HELP
So I created a movie with 6 thumbnails on the left side which, when clicked, scroll the full-sized images on the right to show the respective image. However, with the current code, the large images scroll vertically. I want them to scroll horizontally (and then I can move my thumbs to the bottom so as not to be in the way). I'm pasting the code I used below, can someone help me with what changes I would need to make to the code to switch from vertical to horizontal scrolling? Thanks!!
this.createEmptyMovieClip("images", 100);
this.attachMovie("mask","mask", 101);
mask._x = images._x = 550;
mask._y = target = 311.8;
images._y = -1000;
images.setMask(mask);
speed = 7;
for (var i=1; i<7; i++) {
var img = images.attachMovie("image"+i, "image"+i, i);
img._y = img._height*i;
var thumb = this["thumb"+i];
thumb._alpha = 60;
thumb.pos = target+(i*-img._height);
thumb.onPress = function() {
target = this.pos;
};
thumb.onRollOver = function() {
this._alpha = 100;
};
thumb.onRollOut = function() {
this._alpha = 60;
};
}
this.onEnterFrame = function() {
images._y += (target-images._y)/speed;
};
Horizontal Scrolling
Hey,
This is a follow up to my earlier question regarding my problems with getting a horizontal scrolling bar thing to work similar to the monocrafts menu system sans the zooming in and out features.
I've got it to work sortof, but my problem is it doesn't work seamlessly. the menu "skips" and jumps back to the center of the menu once scrolling has reached the end of the image. I'm really stumped on this, since i'm new to action scripting in general.
Here's how i've got it set up. My movie is 700 pixels wide and 107 pixels high. I've made a movie clip on the main stage which holds my graphics which need to scroll horizontaly. I've also created a drag control movie clip, with 2 frames. the second frame sends it back to the first frame. In the second frame, it's set up like this.
centrepos = 350;
sliderpos = _root.menu._x;
mousepos = _root._xmouse;
difference = mousepos - centrepos;
move = -difference/20; _root.menu._x = sliderpos + move;
if (sliderpos + move> _root.menu._width/4) { _root.menu._x = 0 +move;
}
if (sliderpos + move< 0) {
_root.menu._x = _root.menu._width/4 + move;
}
I've put this info into a variable. maybe this is where this all going wrong. cause it partly works.
anyways, sorry for the long explanation. Thanks as always
peace out
Horizontal Scrolling
hey ppl
could somebody help me out here. Im trying to make a horizontal image scroller.
Its got to have an arrow at each end and will scroll the images when the mouse rolls over it.
Ive found plenty of things for vertical scrollers but i dont have the first idea of how I would convert it to horizontal
regards
Horizontal Scrolling
Alright, to be specific:
I have 8 images, on a horizontal line. I have a mask, its purposes to hide all but three of the images. Over an arrow image to the left of these, I have a rollover effect that starts the images scrolling to the left. Rollout, it stops, when it gets to the end, it also stops. Roll back over and it starts up again. To do this the images are grouped, and just follow a motion tween to the left. Now, as you prob. have guessed by now, there is a right arrow, and I need the images to scroll to the right. What is the best way to do this? So, for ex, if visitor is scrolling the images to the left, and halfway through wants to scroll back right, what is the best way to manage this?
HELP - Horizontal Scrolling MC
can someone please help me with a nice - simple way to scroll a MC horizontally using buttons so that it has a beginning and an end - meaning, can't scroll past a certain point on the left and right
and, if fancy, that speeds up the longer the button is held down?
thanks,
jeremy
Horizontal Scrolling
Hi folks, just need to pick your brains if I can, i've made a flash file, where everything is created except the script to scroll the graphic. (oh, and the preloader). If you goto http://www.freewebs.com/corriganfyp/test1.htm you will see the flash file, i have made the scrollbar at the bottom and I want it to be able to scroll the image with all the football kits on above it when i drag the mini football. The dimensions of the image are 2645x168 if that helps at all? I've searched all over the net but only been able to find vertical scrollers, the only horizontal scroller movie i've found has been in bloomin' French.
Any helps would be greatly appreciated.
Thanks in advance.
Horizontal Scrolling
I got already a vertical scrolling menu, but the horizontal doesn't work:
the vertical menu:
i made dynamic text with 2 arrows on the right side in a movie clip.
scripts on the arrow up:
on (press) {
scrolling = "up";
frameCounter = speedFactor;
}
on (release, releaseOutside) {
scrolling = 0;
}
I placed the movieclip on the scene and teh script on the movie clip:
onClipEvent (load) {
tekstbox = "";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
onClipEvent (enterFrame) {
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && tekstbox.scroll>1) {
tekstbox.scroll--;
} else if (scrolling == "down" && tekstbox.scroll<tekstbox.maxscroll) {
tekstbox.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}
I don't know how to make a horizontal version, i tried to change up in left and down in right but it doesn't work.
please help ...
Horizontal Scrolling MC
Does anyone know of a way to stop the horizontal scrolling of a movie clip? Preferrably when a user clicks an internal button...
I have an mc that scrolls horizontally and that's controlled by the mouse position; but I can't make the scrolling stop when the user click on a button in the scrolling clip.
Any help would be great!
Thanks
Horizontal Scrolling Mc
I have a movie clip that I would like to scroll using left and right buttons. I know it's a simple task but I haven't quite found a script that does what I want. Any help would be appreciated.
thanks!
Gerry
Scrolling Horizontal MC
I tried searching.
what I want to do is to have this scrolling horizontal movie clip and when the movie clips gets at a certain point (the right/left edge of the movie clip touches the right/left edge of the stage) it will stop scrolling in that direction
thats the code I have so far :
Quote:
function declareButtonHandlers():Void {
mcForward.onRollOver = function() {
nInterval = setInterval(scrollImages, 50, "right");
};
mcForward.onRollOut = function() {
clearInterval(nInterval);
};
mcBack.onRollOver = function() {
nInterval = setInterval(scrollImages, 50, "left");
};
mcBack.onRollOut = function() {
clearInterval(nInterval);
};
}
function scrollImages(sScrollDirection:String):Void {
if (sScrollDirection == "right") {
mcSlide._x -= 10;
} else {
mcSlide._x += 10;
}
updateAfterEvent();
}
Horizontal Scrolling Help
hey i want to build a similar effect -
having items scroll when you hit arrow left/right -
see this site - nice and clean effect
http://alaska.si.edu/browse.asp
any advice or direction to a tutorial
thanks
ju
Horizontal Scrolling
Hello all. Hopefully you can help me out. I am designing a website which will contain a lot of Floor Plans of an apartment complex. I have a stage set up at 780 x 448px. Basically what I want to do is have 2 buttons at the bottom right, one for 'previous' and on for 'next'. When you click on the next button, I want the next Floor Plan to scroll in horizontally. My idea is to create a sort of slideshow for each of the plans. There is around 15-20 plans altogether. Hopefully this is clear and fingers crossed some genius can help me out or point me in the right direction !!!!!
Cheers.
Horizontal Scrolling
Does anyone know of a way to stop the horizontal scrolling of a movie clip? Preferrably when a user clicks an internal button...
Thanks
Horizontal Scrolling
Hello!
In the bottom of this message I have the script for vertical scrolling I use for scroll images beneath mask zone (with "ScrollFace" button and "Scrolltrack" line).
I'd like to use some relative action script for a horizontal scroll. I've tried to change the "y" parameters to "x", the "Height" to "Width" and the "upbtn" or "downbtn" to "Leftbtn" and "Rightbtn" etc - that wouldn't help. It doesn't work. Is there a similar script for Horizontal scroling?
Thakns.
import mx.controls.List;
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._y;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._height-scrollFaceHeight+scrollTrack._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y+speed<maskedView._y) {
if (scrollFace._y<=top) {
scrollFace._y = top;
} else {
scrollFace._y -= speed/moveVal;
}
contentMain._y += speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRollOut = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y-speed>finalContentPos) {
if (scrollFace._y>=bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y += speed/moveVal;
}
contentMain._y -= speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};
if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
tod.addEventListener("scroll");scrolling();
Horizontal Scrolling And Xml
Hello, how are you!
I´m newbie in flash, and english! I hope it´s ok with my bad english.
I make a flash with xml no problem, but my problem - how made a scrolling? And how made "multiple" resultat? I have two "box" in xml but i see only one
"24
NOV 06 bla bla"
Se my files, hope you can help me :-)
Horizontal Scrolling
Hello all,
I'm looking for a tutorial on how to create a horizontally scrolling bar with whatever I want in it, text, graphics whatever.
Any ideas?
Caden
Horizontal Scrolling Text
I need to scroll some text from right to left at a readable speed.
This text is dynamic, so obviously i don't know how many characters it will be in length.
Originally I tweened the text box to move in the required direction, but if the text exceeds the length of the text box, then the excess is cut off and cannot be read.
I came to the conclusion that as text boxes do not seem to have a _width property (they don't seem to have any properties, nor can you refer to them) that the best method would be to have the text scroll inside the text box.
So far all i have found is code to scroll vertically as in any scrollable window, but i need to scroll horizontally, creating a news ticker effect.
Does anyone know how this is done, or can they at least point me in the right direction?
Cheers...
Horizontal Scrolling Navigation....
Hi!
I was just wondering if there's any website where I could get such horizontal scrolling Navigation with images moving when u click on 2 buttons on left or right and when the image comes in the centre it becomes bigger...
http://www.efactormedia.com/
Thank You
Dhaval Desai
Scrolling Movie-horizontal
I've created a movie that scrolls horizontally, but it won't start scrolling on it's own. Let me explain. The movie works, but for some reason, it only begins scrolling when my mouse is over it. It's created using actionscript and I've tried to include play (); on the first frame, but that didn't do it. Anyone know what I'm doing wrong?
Thanks,
jade
Help With Horizontal Scrolling Text.... ANYONE?
Hi there!
Okay here's the problem..
I'm trying to get the scrolltext inside a single-line text box scroll horizontaly...
I'm using the command loadVariablesNum("info.txt", 0);
To load the text...
Inside info.txt, I've named the different variables 01, 02, 03...etc...all the way to 21...
Tried using HTML command: "marquee" inside the "info.txt" but that didn't work..
ex: <marquee>This is the command i'm looking for...</marquee>
Is there a way, say to get the variables that are longer then say 36 characters to scroll automaticly...??? (Did this make any sense??)
Hope someone kan help...
Lock Horizontal Scrolling
What is the script for locking just horizontal scrolling?
I used to know but i forgot =/
Thanks a Million
Horizontal Scrolling Menu?
Has anybody ran into a tutorial for a horizontal scrolling/sliding menu. The ones with pictures/buttons that move left or right according to the possition of the mouse. I've seen them here before but I can't find one now
thanks in advance
Horizontal Scrolling Menu?
Has anybody ran into a tutorial for a horizontal scrolling/sliding menu. The ones with pictures/buttons that move left or right according to the possition of the mouse. I've seen them here before but I can't find one now
thanks in advance.
an .fla that I can disect would be fine too. thanks
Horizontal Scrolling Prob.
Hi, I am making a scene in my flash movie with a horizontal photoscroller. I got the script i'm using from a movie here on FK. this is the script:
_____________
FRAME 1:
xphoto = 0;
widthmovie = 790;
scrollspeed = 50;
widthphoto = 1812;
____________________
FRAME 2:
xmouse = _xmouse - (widthmovie / 2);
speed = (xmouse) / scrollspeed;
if (speed < 0) {
speed = -(speed);
}
if (xmouse < 0) {
xphoto = xphoto + speed;
}
if (xmouse > 0) {
xphoto = xphoto - speed;
}
if (xphoto > 0) {
xphoto = -906
}
if (xphoto < -(widthphoto - widthmovie)) {
xphoto = -115;
}
setProperty("pictures", _x, xphoto);
__________________________________________________ _________
FRAME 3:
gotoAndPlay(2);
___________________
That's it. And it works perfectly, BUT i only want the pictures to scroll when the mouse is in a particular section in my movie. When it is not in that particular section (in the same scene ofcouse) I want the scroller to stop where it was left.
In another section of the screen, I want the scroller to keep scrolling at the same speed it was left.
How can I do this??
Thanks!
Horizontal Button Scrolling
Well, I hope I can make this clear. I am making a photo gallery for my brother.
http://www.qozmiq.com/test.html
Here is the situation #1: I am trying to make the bottom filmstrip be a horizontal scroller, depending on what side the mouse is on. The filmd strip is made up of vectors, except for the bitmap thumbnails. The filmstrip itself without the bitmaps is made up of three layers, I converted them all to 'graphics' so I can build a movie out of them. One layer is the holes, one is the orange text, one is the long back ground. Now look at the two thumnails that are moving. I applied 'goto and stop' actions to both of them, inside the button creator. When I brought them back into the movie, the buttons worked. When I animated them to move across the screen, they lost the ability to perform the action. I applied another action to the horizontally moving one, and it stuck.
Now, when I am to build the horizontal navigator, Do I need to make all the buttons without action script, then when I put them in the movie, add it? I want the filmstrip to move with the thumbs, as the user navigates left and right. Do I apply the same code to both>? it will be two different layers at that point...I think. I am sorrry for the wordy post, but I am so confused. I hope someone has the patience to help!
Qozmiq
Horizontal Scrolling Menu
Hi, Please can someone check out my .fla.
I am trying to create a horizontal menu that scrolls left and right (opposite to the direction that the mouse moves).
It seems to be working except I cannot figure how to set limits so that it will stop when it reaches a point, either on the left or the right.
I have definatly seen this working before.
Any help much appreciated
Thanks
Chris
Horizontal Scrolling Text?
OK I want to have text scrolling on top of a image but, I want it to look like it's repeating the same two words for example say I had SCROLLING TEXT as the text I want to scroll as soon as the S disappears off the screen I want it to appear again on the other side of the screen. Making it look like it's continuously scrolling in a loop. I have flash 5. Any help would be greatly appreciated, thankyou.
Horizontal Scrolling In Html
hi,
i have a problem with horizontal scrolling whereby if a window gets too narrow, a horizontal scroll bar will appear at the bottom.
is there a way to disable horizontal scrolling, but not the vertical scrolling?
thanks a million!
Lawrence How
Horizontal Scrolling Menu
I need a horizontal scrolling menu like http://www.bacardi.com/flash_site/fl...romo_site=none
Does anyone have a link to a tutorial or anything?
Horizontal Scrolling Navigation
I am tryin to create an advertisement for a project where the user
can navigate by moving the cursor to the right side of the flashplayer and this then scrolls along almost like a panaramic picture. I am strugglin with this as I am quite new to flash, I would be extremely grateful for any help or assistance.
I will include this example I found on the internet.
http://abercrombie-email.com/a/tBCHN$ZAR$Hc0AVk$qqAT-dpQHB/text1
Thankx.....Need HELP
Problem In Horizontal Scrolling
Hi,
I'm trying to make 40 earrings to horizontally scroll, left or right, depending on the user's mouse position. I want the scroll to activate only when the mouse is positioned within this rectangle. Right now the xmouse position seemed to be working but how and where would I need to put in a code to specify the position of the ymouse?
I want the earrings to move only when the mouse is positioned b/t these two y points:
167.4 & 388.5.
Also, once the scroll begins, it won't stop. I want the scroll to happen only when the mouse is inside the rectangle. Once the mouse is positioned outside of the rectangle it should stop. Currently it doesn't stop once it starts to scroll. Any input or help in coding will be apprecited since I'm new to flash. Thanks!
(Below is the current code I'm using. As u can see..there's no scripts for the _ ymouse)
CURRENT CODE:
mouseX = _xmouse;
earringsX = earrings._x;
if (mouseX > 515) {
diff = (mouseX-515)/7;
}
if (mouseX < 250) {
diff = (250-mouseX)/7;
}
if (mouseX <= 384 && earringsX <= 76.8) {
setProperty("earrings", _x, earringsX+diff);
}
if (mouseX >= 384 && earringsX >= -7246) {
setProperty("earrings", _x, earringsX-diff);
}
if (earrings._x >= 76.8) {
earrings._x = 76.8;
} else if (earrings._x <= -7246) {
earrings._x = -7246;
}
Horizontal Scrolling Menu
Need some help please.
I'm trying to make a gallery menu that scrolls left to right. I got the scrolling left to right part working, now I just need to know how to make it stop scrolling when it gets to the end of the menu, or back to the beginning.
the fla is attached.
Thanks in advance
Chimmy
Horizontal Scrolling In A List
hello ev'ry body !
does anybody know how to make an horizontal scrolling in a list component, or tell me if there's a bug with that ?...
even with that code, it doesn't work :
myList3.hScrollPolicy = "on";
myList3.hPosition = 500;
myList3.Box.maxHPosition = 500;
thanks
Ohm
Horizontal Scrolling Problem
Hi...
I have a movie with a horizontal Image scroll that works just fine...
But the problem is that when I load it from from a diferrent movie, the movie loads but the scroll doesn´t work....
Can anybody help please...
Horizontal Scrolling Background
HI!!!
I've got a button operated horizontal scrolling background. the Buttons have two functions: one jogs the scroller forward a slide and the other jogs the scroller backward a slide. I'm wondering if anyone could help me out with programming the scroller to respond to several different buttons. Ie. I would like to have several nav buttons at the botton the window which wil forward or reverse the necessary amount of slides to jog to their respective slide. So you could be on the first slide and click on the third button and it would scroll past the second to the third.
I've placed the swf online as well as a link to download the FLA at www.test.thelongfellows.com
ANY HELP WOULD BE AWESOME. Thanks a bunch!
Glen
Horizontal Scrolling Text
Hello everybody
Text on the scroll start and on the scroll end is not readable. scroll.Speed is right, I dont wanna change it. I think, there is missing some scroll.pause on the begining and on the end. (or something like ease in, and ease out, or "speed in", "speed out") Any idea ?
PHP Code:
window_txt.text = "This is a test to see if I can scroll back and forth.";
scrollTest = 0;
newInterval = setInterval(makeItScroll, 30); //this is scroll.Speed
function makeItScroll(){
if (scrollTest === 0){
if (window_txt.hscroll < window_txt.maxhscroll ){
window_txt.hscroll += 1;
}
if (window_txt.hscroll >= window_txt.maxhscroll ){
scrollTest = 1;
}
} else {
if (window_txt.hscroll > 0){
window_txt.hscroll -= 5;
}
if (window_txt.hscroll <= 0){
scrollTest = 0;
}
}
}
Horizontal Scrolling A MC With Deceleration?
I'm trying to create a scrolling effect much like the one viewable here:
http://www.humaniz.com/work/
Which scrolls left/right depending on the mouse position. I found some (old, old) code that kind of does the trick. After determining that the mouse _y position is correct, it kicks into this looping frame to move the large movieclip:
Code:
mouseposition = getProperty("/myself", _x);
iconsposition = getProperty("/icons", _x);
if (Number(mouseposition)>=400 and Number(iconsposition)>Number(-220)) {
setProperty("/icons", _x, iconsposition-(0.1*(mouseposition-400)));
}
if (Number(mouseposition)<300 and Number(iconsposition)<1034) {
setProperty("/icons", _x, Number(iconsposition)+Number((0.1*(300-mouseposition))));
}
However the code is kinda ancient, and doesn't decelerate when it reaches either end of the movieclip it's scrolling.
Is there an elegant way to handle this?
Horizontal Images Scrolling...why Look So Bad? Help
Hi everyone
I would love some help. I am building this very simple site for a client and she wants a band of images scrolling horizontaly. I hate it but got do what the client wants. Soooo i got it done but for some reason the images when moving look so bad and fuzzy. Is there a solution for that or not? the images i imported are jpgs 100% quality. No compression.
If someone has an idea if i can make them loo better, please let me know!!!!
thank you soooooooo very much!!!!
cheers
ale
[F8] Horizontal Scrolling Boundaries
Hi there. This is probably a simple problem for most of you out there but im a little stumped by it.
Im currently trying to create a simple tour of a couple of rooms of a house and so far ive the the image changing, scrolling left and right (panoramic images) and the left scrolling boundary stop done. However im having trouble with the boundary for the right scrolling of the image.
Because all the images are of different widths i need the boundary of the right scrolling to be adjusted in accordance with the width of the particular image that is currently loaded.
Heres the code that im using for the boundaries at the moment:
code:
// on the movieclip:
onClipEvent (load) {
scroll = 0;
}
onClipEvent (enterFrame) {
_x += scroll;
//left scrolling boundary
if (_x>=0) {
_x = 0;
//Right scrolling boundary
} else if (_x<= -500) {
_x = 500;
}
}
As you can see the right scrolling boundary is a fixed number. The idea that i had to have this number adjusted dynamically was to have something along the lines of:
code:
} else if (_x<=500-graphic._width) {
_x = 500-graphic.width;
}
where graphic._width is the width of the movie clip that the image is loaded into. However this didnt seem to work.
If any one could suggest a possible solution for this problem i would be very greatfull.
Thanks
Horizontal Scrolling Menu - Please Help
hello
i searched through the site and found a great tutorial for a scrolling horizontal image gallery.
thank you for providing these great resources.
i am interested in using the horizontal scrolling menu on flash kit http://www.flashkit.com/tutorials/In...-744/index.php . i don’t know very much about action script so i hope you don’t mind if i ask you – ?
i would like to use the menu and replace the ‘color images’ with photo thumbnail images. the menu would scroll under a larger image. i would like a larger image of the selected/ clicked on thumbnail to appear in a box over the scrolling menu. how can i add this feature to this menu? i tried to make it work but the button doesn't work when i click on it.
please see the example here http://clientaccess.solaricreative.c.../comp2-2r.html the small thumbnails when clicked would bring up the larger image.
thanks for your help
Horizontal Scrolling...Plz Help, I Know It Should Be Easy
Hi there everyone. Ok, so, i have an image significantly larger than my movie size, that scrolls horizontally (left and right) on a rollover script with respective (left and right) buttons. It is set up so that the scrolling stops on rollOut. However, i cannot manage to make it stop once the image reaches the movie window. It continues to scroll white.
Here is the code from my buttons first, followed by the main driving code.
LEFT BUTTON
on (rollOver) {
ScrollMyCoolMap = -1;
}
on (rollOut) {
ScrollMyCoolMap = 0;
}
RIGHT BUTTON
on (rollOver) {
ScrollMyCoolMap = 1;
}
on (rollOut) {
ScrollMyCoolMap = 0;
}
DRIVING CODE
TheCoolSpeedOfMyCoolMap = -5;
TheCoolerSpeedOfMyCoolMap = 5;
if (ScrollMyCoolMap == 1) {
MyCoolMap._x += TheCoolSpeedOfMyCoolMap;
}
else if (ScrollMyCoolMap == -1) {
MyCoolMap._x += TheCoolerSpeedOfMyCoolMap;
}
Any Help would be great...im happy to post the FLA if required.
Thankyou all
[CS3] How Is This Horizontal Scrolling Achieved?
I am trying to get the same effect seen here,
http://www.endcommunications.com/
How would you go about the horizontal scrolling on mouse over without having a scroll bar or using a button?
I appreciate the help.
Horizontal Scrolling Text
So I found another thread with the basic idea of what I'm looking to do with horizontally scrolling text:
http://www.actionscript.org/forums/s...hlight=hscroll
But my question is - how can you get the text to scroll back to right when it's reaches the end of the line? I don't want the text to completely scroll off the screen to the left because I like the way it stops with hscroll, but I want it to reverse the second it hits the end of the text string.
I know it's got to be a simple piece of script, but I can't figure it out. Any help?
Flickering On Horizontal Scrolling
I have a problem that with any scrollbars with easing or scrolling panoramas (that i use/have), there is a flickering which occurs when you scroll horizontally. It doesn't happen when you scroll the same movie clip vertically (by rotating 90 degrees on stage then exporting an swf). Is this a flash issue? An example is:
http://www.db82.com/other/Sam%20Painter/babekuhl/
Move the mouse slowly left and right and it's like a wobbly/flickering effect. Does anyone know if this is a flash related problem? or are there problems with scrolling horizontally (to do with os or something else)?
Buttons Within Horizontal Scrolling Box
hi,
I'm confused about how to make the buttons work in this scenario.
I did this tutorial ...
http://www.layoutgalaxy.com/html/htm...er49-page1.htm
and it exsists as a movie clip within my scene. I want to make the buttons active within this clip and when they are clicked on I want to send it back to a layer with multiple pages with frame labels within the scene. If I don't put the script in scene 1 to send the playhead back the menu won't scroll when I test the movie
this is the script I have so far...
scene 1 script
stop();
gotoAndPlay(3);
the movie clip with horizontal scrolling and buttons is on (3)
movieclip script
mouseX = _xmouse;
menuX = menu._x;
if (mouseX > 640) {
diff = (mouseX-640)/15;
}
if (mouseX < 600) {
diff = (600-mouseX)/15;
}
if (mouseX <= 620 && menuX <= 1200) {
setProperty("menu", _x, menuX+diff);
}
if (mouseX >= 620 && menuX >= -360) {
setProperty("menu", _x, menuX-diff);
}
if (menu._x >= 1140) {
menu._x = 1140;
} else if (menu._x <= -360) {
menu._x = -360;
}
gotoAndPlay(2);
button script within movieclip
on (release) {
gotoAndStop("scene 1", "air");
}
scene 1 is where I want to go when the button is clicked and then move over to the frame label air for that layer
I don't know if I've explained myself well enough, I'm new to flash and I can't figure out how to fix the problem any help would be greatly appreciated
|