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




Change Horizontal Scroll To Vertical Scroll



Hi, I've flash source code that is having a horizontal scrolling. Anybody can help me to change this to a vertical scroll. Pls check the attached file. thanks in advance...



KirupaForum > Flash > ActionScript 3.0
Posted on: 10-27-2007, 08:09 AM


View Complete Forum Thread with Replies

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

Scroll Horizontal AND Vertical?
I need a script that will let a user scroll a movieclip Horizontally AND Vertically. Just like a regular vertical scrollbar which u always see, it has an up arrow and down arrow. i need that, as well as a right and left arrow.

The idea is that i have a big image file, and i want to mask it, and let users scroll thru it up down right and left.

Swap Scroll From Horizontal To Vertical?
I picked up this awesome scrolling .fla from the "Flash to the Core" book by Joshua Davis, but I'm having trouble converting it to a vertical version. I've tried changing all the -y coordintates to _x coordinates, but nothing is working.

Can someone plese look at it for me? Here's the original code:

Code:
// set up content_mc info
contentRight = _root.content_mc._x;
contentLeft = 715-_root.content_mc._width;

// set up gutter info
gutterLeft = _root.scrollbarGutter_mc._x+1;
gutterRight = ((_root.scrollbarGutter_mc._x+_root.scrollbarGutter_mc._width)-this._width)-1;


// don't use the hand icon
this.useHandCursor = false;


// handle press event
this.onPress = function() {
this.startDrag(false, gutterLeft, this._y, gutterRight, this._y);
dragging = true;
this.onMouseMove = function() {
updateAfterEvent();
};
};

// handle release event
this.onRelease = this.onReleaseOutside = function() {
this.onMouseMove = undefined;
this.stopDrag();
dragging = false;
xSpeed = (newxpos-oldxpos)*RATIO;
};


// set initial variables
FRICTION = .9;
RATIO = .5;
dragging = false;

// handle onEnterFrame event
this.onEnterFrame = function() {
if (!dragging) {
oldxpos = this._x;
newxpos = oldxpos+xSpeed;
xSpeed *= FRICTION;
if (newxpos>gutterRight || newxpos<gutterLeft) {
xSpeed *= -FRICTION;
newxpos = oldxpos;
}
this._x = newxpos;
// always move content_mc whether dragging or not
var percent = (this._x-gutterLeft)/(gutterRight-gutterLeft);
this._parent.content_mc._x = percent*(contentLeft-contentRight)+contentRight;
} else {
oldxpos = newxpos;
newxpos = this._x;
// always move content_mc whether dragging or not
var percent = (this._x-gutterLeft)/(gutterRight-gutterLeft);
this._parent.content_mc._x = percent*(contentLeft-contentRight)+contentRight;
}
};
And here's the actual file: www.earph.com/chapter_14a.fla

I appreciate any advice you might offer.

Thanks!

Vertical AND Horizontal Mouse Scroll/follow Query
Hello!

Im trying to work out how I could create a movie that will scroll a (very) large background and haven't been able to find much in the tutorials or movies section of the site.

What I ideally want to achieve would be something like this. I can work out the structure of the site, what clips load when, whats tweened and whats scripted but I haven't got a clue where to start to code the 'container' movie... to make it follow the mouse on more than one axis.

Any help, source code, examples etc. would be very very much appreciated.

Thanks in advance.

----------------------------------------------------
Anyone?

Avoiding Vertical Or Horizontal Browser Scroll Bars
I've seen a site that has no vertical or horizontal scroll bars in the browser window. How do I do that? My page has external swf's so there is no neccessity to scroll. The scroll bars bottom and side look out of place...

