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




[F8] Horizontal Scrollbar Works, But Buttons On The Scrollbar Don't?



I've done a scrollbar like this one:
http://www.kirupa.com/developer/mx/infinite.htm
It works fine.

However, I want the individual buttons (button1, button2, etc.) on the scrollbar to load an image from my library whenever they are pressed. I've loaded an MC (content_mc) above the scrollbar for which the images will be seen, and added the images to each individual frame. I used the actionscript from my last menu which works great, but this one with the scrolling MC menu does not work.


Code:
content_mc.stop();
speed = 3
target = button1._y;
for (var i = 1; i<4; i++) {
this["button"+i].pageNum = i;
this["button"+i].onPress = function() {
target = this._y;
content_mc.gotoAndStop(this.pageNum);
};
}
this.onEnterFrame = function() {
current._y += (tagert-current._y)/speed;
};



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-26-2007, 03:09 PM


View Complete Forum Thread with Replies

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

Horizontal Scrollbar?
I have a movie that envolves scrolling. I have it set up so that when the user clicks a section in my navigation, the screen scrolls to that particular part of the movie, and it scrolls properly, this is working. I just need to know how to impliment a scrolbar, so the user can have full control of the scrolling. Sorry for the overuse of the word scroll in this post. Thanks!

Horizontal Scrollbar
Hi everyone, I am looking for a tutorial that explains how I can create a non-scrolling horizontal field, in which i can place images. So if i were to hover over on the right side, it would scroll to the right and vice versa for left; all without any scrollbars visible.
Any help is appreciated. Thanks in advance,

-H

Horizontal Scrollbar
Hi i am having trouble with my horizontal scrollbar in flash.
as of right now it scrolls a continuous image. It works fine
as far as moving left to right but i was wondering if there was
a way i could make it stop exactly on certain points rather than
just relative to where you click on the scrollbar's timeline.

http://a9.g.akamai.net/7/9/8082/v001...ine_sample.swf

my actionscript is below

fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 0;
friction = 0.9;
speed = 4;
x = dragger._x;
top = main._x;
bottom = main._x+mask_mc._width-main._width-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._parent.x, this._y, this._parent.x+this._parent.bar._width-this._width, this._y);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._xmouse>this._x+this._width-this._parent.dragger._width) {
this._parent.dragger._x = this._parent._xmouse;
this._parent.dragger._x = this._x+this._width-this._parent.dragger._width;
} else {
this._parent.dragger._x = this._parent._xmouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._x>=x+bar._width-dragger._width && d == 1) || (dragger._x<=x && d == -1)) {
clearInterval(myInterval);
} else {
dragger._x += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 100, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 100, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
someVar = dragger._x;
otherVar = main._x;
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dx) == 0 && drag == false) {
delete this.onEnterFrame;
}
thirdVar = bar._width - dragger._width;
main._x = otherVar-((main._width-bar._width)/thirdVar)*(dragger._x-someVar);

r = (this._x-x)/(bar._width-this._width);
dx = Math.round((((top-(top-bottom)*r)-main._x)/speed)*friction);
main._x += dx;
};
};

Horizontal Scrollbar
HI,

http://www.kirupa.com/developer/flash8/scrollbar9.htm

See this link. ActionScript code is avaiable here. How can make it a horizontal scrollbar ?

Horizontal Scrollbar
Hi everybody...i want to create a simple horizontal scroller for a movieclip but i can´t find any good tutorials for it...im new at this and i was wondering if someone could point me to some nice tutorials for this...all i find is vertical scrollbars :S

thanks

Horizontal Scrollbar
Nope, not the most original question. But where to find a decent script for scrolling from left to right, right to left? Any tips much appreciated!

This Horizontal Scrollbar...how?
hello.

have anyone a idea how i can realize this horizontal scrollbar which display the imagenumbers?

http://www.firstbornmultimedia.com/#...folio/preview/

i hope that somebody can help...
greets from karoshi

Horizontal Scrollbar
Hey!
I've tried to use the "Simple Custom Scrollbar" tutorial to create a horizontal scrollbar instead of the vertical.
I've changed the defenitions like this:

scrolling = function () {
var scrollWidth:Number = scrollTrack._Width;
var contentWidth:Number = contentMain._Width;
var scrollFaceWidth:Number = scrollFace._Width;
var maskWidth:Number = maskedView._Width;
var initPosition:Number = scrollFace._x=scrollTrack._x;
var initContentPos:Number = contentMain._x;
var finalContentPos:Number = maskWidth-contentWidth+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._x;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._Width-scrollFaceWidth+scrollTrack._x;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentWidth-maskWidth)/(scrollWidth-scrollFaceWidth);

scrollFace.onPress = function() {
var currPos:Number = this._x;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._x);
contentMain._x = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x+speed<maskedView._x) {
if (scrollFace._x<=top) {
scrollFace._x = top;
} else {
scrollFace._x -= speed/moveVal;
}
contentMain._x += speed;
} else {
scrollFace._x = top;
contentMain._x = maskedView._x;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRollOut = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x-speed>finalContentPos) {
if (scrollFace._x>=bottom) {
scrollFace._x = bottom;
} else {
scrollFace._x += speed/moveVal;
}
contentMain._x -= speed;
} else {
scrollFace._x = bottom;
contentMain._x = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentWidth<maskWidth) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();


I put the "Width" instead of the "height", and "x" instead of "y".
What I've got is when I push on the "scrollFace" button it slides but disappears immidietly, and the the image (which is "movieclip" as well) beneath the masked area freezes.

I'd like to know what's wrong with the script, if anyone of you can help ...
* In addition - I have to make this scrollbar move from right to left - Is there any additional defenitions I must concern?

Thank you!

Horizontal Scrollbar
guys... I desperatley need for help...
I'll make some reference to my destination:
I need an Horizontal scrollbar which turn from right to left, as the content underneath the masked area would turn from right to left the same with the scroll button.
Thanks a lot!

Horizontal Scrollbar
Hi, I want to make a very long movieclip (about 2000 pix width) and I want to scroll it from left to right (and back) on my stage (which is 760 width). I want a horizontal scrollbar below it, but at the same time I want the movieclip to scroll relatively to the position of the mouse...

an example of what i'm talking about can be found here: www.marcjacobs.com At the top of the flash menu click marc jacobs and automatically the womens fall collection will load.

The way that collection can be scrolled is what i am looking for. But I have no idea how its made...
Can someone help me out?

Thanks!

Horizontal Dragging Scrollbar
I have a large, horizontally oriented image that I want the viewer to be able to drag a scrollbar to see the masked portion (off the site edges). I've looked through the tutorials, but couldn't find a horizontal one for graphics (MC, I assume). I can make buttons that advance to a particular point, but I'd like the viewer to be able to control it. Thanks.

Add Horizontal Scrollbar To Listbox?
Does anyone know of a way to do this? I'm using MX. Thanks for any help!

Horizontal Scrollbar For An Image
I've got 2 parts on my screen, an upper and a lower-part, both show a portion of a long rectangle, (that portion is masked so it's showes)
I wanna make a horizontal scrolbarr betweet de upper and lower part, so you can scroll and see the other parts of the long rectangle appeaar in de maskes portion

Somebody a clue how to do this, I tried components, but they failed

ScrollBar UI Component How To-Horizontal
in flash MX....

How does the scroll bar UI Component work horizontaly and what would one use it for?

I cannot get it to work horizontal true.
I drag the scroll bar into the lower portion of a dynamic text box and the scroll bar snaps to the bottom horizontaly set to true but when I test movie it does not work.



I have a text field that I want to scroll, but I do not have enough room on the side. So I am trying to put a scroll bar at the bottom and if it works, I then plan on changing the skin of the arrows to point up and down.

Am I on the right track?????

Please help!!