Change Vert Scroll Script To Horiz Scroll
I found this tutorial for a scrollbar. It works great for vertical scrolling (ex:http://www.matthewterry.net/safetyguide.html click any section), but I want to change it to scroll horizontally, for another project.

Can someone help me change it to affect horizontal scrolling?

On the content's movie:

onClipEvent(load){
goY = this._y;
myY = this._y;
ySpeed = 0;
clicked = false;
delay = 2;
barDis = 380;
barPercent = 0;
}
onClipEvent(enterFrame){
if(math.round(myY) != math.round(goY) || clicked == true){
barPercent = (_parent.scroller.scrolllever._y/barDis)*100;goY = 116.7 - ((340/100)*barPercent);
myY = this.setonescroll._y;
ySpeed = (myY-goY)/delay;
this.setonescroll._y -= ySpeed;
}
}

On the scroller:

on(press){
startDrag(this,0,0,0,0,_parent._parent.setone.barD is);
_parent._parent.setone.clicked = true;
}
on(release, releaseOutside){
stopDrag();
_parent._parent.setone.clicked = true;
}

Thanks,
Matt

Change Image Vertical To Horizontal
Does anybody knows how it can be done the effect in http://www.darklittlesecret.com/ in photography, when you change from an horizontal photo to a vertical one and via versa?

[fmx/f8] How Do I Change Submenu From Horizontal To Vertical?
Hi, fellas.

I'm working on a menu system for our website - the menu, as is, is similar to the one found on macromedia.com (the main menu and the submenu laid out horizontally across the screen). how do i make it so that the submenu is vertical and located under the appropriate menu heading? Here's the AS that I used:


Code:
_global.navXPos = 20;
var root_mc:MovieClip = this;
//

navButton("home_mc", "Home", "default.htm");

var solutionsSubNav_array:Array = new Array();
solutionsSubNav_array.push({instance:'as_mc', txt:'Answering Solutions', href:'as.htm'});
solutionsSubNav_array.push({instance:'restaurant_mc', txt:'Restaurant Order Taking', href:'restaurant.htm'});
solutionsSubNav_array.push({instance:'government_mc', txt:'Government Entities', href:'government.htm'});
solutionsSubNav_array.push({instance:'corporate_mc', txt:'Corporate', href:'corporate.htm'});
solutionsSubNav_array.push({instance:'business_mc', txt:'Small Business', href:'business.htm'});
solutionsSubNav_array.push({instance:'property_mc', txt:'Property Management', href:'property.htm'});
solutionsSubNav_array.push({instance:'customize_mc', txt:'Customize A Solution', href:'customize.htm'});
navButton("solutions_mc", "Solutions", "solutions.htm", solutionsSubNav_array);

var prSubNav_array:Array = new Array();
prSubNav_array.push({instance:'news_mc', txt:'News', href:'news.htm'});
prSubNav_array.push({instance:'whitepapers_mc', txt:'White Papers', href:'whitepapers.htm'});
prSubNav_array.push({instance:'faq_mc', txt:'FAQ', href:'faq.htm'});
navButton("pr_mc", "Public Relations", "#", prSubNav_array);

var contactSubNav_array:Array = new Array();
contactSubNav_array.push({instance:'contactus_mc', txt:'Contact Us', href:'contact.aspx'});
contactSubNav_array.push({instance:'employment_mc', txt:'Employment Info.', href:'jobs.htm'});
navButton("contact_mc", "Contact", "#", contactSubNav_array);

function navButton(instanceName_str:String, label_str:String, target_str:String, subMenu_array:Array):Void {
var target_mc:MovieClip = root_mc.createEmptyMovieClip(instanceName_str, root_mc.getNextHighestDepth());
var box_mc:MovieClip = target_mc.createEmptyMovieClip("box_mc", target_mc.getNextHighestDepth());
var label_mc:MovieClip = target_mc.attachMovie("navBtn", "label_mc", target_mc.getNextHighestDepth(), {_x:_global.navXPos, _y:0});
label_mc.label_txt.text = label_str;
label_mc.label_txt.autoSize = true;
box_mc._x = label_mc._x;
var txtWidth:Number = label_mc.label_txt._width+27;
var txtHeight:Number = label_mc.label_txt._height+7;
drawRectangle(box_mc, 0xFFFFFF, 50, txtWidth, txtHeight);
box_mc._alpha = 0;
box_mc._y = 1;
_global.navXPos += txtWidth;

box_mc.onRollOver = function() {
var fade_tween:Object = new mx.transitions.Tween(box_mc, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 7, false);
var sub_mc:MovieClip = root_mc.createEmptyMovieClip("subNav_mc", 000);
sub_mc._y = 36;
_global.subNavXPos = 1;
var numSubMenuItems:Number = subMenu_array.length;

for (var i = 0; i<numSubMenuItems; i++) {
var thisSubMenuItem:Object = subMenu_array[i];
var subNavBtn_mc:MovieClip = sub_mc.attachMovie("subNavBtn", thisSubMenuItem.instance, sub_mc.getNextHighestDepth(), {_x:_global.subNavXPos});
subNavBtn_mc.href = thisSubMenuItem.href;
subNavBtn_mc.label_txt.text = thisSubMenuItem.txt;
subNavBtn_mc.label_txt.autoSize = true;

subNavBtn_mc.onRollOver = function() {
var btnWidth:Number = this._width;
var btnHeight:Number = 1;
drawLine(this, 0xC1C1C1, 50, btnWidth, btnHeight+2);
};

subNavBtn_mc.onRollOut = function() {
this.clear();
};
subNavBtn_mc.onRelease = function() {
getURL(this.href);
};

_global.subNavXPos += subNavBtn_mc._width+10;
}

new mx.transitions.Tween(sub_mc, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
};

box_mc.onRollOut = function() {
new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.None.easeNone, 100, 0, 7, false);
};

box_mc.onRelease = function() {
getURL(target_str);
};
}

function drawRectangle(target_mc:MovieClip, fillColor:Number, alpha:Number, width:Number, height:Number):Void {
with (target_mc) {
beginFill(fillColor, alpha);
moveTo(0, 0);
lineTo(width, 0);
lineTo(width, height);
lineTo(0, height);
lineTo(0, 0);
endFill();
}
}

function drawLine(target_mc:MovieClip, fillColor:Number, alpha:Number, width:Number, height:Number):Void {
with (target_mc) {
beginFill(fillColor, alpha);
lineStyle(1, 0x000000, 50);
moveTo(-1, 3);
lineTo(0, 2);
lineTo(width, 2);
lineTo(width+1, 3);
lineTo(width+1, height+13);
lineTo(width, height+14);
lineTo(0, height+14);
lineTo(-1, height+13)
lineTo(-1, 3);
endFill();
}
}
thanks very much.

Need To Change Horizontal Getlimits GetBounds To Vertical
I used the following tutorial to create a horizontal movie
http://www.kirupa.com/developer/acti...able_masks.htm

Now I am trying to modify my file to have it work on vertical images.

The AS for horizontally scrolling camera focus


Code:
onClipEvent (enterFrame) {
getlimits = _root.normalpic.getBounds(_root);
//get the limits of the normal pic movie
if (_root._xmouse>=getlimits.xMin && _root._xmouse<=getlimits.xMax && _root._ymouse>=getlimits.yMin && _root._ymouse<=getlimits.yMax) {
this._x = _root._xmouse;
}
}
I tried just changing every x to y and vice versa but it got a little wacky

Horrizontal Custom Scrollbars .,. Can I Change Vertical Code For Horizontal
hi if any of you use Itunes youll know there is a sort of jukebox scroller


i just want to create the horrizontal s.b. can i just change some of {this} code to make it horizontal{ive uploaded what i have so far}

Help With The Vertical Scroll
i am trying to use the vertical scroll fla i downloaded from this website....but i do not know how to make that when you press certain button you go to certain page...

at the layer"variables & backdrop" i have this:

// ------------------------------------------------
// total menu items
ti = 22;
// ------------------------------------------------
// ------------------------------------------------
item1 = "Datos Personales";
item2 = "Datos Académicos";
item3 = "Experiencia Laboral";
item4 = "Entornos";
item5 = "Trabajos";
item6 = "Datos de Interés";
item7 = "Contacto";
// what to do with YOURs?
// remove the above LOOP (which creates dummy variable names.) START at "0"!!!!! Create variables named item0="blah", item1="test", item2="and so on..." and you're set! Look at the button action. It is currently set to GETURL and load a "swf" file with the same name as the button you just clicked on into a placeholder (which does not exist in this demo).

i only got that when i press the button it takes me to "item1.swf" (i file i created) but it doesn´t matter the button i am pressing....everyone takes me to the same place,....i want that each different button takes me to diferents places.......at the layer menu, there are a few movie clips at the one called bt+txt2 i have this action:

on (rollOver) {
/:text = ..:text;
}
on (rollOut) {
/:text = "";
}
on (keyPress "e") {
// DO SOMETHING
}
on (release) {
}
on (release) {
loadMovieNum("C:\WINDOWS\Escritorio\C DESIGN\flash\item1.swf", 0);
}

please help me cause i really do not know how to get it.....

Vertical Scroll Bar
www.baron-baron.com ->fashion-> calvin Klein -> collection

Please go thru the above navigation..
Here you can see the horizontal navigation... if you observe, all the images are with bit transparency, when we select a image it comes in the middle with clear view and shows a bigger view.

But here i need a vertical scroll with the same above concept

Is there any one to help me with the script

Thanks in advance

Vertical Scroll
I'm sure everybody has watched a movie one time or another, at the end of a movie there are the credit that scroll vertically. Has anybody ever done that in flash and if so could you pass on to me a few tips on how to do it???

Looking For A Simple Vertical Scroll Bar
I downloaded a "simple" scroll bar from the download fla section. There is very minimal code, yet when I try to incorpoate it into my movie the text will not scroll. I have to put this scrolling bar on a different Scene, not on the parent Scene and I think the code is confused, it is possibly still looking for the text on the parent Scene.

If anyone is interested in looking at the code let me know, I can email the file to you. Like I said, the code is minimal, yet I can't find where anything needs to be changed.

If anyone knows of a simple vertical scroll bar out there that will work in a Scene (I have to set up 16 different Scenes) please let me know.

Thanks!!

Flash 4 :: Vertical Scroll
Trying to dumb down the version of flash required for a vertical scroller to use flash 4... loading the text is no problem and I could use the .scroll and .maxscroll to autoscroll the text, but it looks choppy...

So what I am trying to do is load the text into a textfield in a moveclip. Then scroll that clip behind a mask, increment the _y position...etc...

The problem I come across is that with my dynamic text field, the text is loading, but the movie clip which houses it is not resizing... so the text gets cut off... attempting to increase the height, only seems to scale the text... anyone else come across this problem or something similar?
[Edited by rudejake on 09-17-2002 at 04:26 AM]

Vertical Scroll Problem
I am trying to convert a horizontal image scroller to a vertical one without success. I thought I way clever changing all the 'x' values to 'y' but i'm still having problems. Can anybody help.

Problem With Mcs And Vertical Scroll
I am currently a problem on a site I have been working on with the vertical scroller. Everything works fine on it's own but as soon as you convert the buttons to a movie clip the main code for the images to show up no longer works.

I need all 18 buttons to be part of the movie clip. When the buttons aren't combined as a mc and clicked on, a larger image appears. The issue I'm having is when I combine all the buttons as a mc for scrolling purposes, the code on the buttons to have the larger image appear, no longer works. I need all of the buttons to be part of a single mc so that I can reference all of them for the scroll.

I have tried everything I can think of but there is something I must be missing. It could be something in the hierarchy of the code but I am not sure.

Could someone please take a look at the fla and let me know what I could be missing?

Test2

Movie Scroll Vertical Help
Hello, I'm going nuts trying to figure out How to make a movie scroll vertical. I've looked though alot of movies and been reading the actions and trying to comprehend what it is that I need to do. I just cant seem to get mine to work. Example of what i want is

http://www.pixelranger.com/

The Home news box how the movie clip is scrolled, and Im not sure how this is done.

Please help

Vertical Scroll Navigation
Hi Guys,

I am trying to make a vertical scrollable navigation since I have limited vertical navigaton space in my movie. Somehow there is a problem and it doesn't work as it should. could somebody be kind enough to help me and make it work.


Thanks.
Umesh

Vertical Scroll Menu
I’m trying to make a vertical scroll menu in flash. It’s set up only to scroll when the user click a thumbnail button below.

Here is my script for making the scrolled movie clip.


Code:
// Scroll Variables
var pictureCount:Number = 2; // Number Of Pictures
var scrollSpeed:Number = 20 // Scroll Speed
var currentPosition:Number = 0;
var sendPosition:Number;

// Reference Scroll Window Path
var picturePath = _root.scrollWindow_mc.pictures_mc

// Attach Pictures Into pictures_mc
for(var i:Number = 1; i<=pictureCount; i++) { // Loop Count Based On pictureCount
var pictureWidth:Number = picturePath._width;
trace(pictureWidth);
// Attach Pictures Loop
picturePath.attachMovie("furniturePic_"+i,"furniturePic_"+i, i,"furniture_"+i);
// Set The X Position
picturePath["furniturePic_"+i]._x = pictureWidth; //pictureWidth; // X Position
picturePath["furniturePic_"+i].positionValue = picturePath["furniturePic_"+i]._x;
}

// Scroll pictures_mc
function scrollImages() {
// If currentPosition is less then sendPosition
if(currentPosition < sendPosition) {
picturePath._x -= scrollSpeed;
if (currentPosition <= -225){
delete this.onEnterFrame;
} else {
onEnterFrame = scrollImages;
}
} else if (currentPosition > sendPosition) {
delete this.onEnterFrame;
} else {
delete this.onEnterFrame;
}
_root.currentPosition = picturePath._x;
trace(currentPosition)
}
I only have two button functions right now but I will be adding more later.

How can I get the scroll Image function to scroll to the correct image and animate it with ease-in and ease-out?

I am having trouble with getting the scroll to animate with ease-in and ease-out.

Help With Vertical Scroll Menu
I'm creating a small image gallery that is run off an XML file. I have everything importing into Flash just fine but I need some help making my row of thumbnails scroll up and down when a user mouses over the up/down buttons. I'm not looking to have an infinite scrolling to the top and to the bottom depending on which button is moused over. I'm also having a problem placing the first thumbnail at the 0 point of my thumbnail_mc....incase anyone has any suggestions. Any help/suggestions/advice with either of these two issues would be greatly appreciated. I've attached my source .fla and my XML file. The file is saved as MX04pro format. Thanks for any help.

Simple Vertical Scroll Bar
Hello friends.

i need you to show me how can i make a simple vertical scroll bar for my site. i have one movieclip masked up and the scroller. i wrote an startDrag() function for that last one, but im having problems trying to figure out how to make the container move...

here is an example of what i got:



thanks a lot for the help.

Vertical Scroll For A TextArea
Hi guys,

I have a Textarea on the stage that gets the text from an external file by using the LoadVars.

My plan is to make a textarea that scroll without buttons and without stopping (for example, like the end credits of a movie).

in order to do so, i use the following script:

Code:
//the "flag" variable sets false on RollOut, true on RollIn, for reading purposes.
//"cred" is the external file variable, containing the text for the TextArea
this.onEnterFrame = function() {
if (flag!=true){
if (cred.scroll<cred.maxscroll){
cred.scroll+=1;
}
else {
//when the scroll property is set to 0 the text starts again from line 1
cred.scroll=0;
}}}
ok now here's the problem: even if the scroll property is set to +1 (the lowest positive valor) the scroll is far too fast.
Since i avoid using methods like moving the _y (because in my experience it overloads the cpu, slowing all movie animations), i don't know what to do here.

Did any of you have a suggestion for me in order to slow the scroll, or even a better idea for making this vertical scroll works?

Thx for reading this,
Mith84

Can Someone Help Me With A Vertical Scroll Issue?
I'm using Kirupa's thumbnail tute (http://www.kirupa.com/developer/mx2004/thumbnails3.htm) and want to modify it so that the thumbnails scroll vertically instead of horizontally.

I've got everything changed except the one last CRUCIAL part: the vertical scrolling.

Here is where I've gotten so far:
http://208.131.133.122/gallery/thumbnails.html

The 1.2 MB Flash and xml zipped file can be downloaded from here: http://208.131.133.122/gallery/thumbnails.zip.

ALL help would be much appreciated.

Thanks

How To Eliminate Vertical Scroll Bar
sample:

http://www.creditron.net/

I know it may be not really a Flash problem but how to obtain that kind of effect when the window to the some point - horizontally, has no scrollbars even if the content seems to be longer than the window’s current size? and some text is matching the new size to some point?

or how to eliminate vertical scroll bars? I tried "scroll bar=no" in notepad, but it did not work.

Thank you

AttachMovie & Vertical Scroll
Hi all!

Ok here's the deal

I attach movieclips from the library dynamic and make rows of 3. How can i make them scroll vertical with hitTest()? The only thing i know is how to make the mask... lol

Here is the code:


Code:
var gamesData:XML = new XML();
gamesData.ignoreWhite = true;
gamesData.load("xml/games.xml");

gamesData.onLoad = function(bSuccess:Boolean):Void {
if (bSuccess) {
var xmlNode = this.firstChild.childNodes;
var spacing = 210;
var xPos = 0;
var yPos = 0;
for (var i = 0; i<xmlNode.length; i++) {
var id = xmlNode[i].attributes.id;
gHolder.attachMovie("game", "gameHolder"+i, gHolder.getNextHighestDepth());
gHolder["gameHolder"+i]._x = (i%3)*spacing;
gHolder["gameHolder"+i]._y = Math.floor(i/3)*90;
gHolder["gameHolder"+i].picture = loadMovie(xmlNode[i].attributes.jpg, gHolder["gameHolder"+i].getNextHighestDepth());
gHolder["gameHolder"+i].gametitle.text = xmlNode[i].attributes.gamestitle;
gHolder["gameHolder"+i].gamedesc.text = xmlNode[i].attributes.desc;
gHolder["gameHolder"+i].onRelease = function() {
getURL("games.php?id="+id+"", "_self");
};
}
} else {
trace("error");
}
};

stop();

Someone Please Help Me With This Vertical Scroll Issue
I'm using Kirupa's thumbnail tute (http://www.kirupa.com/developer/mx2004/thumbnails3.htm) and want to modify it so that the thumbnails scroll vertically instead of horizontally.

I've got everything changed except the one last CRUCIAL part: the vertical scrolling.

Here is where I've gotten so far:
http://208.131.133.122/gallery/thumbnails.html

The 1.2 MB Flash and xml zipped file can be downloaded from here: http://208.131.133.122/gallery/thumbnails.zip.

ALL help would be much appreciated.

Thanks

Xml Photogallery With Vertical Scroll
I'm searching the forums and am pretty sure I found a thread a while back that had an example of a simple xml photogallery (no thumbs) with a vertical scrollbar but can't seem to find it. If anyone knows where it is that would be great!

Why Vertical Scroll Bar On Browser
Hi,

If you hit this site

http://test420.biz/sam2333/main.html

I don't know why both in IE and NS, i get long vertical scroll bar opened even though size of flash move is height 400px and I have nothing else on the page.

Thanks

Horizontal Scroll - Please
I need to create a horizontal scroll but I'm having some problems. I create a MC instance and I put these actions in it:

onClipEvent (enterFrame) {
movie_width = 740;
scroll_width = this._width - movie_width;
scrollbar_width = movie_width - _root.drag._width;
proportion = scroll_width/scrollbar_width;
this._x = proportion * _root.drag._x * -1;
}

A button inside another MC instance (drag) has the following action:

on (press) {
startDrag (/:this, false, 259, 165, 469, 165);
}
on (release) {
stopDrag ();
}

My doubt is: how I can determinate the beginning and the end of the scroll area?

Please, any help will be welcome!

Horizontal Scroll
I'm trying to do a horizontal scroll in my flash movie. the tutorial i found - http://www.flashkit.com/tutorials/In...87/index.shtml is pretty much want, just rotate it 90 degrees CCW. i know basic actionscript and tried messing around with it, but couldn't get it to work. what needs changing in order to make it scroll horizontal?

- thanks, Ben

onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);
top = bounds.yMin+(scroller._height/2);
bottom = bounds.yMax-(scroller._height/2);
function updateScrollbar () {
content._y = -(((scroller._y-top)/diff_y)*(content._height-bound_box._height));
}
friction = 0.90;
}
onClipEvent (mouseDown) {
if (scroller.hitTest(_root._xmouse, _root._ymouse)) {
startDrag ("scroller", false, scroller._x, top, scroller._x, bottom);
scrolling = true;
}
}
onClipEvent (mouseUp) {
stopDrag ();
scrolling = false;
}
onClipEvent (enterFrame) {
if (scrolling) {
updateScrollbar();
newY = scroller._y;
yspeed = (newY-oldY)*0.50;
oldY = newY;
done = false;
} else if (!done) {
oldypos = scroller._y;
newypos = oldypos+yspeed;
if (yspeed<-0.2 || yspeed>0.2) {
yspeed *= friction;
} else {
yspeed = 0;
done = true;
}
if (newyposbottom) {
yspeed = -1*yspeed*friction;
newypos = bottom;
}
scroller._y = newypos;
updateScrollbar();
}
}

Horizontal Scroll
There any way to do an horizontal scroll in Flash?

I dont like the idea to do it in HTML whit Iframes etc...

Horizontal Scroll Bar
I am trying to create a horizontal scroll bar that will scroll through about 20 buttins.

I need it to go forward and backwards.

Also, when it scrolls to the end I want it to loop back to the beginning.

I want it to also do this when it gets to the end going the opposite direction but loop to the end of the clip.

Make sense?

I want it to scroll when on press and stop scolling on release.

Here is an asci representation of what it would look like...

< = Left button

> = Right button

1, 2, 3, etc. = buttons to be scrolled through

Would look like this...

< 1 2 3 4 5 >

Does that make sense?

So when you press "<" I want "1,2,3,4,5" to scroll to "6,7,8,9,10" and so on and so forth.

Any help would be greatly appreciated. This one of my last hurdles on this project. Can't wait to finish it!

Thanks in advance!

Robert

Horizontal Scroll Bar
hi guys, I need help with creating a horizontal scrollbar. does anyone have a link to a fla?

i tried looking through the movies on flashkit, but i couldnt find anything.


thanks in advance for your help!

Greg

Scroll Horizontal
I would like to know if there is a way to scroll a listbox component horizontally.

Tips are welcome.


Thanks very much in advance

Horizontal Scroll?
Hey Guys,
Can someone point me to a tutorial or in the right direction for me to learn how to cause several layers to scroll to the left or right at different speeds...ie http://www.bestdressedkids.com click on the nav arrows on the bottem to see the effect.
Many Thanks!
-FWEB

Horizontal Scroll
Hi,
I am trying to set up a horizontal scroll, however I am not too sure why it is not working! please help! I have attached a copy of my code here...please have a look.
Thank you so much.

Horizontal Scroll Bar
I just created a horizontal scroll bar and it works great except when u click and drag the scroll button it jumps up 1 pixel. Why is it doing this? Here is a copy of the file. Thanks.

Horizontal Scroll?
is there a way to disable just the horizontal srcoll in dreamweaver, my flash files is going to be very long, but i only want to show a portion of it.


thnx

Horizontal Scroll
I read the tutorial here on Flashkit to scroll a movie clip. The code is to scroll vertically. I have been trying my best but can not figure out how to switch it to scroll horizontally. I figured I could just change all the y's to x's and the heights to widths but it doesn't seem to work.

Here is the code


onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);
top = bounds.yMin+(scroller._height/2);
bottom = bounds.yMax-(scroller._height/2);
function updateScrollbar () {
content._y = -(((scroller._y-top)/diff_y)*(content._height-bound_box._height));
}
}

onClipEvent (mouseDown) {
if (scroller.hitTest(_root._xmouse, _root._ymouse)) {
startDrag ("scroller", false, scroller._x, top, scroller._x, bottom);
scrolling = true;
}
}

onClipEvent (mouseUp) {
stopDrag ();
scrolling = false;
}

onClipEvent (enterFrame) {
if (scrolling) {
updateScrollbar();
}
}



Can anyone tell me how to make this so it will horizontally scroll my clip.

Thanks

-Brian

Horizontal Scroll
i hae finally got this code to work... (that is the good part) my only concern is that when the page loads on the website..that bar (navigation scroll) is scrolling, then it stops. I would like for it to be static when the page loads, then when the user places thier mouse over the bar, then it will scroll let and right (this part is working)

when itest it in dreamweaver (f12) it is working fine, but it is not until i upload it liv and it is scrolling.

so my question is what do i need to do to make sure it is not scrolling when the page loads.


here is the site:
http://bellaniaclothing.com/test/aboutus.html
if you can help me, please let me know and i can send you the fla file, it won't allow me to load

Horizontal Scroll Bar , Please Help
Hey,

I need to make a custom horizontal scroll bar , and there should be a draggble bar not just 2 arrows. and that bar showed control the frames so when i move it to the right it goes to the next frame , and when i move it to the left it goes to the previous frame.