How Do I Flip This Scrollbar Horizontal?
I want to use a scroll like Drag and Drop Scroller with buttons v2 (http://www.flashkit.com/movies/Scrip...3033/index.php) for scrolling a row of thumbnail buttons. How can I flip it from vertical to horizontal?

Horizontal Scrollbar Agony
I've done many searches and found one thread with probably what I needed but may not work in my situation.

My situation is this; I have a swf that is created from XML data. Images and text. You're average horizontal portfolio navigation.

The problem that I have is that the portfolio scrolls left and right with mouse_over which is fine but it responds to the mouse everywhere. If I'm trying to navigate to another page and I move the mouse up to the top navigation, the scrolling portfolio is still responding to it since I'm have an eventlistener on the stage.

Preferably I would use a scrollbar but that's more than I can do myself. At the very least I would be happy with placing a transparent object on top of the scrolling portfolio and use that as the "hotspot" but I couldn't get that to work, either.

The code below is what I use to get the loaded swf to scroll horizontally:


ActionScript Code:
var elasticity:Number = 10;

var posCurrent:Number = this.x;
var posNew:Number = - (stage.mouseX * (this.width-990)) / 990;

this.x = Math.round(((posNew - posCurrent) / elasticity) + posCurrent);


Not my code, I think I got this from another User on this forum. That code is in frame 2 and frame 3 tells the mc to gotoAndPlay(2); so it's looping.

The code in frame 1 is loading the XML data.

Any ideas on how to make it so I have another object as the hotspot or help with a scrollbar?

Sorry, I'm about a month in to as3. After years of no as, at all.

Horizontal Scrollbar In Combo Box
hello all,
i m using a combobox component in my application,i want to show a horizontal scroll bar in combox.how can i do this?
please help me .
thanks in advance

Horizontal Scrollbar In Combo Box
hello all,
i m using a combobox component in my application,i want to show a horizontal scroll bar in combox.how can i do this?
please help me .
thanks in advance

Combobox Horizontal Scrollbar
Hello,
Thanks u so much for your reply.i have used this code in my application but it is still not working.
is there any other way?

Horizontal Scrollbar For Images
Hey, I'm wondering how I could get a line of images, spanning horizontally, to fit in a window by having them navigatable with a horizontal scrollbar.

Like:

|`````````````````````````````|
| |````| |````| |````| |````| |``|
| | img | | img | | img | | img | | im|
| |____| |____| |____| |____| |__|
|_____________________________|
|____________(scrollbar)_________|

There would actually be about 10-15 images in this row, but I want the window to be smaller.
Thanks

(Flash MX) Horizontal Scrollbar
Hi everyone, I've been searching countless forums and webpages for a tutorial that will help me create a horizontal scrollbar. I have a bunch of pictures (decals in vector, actually, about 15 of them) that I want to line up one next to the other and have the viewable field on the webpage the scrollbar is on at 550px by 250px. Does anyone know what I am looking for? And if they do, are they willing to help out?

Thanks a lot,
Spencer

Weird Bug With Horizontal Scrollbar, Help Please
I've been playing around with claudio's scrollbar, and I managed to find a similar one that worked horizontally. The drag/scrolltrack part works perfectly, but the left/right buttons seem to lack boundaries. If you roll over them, they just scroll off into infinity. I'm not a master of Flash or anything, and I just cannot seem to figure out what I need to do. Please help!

Here is the actionscript I'm using:


Code:
space = 750;
friction = 2;
speed = 4;
xD = dragger._x;
top = main._x;
bottom = main._x+mask_mc._width- 9785 -space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._parent.xD+this._parent.bar._width-this._width, this._y, this._parent.xD, this._y);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._xmouse>this._x+this._width-this._parent.dragger._width) {
this._parent.dragger._x = this._parent._xmouse;
this._parent.dragger._x = this._x+this._width-this._parent.dragger._width;
} else {
this._parent.dragger._x = this._parent._xmouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._x>=xD+bar._width-dragger._width && d == 1) || (dragger._x<=xD && d == -1)) {
clearInterval(myInterval);
} else {
dragger._x += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onRollOver = function() {
myInterval = setInterval(moveDragger, 0, -.1);
};
down_btn.onRollOver = function() {
myInterval = setInterval(moveDragger, 0, .1);
};
up_btn.onRollOut = down_btn.onRollOut=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._x-xD)/(bar._width-this._width);
dy = Math.round((((top-(top-bottom)*r)-main._x)/speed)*friction);
main._x += dy;
};
};

Horizontal Scrollbar W/ MC Issue
Hullo,

Having some issues with this AS that i've taken from an example tutorial. It originally used a vertical scroller, but I've changed it to horizontal. However, having issues with the 'dragger' itself - not dragging properly or keeping to the 'bar', etc. I wonder if someone could take a look for me?

I've changed the reference from height to width, and swapped the y's for x's, but it aint doing what it should do...

Thanks, Here it is:

fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 4;
x = dragger._x;
top = main._x;
bottom = main._x+mask_mc._width-main._width-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._y, this._parent.x, this._x, this._parent.x+this._parent.bar._width-this._width);
dragger.scrollEase();
};
// Above is where the problem lies ...
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._xmouse>this._x+this._width-this._parent.dragger._width) {
this._parent.dragger._x = this._parent._xmouse;
this._parent.dragger._x = this._x+this._width-this._parent.dragger._width;
} else {
this._parent.dragger._x = this._parent._xmouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._x>=x+bar._width-dragger._width && d == 1) || (dragger._x<=x && d == -1)) {
clearInterval(myInterval);
} else {
dragger._x += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 4, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 4, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dx) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._x-x)/(bar._width-this._width);
dx = Math.round((((top-(top-bottom)*r)-main._x)/speed)*friction);
main._x += dx;
};
};

Simple Horizontal Scrollbar
Hi everyone,

I am trying to create what I thought would be a simple way of displaying images but due to my lack of actionscript experience I'm struggling more than I thought.

Basically I'm trying to create somthing like this:

http://www.balconyjump.com/Artists (just click on any of the artists)

I thought this would be straight forward as I could just load the movie clips externally into a scrollPane (I'm not really bothered how the scrollbar looks as it's quite a retro/lofi design I'm going for) which loads fine but crashes with any kind of preloader I try (both in the main site and the external swfs).

What I would like therefore is some help in creating a really simple scrollbar that works horizontally (with images) so that I can save this as part of the swfs to be loaded externally with a simple preloader combined.

I have tried in vain to adapt the actionscript from the simple custom scrollbar tutorial but as I said I suck at actionscript so it just goes all wierd. In fact if someone could please look at that tut and just flip it that would be soo great.

Thanks guys

Horizontal Scrollbar Problem
Hey!
I've tried to use the "Simple Custom Scrollbar" tutorial to create a horizontal scrollbar instead of the vertical.
I've changed the defenitions like this:

scrolling = function () {
var scrollWidth:Number = scrollTrack._Width;
var contentWidth:Number = contentMain._Width;
var scrollFaceWidth:Number = scrollFace._Width;
var maskWidth:Number = maskedView._Width;
var initPosition:Number = scrollFace._x=scrollTrack._x;
var initContentPos:Number = contentMain._x;
var finalContentPos:Number = maskWidth-contentWidth+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._x;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._Width-scrollFaceWidth+scrollTrack._x;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentWidth-maskWidth)/(scrollWidth-scrollFaceWidth);

scrollFace.onPress = function() {
var currPos:Number = this._x;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._x);
contentMain._x = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x+speed<maskedView._x) {
if (scrollFace._x<=top) {
scrollFace._x = top;
} else {
scrollFace._x -= speed/moveVal;
}
contentMain._x += speed;
} else {
scrollFace._x = top;
contentMain._x = maskedView._x;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRollOut = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x-speed>finalContentPos) {
if (scrollFace._x>=bottom) {
scrollFace._x = bottom;
} else {
scrollFace._x += speed/moveVal;
}
contentMain._x -= speed;
} else {
scrollFace._x = bottom;
contentMain._x = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentWidth<maskWidth) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();


I put the "Width" instead of the "height", and "x" instead of "y".
What I've got is when I push on the "scrollFace" button it slides but disappears immidietly, and the the image (which is "movieclip" as well) beneath the masked area freezes.

I'd like to know what's wrong with the script, if anyone of you can help ...
* In addition - I have to make this scrollbar move from right to left - Is there any additional defenitions I must concern?

Thank you!

Turn Off Horizontal ScrollBar
How would I go about turning off the horizontal scroll when pulling up a scroll component.

I tried to get a handle on the horizontal scroll policy but cant seem to get it.

her is what Im doing.

Code:
import fl.containers.ScrollPane;


var url:String = "rewards/gettingAroundR.swf";
var url2:String = "rewards/homeCoolingR.swf";
var url3:String = "rewards/homeHeatingR.swf";
var rewScrolHold:MovieClip = new MovieClip();
var rewclip1:Loader = new Loader();
var rewclip2:Loader = new Loader();
var rewclip3:Loader = new Loader();
rewclip1.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler);
var myScrollPane:ScrollPane = new ScrollPane();
myScrollPane.source=rewScrolHold;
function completeHandler (e:Event)
{

myScrollPane.setSize (635, 300);
myScrollPane.move (0, 0);
scrollHold.addChild (myScrollPane);
myScrollPane.source=rewScrolHold;

}
rewclip1.load (new URLRequest(url));
rewclip2.load (new URLRequest(url2));
rewclip3.load (new URLRequest(url3));

rewScrolHold.addChild (rewclip1);
rewScrolHold.addChild (rewclip2);
rewScrolHold.addChild (rewclip3);
rewclip2.y = 304;
rewclip2.y = 304;
rewclip3.y = 824;
the content is less then the scroll size but the horizontal scrollBar is still showing. Thanks for any help

Horizontal Scrollbar And Background Color
Am I missing something here?
When I create a dynamic text field with no border or background, and drag the Vertical scrollbar on it, it's fine.
If I drag the Horizontal scrollbar onto it, the background turns white when output (but fine in flash itself).

Is this just a design limitation/bug? It's not a *really* big deal to me, but makes my textfield just a little less pretty.

Also, I've noticed other posts say their scrollbars auto-snap and resize to the size of the text field. I can't get this to happen. It recognizes the textbox and sets the target to that, but I have to size and position them manually.

Pocket Pc - Hide Horizontal Scrollbar
I want to create a Flash movie that covers the entire available screen of my iPaq Pocket PC running Windows Mobile 2003 with PIE and Flash Player 6.

But no matter what screen dimensions I choose, the horizontal scroll bar always appears on the screen. Is there a way to get rid of this?

I already tried the PIE "fit to screen" option, but when I reload the page again, it shrinks?!

And I know that there are other products out there like FlashAssist and FlashPack, but I prefer to use the native ones.

Vertical Text With Horizontal Scrollbar
I found code for a vertical scrollbar that works without problems. But what I want to do is turn the scrollbar on its side so that when the user pulls the scrollbar right, the text goes up; left, goes down.

Seems simple enough until you realize that the y coordinates and x coordinates get flipped in the process. I went through the code (which I only have a basic understanding of) and changed x's for y's and vice versa but it got too confusing and I was left with a bloody mess in the end.

Does anyone have a sure fire solution to this? I am not getting paid large money for this project and would prefer the quickest and dirtiest fix that you've got. Ideally, a link to an .fla that is already doing what I need.

Much thanks,

RPF

Horizontal Scrollbar On MC--Flash MX 2004
Using Flash MX 2004...need to horizontal scroll...first of all the scrollbar component isn't even listed int he components...

there are no properties to hor. scroll...can't find any info anywhere on this...

any help would be appreciated!

=)
~fit

Horizontal Scrollbar Advice Needed
hi,

although i've been using flash (mx) for a while now i'm still at beginners level (have been doing more image creation than anything else!).

i am making a portfolio website at the moment which i am hoping to do mostly using html, but i want a flash scrollbar at the top of my page, with thumbnails of my images.

i have attached an image of how i would like this to look. can anyone point me in the right direction as i don't really know where to start with this?!

i have found there are loads of tutorials and other threads about scrollbars but nothing is quite what i want and because i'm a beginner i don't really know how to adapt these to what i want!

any help would be excellent. let me know if you'd like more info or if i'm not making much sense!

thanks,

carly

Preventing The Display Of A Horizontal Scrollbar
My movie at http://mymob.free.fr/portfolio.html is wider than most screens. The user sees the start of a strip of photos. An invisible rollover button to the right of the display causes the remaining photos in the strip to scroll into view. So, I don't want the user to be tempted to use the horizontal scrollbar in order to try to bring more of the strip into view. Is there some way (maybe through fscommand) of simply eliminating the horizontal scrollbar when my movie is displayed by a browser?

Preventing Horizontal Scrollbar In Browser
I am trying to come up with a cross-browser way of prevent horizontal scrollbars. I know you can use javascript to open up a new window without scrollbars, but I've seen another method of doing it which I'd prefer. If you go to http://www.uncommonthinking.com you'll see they have a splash page which you click to open their main site. When you get into their main site, no matter what the width of the browser window is (or what browser you're using), no horizontal scrollbar ever appears. This is the method I'd like to use, but I have no idea how this site is accomplishing it.

They do have a small javascript code in the main section of their site. However, I'm fairly sure that this code isn't affecting the scrollbars. So, my question is, can this be accomplished in flash? Is there actionscript to prevent the horizontal scrollbar from appearing in a browser window?

Scrollpane Horizontal Scrollbar Position
ok, i'm stupid. i can't get the code to work to put my horizontal scroll bar on top of the scroll pane, or anywhere else. can someone please help. i'm new to actionscript, for please forgive my ignorant mistakes.

import mx.containers.ScrollPane;
on (complete) {
wak.hPosition(14);
}

yes, wak is my scrollpane. this is lame. i've looked all over the internet for help on this...

THank you.

Vertical Textscroll With Horizontal Scrollbar
Hello everybody,

I would like to scroll dynamic text vertical with a horizontal scrollbar. How do I do that. When I set horizontal is true in the property inspector the text is also scrolling horizontal.

Kind regards,
Donald

Horizontal Scrollbar (or Word Wrap)
Ok so im developing a site in flash for the first time and I am having a problem. I got the dynamic text box to read from a .txt file however I can only figure out how to make it scroll up and down. The problem with this is that some lines of the text file are too long and are going off screen. I was wondering if there is any way to get it to wrap the text or add a horizontal scroll bar

http://www.kitchenpirates.com/progressus/ <----Current version

Ill add the .fla too (please dont judge me as its my first time doing something like this in flash I know there are some errors )

http://www.kitchenpirates.com/progre...ughOutline.zip<---fla
http://www.kitchenpirates.com/progressus/test.txt <---The text file its reading

GetURL, Horizontal Scrollbar Gallery
I’m trying to get my horizontal scrollbar gallery images to link to different url’s, but having some trouble getting more than one url to open, they all link to the same site. Any idea on what I’m doing wrong? Thanks so much for your time

xml code
as2 code

To Convert From Vertical To Horizontal Scrollbar
Please see
http://actionscript.org/forums/showthread.php3?t=84334

Component List : Horizontal ScrollBar
Hello,
i have on my scene a component List and i would like to activate the horizontal scrollBar :

Code:

import fl.controls.List;
import fl.controls.ScrollPolicy;
import fl.data.DataProvider;

var dp:DataProvider = new DataProvider();
for (var i:int = 0; i < 10; i++) {
    dp.addItem({ label:"mon label dépasse car il est carrement trop grand !!", data:null });
}

var dg:List = new List();
dg.setSize(150,300);
dg.dataProvider = dp;
dg.horizontalScrollPolicy = ScrollPolicy.ON;
dg.horizontalLineScrollSize = 10;
addChild(dg);

but it doesn't work ! I can see the horizontal scrollBar but its not active... If someone can help me.

Thanks

Stupid Question... The Stage's Horizontal Scrollbar Isn't There
*Before I cause any confusion, I'm not making a scrollbar*

In flash you have the two scrollbars to nagivate around the stage. Well somehow the horizontal one in one of my fla's isn't there, so I can't move the stage horizontally.

How do I fix this?

[F8] Custom Horizontal Scrollbar Help..image Attached
I am making this flash that needs a horizontal scrollbar for each time line. I need some help scripting the buttons and the scrollbar. Please see image attached to understand what I want to do with the flash movie. I already set up the tabs and the only in my flash movie is the scroll function. Thanks

Automatic Horizontal Scrollbar In Component List
Is there a way that the horizontal bar in component list can be automatic? Like the vertical scrollbar it will show when the Height of the component is not enough to show all the items.. Thanks

Horizontal Scrollbar To Rotate Image Sequence Please Help
HI
Experts!
On Layer 1
from frame1- frame20 on each key frame i have one image. ( sequence of images when i run its act like a 3d object moving in 360 degree)

i need a horizontal scrollbar with a drager by which i can drag and go through the keyframe ( from 1 - 20) and view the images.

Is there is a possibility ??
Could you help me to find similar kind of script? or scrollbar??

Where I Can I Get Horizontal Scrollbar To Rotate Image Sequence
HI
Experts!
On Layer 1
from frame1- frame20 on each key frame i have one image. ( sequence of images when i run its act like a 3d object moving in 360 degree)

i need a horizontal scrollbar with a drager by which i can drag and go through the keyframe ( from 1 - 20) and view the images.

Is there is a possibility ??
Could you help me to find similar kind of script? or scrollbar??

Object Oriented Scrollbar Made Horizontal Help?
Hey All,

Thanks in advance for checking this out!

I'm new to flash and looking for a little help with the Object Oriented Scrollbar. I've made it horizontal instead of vertical like Lee. But I'm having problems on the bounds of where the thumb bar can move. It stops half way and won't go back to the zero point (the far left).

I've attached the Fla but I think the problem is in the actions so I'll post that here for quick review:

Code:

import caurina.transitions.*;

var xOffset:Number;
var xMin:Number = 0;
var xMax:Number = sb.track.width - sb.thumb.width;

sb.thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbDown);
stage.addEventListener(MouseEvent.MOUSE_UP, thumbUp);

function thumbDown(e:MouseEvent):void
{
   stage.addEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
   xOffset = mouseX - sb.thumb.x;
   
}

function thumbUp(e:MouseEvent):void
{
   stage.removeEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
   
}

function thumbMove(e:MouseEvent):void
{
      sb.thumb.x = mouseX - xOffset;

      if(sb.thumb.x <= xMin)
         sb.thumb.x = xMin;
      
e.updateAfterEvent();
}



Thanks again for the help!

[AS3] ScrollBar - It Works
Last edited by wraevn : 2008-01-05 at 17:08.
























As I drove into work this morning, I was lamenting that I would yet again have to divine a way to scroll something other than text (Sprites in AS3) since Flash's UIScrollBar can only scroll text (AFAIK).

So I was Googling around a bit trying to find someone else's AS3 scrollbar class, a component, something ala UltimateScroller for AS2, and I discovered this link: AS3 ScrollBar Class.

So I'm thinking, I'm a total moron! I just must've missed this fantastic new component in the CS3 library ... nope. Not there. There's the UIScrollBar, but no plain ScrollBar.

So I threw this bit of code together and voila! There is, in fact, a native Flash component now that can scroll Sprites, MCs etc.! I was elated! Why there's no draggable version is what has me stumped.

So maybe everyone else on the planet knew this but me, but it felt so good I thought I'd share.

You can download a sample fla HERE, or just view the code below.

Have fun! (note you have to have an instance of the UIScrollBar component in your lib. for it to work - it needs the component assets)


ActionScript Code:
import fl.controls.ScrollBar;
import fl.events.ScrollEvent;
 
var mc:RainbowMC = new RainbowMC();
mc.x = (this.stage.stageWidth/2)-(mc.width/2);
mc.y = 80;
 
var mcMask:MovieMaskMC = new MovieMaskMC();
mcMask.x = mc.x;
mcMask.y = mc.y;
mc.mask = mcMask;
 
var sb:ScrollBar = new ScrollBar();
sb.x = mc.x + mc.width;
sb.y = mc.y;
sb.height = mcMask.height;
sb.enabled = true;
sb.setScrollProperties(mcMask.height, 0, (mc.height-mcMask.height));
sb.addEventListener(ScrollEvent.SCROLL, scrollMC);
 
this.addChild(mc);
this.addChild(mcMask);
this.addChild(sb);
 
function scrollMC(event:ScrollEvent):void{
    mc.y = -event.position + mcMask.y;
}

Scrollbar Works In F6, But Not F8
I got this code for a custom scrollbar a while back from someone on gotoAndLearn (can't remember who). The code was created in Flash 6 and works great; however, I need to use Flash 8 and this code does not work in F8. Can anyone please look at the code and tell me why it won't work in 8 ... and what I need to change?

MUCH THANKS!

Code:



var mouseDownDrag:Object = new Object();
var mouseMoveDrag:Object = new Object();
var mouseUpDrag:Object = new Object();



sizeMask = mask._height;
trace(sizeMask)
sizeContent = content._height;
proportion = sizeMask/sizeContent;
scrollBar._height = proportion*sizeMask;
topLimitScroll = mask._y;
bottomLimitScroll = mask._y + mask._height - scrollBar._height;
topLimitContent = mask._y+mask._height-content._height;
bottomLimitContent = mask._y;
content.setMask(mask);

if (sizeContent<=sizeMask) {
   scrollBar._visible = false;
}

function updateScroll() {
   if (pressed == 1) {
      scrollBar._y = _ymouse - difWithMouse;
      if (scrollBar._y < topLimitScroll) scrollBar._y = topLimitScroll;
      if (scrollBar._y > bottomLimitScroll) scrollBar._y = bottomLimitScroll;
   }
   updateAfterEvent();
}

mouseDownDrag.onMouseDown = function()
{
   if (scrollBar.hitTest( _root._xmouse, _root._ymouse, false))
   {
      _root.difWithMouse = _ymouse - scrollBar._y; trace(_root.difWithMouse)
      scrollBar.startDrag(false, scrollBar._x, _root.topLimitScroll, scrollBar._x, _root.bottomLimitScroll);

      this.gotoAndStop(2);
      Mouse.addListener(mouseMoveDrag);
      Mouse.addListener(mouseUpDrag);

      _root.onEnterFrame = function (){
         var scrollMovement = bottomLimitScroll - topLimitScroll;
         contentMovement = Math.abs(bottomLimitContent - topLimitContent);
         percentageMovement =Math.abs(scrollBar._y - topLimitScroll)/scrollMovement;
         finale = borromLimitContent - contentMovement*percentageMovement;
         content._y = content._y - (content._y - finale)/3;
      }
   }
}
mouseMoveDrag.onMouseMove = function() {   
   updateScroll();
}

mouseUpDrag.onMouseUp = function()
{
   
   scrollBar.stopDrag();

   this.gotoAndStop(1);

   delete _root.onEnterFrame;
   Mouse.removeListener(mouseMoveDrag);
   Mouse.removeListener(mouseUpDrag);
}
Mouse.addListener(mouseDownDrag);

weare.onRelease = function() {
   gotoAndStop("WEARE");
}

wedo.onRelease = function() {
   gotoAndStop("WEDO");
}

Horizontal Scrolling Website With Jump Menu (no Flash Scrollbar)
Hi all,

I am trying to find a tutorial or template in attempt to create a sliding site with jump menu similar to this:

http://www.republicademadras.com.br/

I don't know where to start and am looking for any suggestions or help! Please let me know if you can provide any help...my design is just sitting here as I don't know how to program it as i don't use flash enough.

Any help is VERY much appreciated.

Many thanks!

A Scrollbar That Works In Flash 5 But Not 6
In reference to this tutorial: http://www.flashkit.com/tutorials/In...40/index.shtml

I used this script, pretty much verbatim except for graphical changes, and it works perfectly in the Flash 5 player. However, when I play it in Flash 6 player, it allows the scroll bar to be drug around outside of it's boundaries in the strangest thing I've seen. I really am not sure why it's doing this, and could use some suggestions. I'm pretty sure that it's a small A/S change, but I don't know enough to figure it out without a bit of help.

-RCM

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