if someone could explain how this is done or if there is an fla i can look at . that would be great.


Thanks a lot!

Horizontal Scroll
how to make horizontal scrollbar

[F8] Horizontal Scroll
Hello,
Does anyone know how to move a movie clip 100 pixels over the right or left every time a next and previous buttons are clicked? I also want an ease effect to the motion of the movie clip. Any ideas?

Horizontal Scroll
Hey guys

I am working on a photographers portfolio right know, and I really like this horizontal scroll and would like to know how this effect has been made

http://graphictherapy.com/index2.html

Can anyone of you help me, or give me a link to a tutorial?

Thx in advance

Horizontal Scroll?
ok, i want to make a horizontal scroll . . . like this one(http://www.actionscript.org/tutorial...ct/index.shtml), but instead of having it scroll up and down, i want it to scroll side to side(left to right and vice versa) HOW would i do this??

Horizontal MC Scroll
Hi, How would I get an MC to scroll a specified distance horizontally so for example I could have an MC 900 px wide but with a 300 px viewing area and a next and previous button and every time you hit next it scrolls 300 px and then knows not to scroll anymore once the MC is at it's end. Would there be a way to do this so I could have one script that would be able to deal with MCs of any width?

Horizontal Pan/Scroll
Hi guys,

Here is my .fla (www.sheisnotdesign.com/hmovement.fla)

Firstly, I have searched the forums high and low for my answer to no avail - so please help! This is driving me nuts!

I want my image to start on the screen (no black screen!) and horiztonally pan/scroll across in a loop. What happens in the fla I have now is that the loop contains gaps when it stops and starts again - how can I make it seamless? So it looks like a long horizontal scroll of a huge image?

I have seen this done many a times - but cannot work out the changes I need to do it.

Any help would be much appreciated.

Help With Horizontal Scroll Bar S.O.S
Hi there!
I am looking for a way to INCLUDE a horizontal scroll bar on this tutorial:
http://www.kirupa.com/developer/mx/listbox.htm
Can anyone help me, pls?

Cheers.
Thanks a lot.
Leo

Horizontal Scroll
Hello friends!
I'am a little OT but I hope to find help.

I must create a site (without flash) like this:
http://www.yamodesign.com/graphiste-...ner-flash.html

Navigation (with click on anchor) left to right and not up top down.
I can't use flash.... and I think to use ajax... but my knowledge of js is very poor, I have find this example (but with classic scrool)

http://www.cross-browser.com/x/examp...inscrollto.php

Do you know site with horizontal navigation? I must see an example!

THANKS to all.
Andrea

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