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




Scrollbar/button



Hey--

Is there any way to use a button as a scroll bar?

or is there a way to have the scrollbar change colors on rollover?

Thanks




View Complete Forum Thread with Replies

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

Working Next Button On Scrollbar?
I have a movie clip scrollbar that scrolls text and images. I'm having a problem and that is that when you scroll the text and images it is so long that it seems that flash can't handle so much information and the last 4 images are all distorted. Because I don't know how to fix this I'm trying to include a next button with an action going to frame 5 but although it does that the scrollbar won't go to the top aqain.

Anyone know
why flash can't handle long scrollbars or
how to make the scrollbar to work so when you hit the next button the scrollbar will have refreshed itself.

Button Under Scrollbar Clicks
a bit of background:
I a dynamically created mc that creates a text field for data that is loaded. I put a function on the mousedown that does a simple javascript alert. I put this inside a scrollpane which was just dropped on the stage in its default form.

*******************************************
the code:

_root.createEmptyMovieClip("tom",2)
_root.tom.createEmptyMovieClip("pbtn",0)
_root.tom.pbtn.createTextField("t",0,0,0,150,150)
_root.tom.pbtn.t.text="lasdjfaisuhpasigjhpasiguhpa sguhapsghasgjhasgjhasgoihasgfohasgfihasfgilasdjfai suhpasigjhpasiguhpasguhapsghasgjhasgjhasgoihasgfoh asgfihasfgilasdjfaisuhpasigjhpasiguhpasguhapsghasg jhasgjhasgoihasgfohasgfihasfgilasdjfaisuhpasigjhpa siguhpasguhapsghasgjhasgjhasgoihasgfohasgfihasfgil asdjfaisuhpasigjhpasiguhpasguhapsghasgjhasgjhasgoi hasgfohasgfihasfgilasdjfaisuhpasigjhpasiguhpasguha psghasgjhasgjhasgoihasgfohasgfihasfgilasdjfaisuhpa sigjhpasiguhpasguhapsghasgjhasgjhasgoihasgfohasgfi hasfgilasdjfaisuhpasigjhpasiguhpasguhapsghasgjhasg jhasgoihasgfohasgfihasfgilasdjfaisuhpasigjhpasiguh pasguhapsghasgjhasgjhasgoihasgfohasgfihasfgi"
_root.tom.pbtn.t.multiline=true
_root.tom.pbtn.t.wordWrap=true
_root.tom.pbtn.t.background=true
_root.tom.pbtn.t.backgroundColor=0xffffcc
_root.tom.pbtn.onRollOver=function(){
_root.tom.pbtn.t.backgroundColor=0xff0000
}
_root.tom.pbtn.onRollOut=function(){
_root.tom.pbtn.t.backgroundColor=0xffffcc
}
_root.tom.pbtn.onMouseDown=function(){
if(this.hitTest(_xmouse,_ymouse,false)){
getURL("javascript:alert('"+this._name+"')")
}
}

_root.bob.setScrollContent(_root.tom)
_root.bob.refreshPane()

*******************************************
the problem:
when the button is behind the scrollbar and the bar is used to scroll(go figure), it clicks the button.

Can anyone think of anything that might be done here?

Scrollbar Button Help Needed...
Hello all,
I have created a scrolling text field using dynamic, html compatible text which is operated by buttons. Currently, the buttons are set to advance and reverse the text on press and release, moving the text 2 lines at a time. Here is the script:

FOR UP:

on (press, release, keyPress "<Up>") {
currentScroll = scrollableText.scroll;
if (Number(currentScroll)>1) {
scrollableText.scroll = currentScroll-1;
}
}

FOR DOWN:

on (press, release, keyPress "<Down>") {
currentScroll = scrollableText.scroll;
if (Number(currentScroll)<Number(scrollableText.maxsc roll)) {
scrollableText.scroll = Number(currentScroll)+1;
}
}

I would like for the user to be able to press and hold the buttons and have the text advance or reverse until the mouse is released. Is there an action script for this?

Thanks!

-Paul

Scrollbar And Button Problems
I have found a scrollbar script that works well in my stage. The problem I have is that I have a movie clip that I attach to the main stage that also has a scrollbar in it. Again this works fine. However when I remove the attached movie clip the original scrollbar does not work anymore. I can't figure out why and I was hoping someone would be able to point me in the right direction.

The other problem that I have is making sure the button behind the attached movie do not work, which I have currently achieved by including a large blank button in the moview clip which blocks out thw whole stage. But this turns the cursor into the "button" cursor across the whole stage, which I do not want.

I would really appreciate any help with either of these problems.

My file can be found here: Deposit files

Button On Custom Scrollbar
I have a custom horizontal scroll bar mc. and I wanna put mc buttons in it so it's like a navigation bar at the bottom of the page that slides R and L. When you click on one if those mc buttons I want the link to load above the scrollbar. But, when I put the button mcs inside the scrollbar mc, the buttons don't work anymore. What is wrong here?

Coding Issue With Scrollbar Up Button
Hi all,

I've made a scrollbar using a Kirupa tutorial for Flash 8 http://www.kirupa.com/developer/flash8/scrollbar.htm

I have several of these on my site, scrolling certain movie clips for certain pages but for some reason, there is a severe coding issue with the 'up' button and I can't understand it as the Kirupa tutorial one works absolutely fine.

If you check out http://spindriftmedia.com/clients/snowy/snowy.php and select the say the 'profile' section, if before you do any scrolling, just press the 'scroll up' button. For some reason, the text goes really blurred and scrolls to way past the bottom of the movie clip. The slider and down button behave perfectly though.

This is the code I'm using:


Code:
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.onRelease = 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;
}
};
scrolling();
Do you by any chance know what is causing this problem? If you need an fla, I can upload one for you to check out.

Thank you very much and I hope to hear from you.

Take care,

Mark

Coding Issue With Scrollbar Up Button
Hi all,

I've made a scrollbar using a Kirupa tutorial for Flash 8 http://www.kirupa.com/developer/flash8/scrollbar.htm

I have several of these on my site, scrolling certain movie clips for certain pages but for some reason, there is a severe coding issue with the 'up' button and I can't understand it as the Kirupa tutorial one works absolutely fine.

If you check out http://spindriftmedia.com/clients/snowy/snowy.php and select the say the 'profile' section, if before you do any scrolling, just press the 'scroll up' button. For some reason, the text goes really blurred and scrolls to way past the bottom of the movie clip. The slider and down button behave perfectly though.

This is the code I'm using:


Code:
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.onRelease = 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;
}
};
scrolling();
Do you by any chance know what is causing this problem? If you need an fla, I can upload one for you to check out.

Thank you very much and I hope to hear from you.

Take care,

Mark

Vertical Image Scrollbar Button
Hi,

I am trying to create a vertical scrollbar made of thumbnail image buttons. I have made the thumbnail buttons, but I can't figure out how to make them on a continuous vertical scroll and still be buttons that link to other pages of a portfolio. Can anyone help me with this? Thank you!

Scrollbar Component - How To Add A Button Over Effect To The Scroller?
Hi, Ive been messing around with this but with no success. I have a scrollpane component in my movie. I want to add a button over effect to the scroller. Does any one know how to do this???? I tried turning the middle bar component into a button but that didnt work????? Any help would be greatly appreciated!!

Scrollbar Component - How To Add A Button Over Effect To The Scroller?
Hi, Ive been messing around with this but with no success. I have a scrollpane component in my movie. I want to add a button over effect to the scroller. Does any one know how to do this???? I tried turning the middle bar component movie into a button but that didnt work????? Any help would be greatly appreciated!!
Here is a good example of the effect i want to get: http://www.becks.co.uk/
thanks

Giving Rollout Effect For Button But In Scrollbar...........
hi all,
sorry to disturb you.
but i am stuck.......
I have a main scene which as a main file as level 0 & i have a movie clip on a layer which as my scrollbar effect & buttons...i want to give rollout for the button how can i give it.......i tried doing on the movie clip but than it stays at one positin bcoz of the scrollbar......can u please help me?? can i give a roll out effect in button symbol it self............or whats the solution...........
thanks a lot.....
amrapali

Prevent Drag Button In Scrollbar From Streching?
Is it possible to prevent the drag button in the scrollbar/scrollpane from resizing in relation to the size of the content?

Scrollbar To Move When Tab Button Is Pressed In A Flash Form
Flash MX
I have created a Flash Form that I have converted to a movie clip that sits inside a Scrollpane and once the user clicks on the Submit button, data is passed to an email.

Problem:
When the user tabs through the form and it gets to the bottom of the scrollpane, the rest of the form is cut off. I want to be able to code for, when the user tabs to a field below the bottom of the scrollpane, the scrollbar automatically moves down. A good example of this, is on this site, on the registration page. When you tab down, the scrollbar automatically moves down.

Thanks in advance.

Unvable To Animate (tween) Scrollbar / Button Components?
Hi fellows,

I have a contact form within a mc (mcContact) that should glide from top to bottom. Ok, it's gliding, but the submit button and the scrollbar. In the author environment (Flash stage) it works, but when I test it with CONTROL+ENTER the button as well the scrollbar keep stucked in the same position of the first frame. Everything is tweened but they keep there, static.

What's going on????

How To Add Scrolling With The Scroll Button On A Simple Custom Scrollbar
Hi,
I made the Simple Custom Scrollbar tutorial over http://www.kirupa.com/developer/flash8/scrollbar.htm ,but can I make the stuff scroll with the mouse scroll ?

Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

Scrollbar Doesn't Work (tutorial: Object-oriented Scrollbar)
(tutorial --> object-oriented scrollbar: http://www.gotoandlearn.com/play?id=71).

I followed the tutorials instructions and this is the code that i have now:

import caurina.transitions.*;

var yOffset:Number;
var yMin:Number = 0;
var yMax:Number = sb.track.height - sb.thumb.height;

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

function thumbDown(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
yOffset = mouseY - sb.thumb.y;
}

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

function thumbMove(e:MouseEvent):void
{
sb.thumb.y = mouseY - yOffset;
if(sb.thumb.y <= yMin)
sb.thumb.y = yMin;
if(sb.thumb.y >= yMax)
sb.thumb.y = yMax;
var sp:Number = sb.thumb.y / yMax;
Tweener.addTween(content, {y:(-sp*(content.height-masker.height)),
time:1});
e.updateAfterEvent();
}

Does anybody see what's going wrong? I'm a beginner beginner, so all could think of to do is check if everything was typed correct. (i double checked instance names and code). But can't seem te get it to work, nothing happens when i preview swf.
No compilers errors and no syntax error. Tweener class is installed properly. PLEASE help me i've been looking for hours now.
If someone could help me, would be great!!

Sorry for my english, thank you for your time.

[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;
};

AS3 - Change Width Of ScrollBar / ScrollPane's Scrollbar
Is there any way to change the width of the AS3 scrollbar component? I've tried changing the width of the skin, but it always snaps to the default width.

Scrollbar (i Already Have It Designed, The Scrollbar Just Don't Know How To Code)
hi guys.

how can i make a scrollbar that slides my movieclip up and down with different drawings i made.

all of the stuff below this sentence will be on top of a movieclip called "portfolio movie clip"

my new movieclip name is "portfoliofill" i masked it because i have like 40 drawings and i don't want it to show on the bottom of the page. (this has all my drawings aligned one after the other below each other. it goes far down the flash program because its 40 drawings.)

i also designed a little line and a bar that slides up and down the line. this movieclip i named "scrollbar". if you open the "scrollbar" movieclip the bar and the line is are on different layers. then i converted the bar into a movieclip and named the movie clip scrollbar.

thanks to anyone who can help

[F8] Help - Scrollbar Appear On The Scene Which Do Not Contain Scrollbar Component
1. I have successfully created multiple scenes with dynamic html text fields and UIscrollbar component.

2. Each scene is a webpage, so I can click on each button to go to corresponding scene.

3. The main page contains no scrollbar component. When I publish on the web, it run perfectly for the first time loading it. However, after I visit other pages (different scene created in F8) and click on "Home" button going back to the main page, the scrollbar component exists on the page which should not contain any scrollbar.

4. I try to give each scrollbar on different scene a unique instance name, and disable it using

Code:
scrollbar0._visible=false;
but it doesn't work. I think maybe I include the actionscript to the wrong place or under the wrong event/action.

5. Any idea of how this happened?

Thanks,
little_poem

Flash Scrollbar Instead Of Browser Scrollbar
Hi all,

What I want to do is replace the browser scrollbar with a flash one when the flash movie is larger than the browser, and I'm using 100% sizes.

I've seen this done, and even when you manually resize the window, the scrollbar adjusts. Any ideas on this? Any tuts? Thanks.

Scrollbar (dynamic Scrollbar Size)
Hi everyone.
I'm making a scroller that scrolls movieclip (text inside). It works quite good but I want to put the final touch on it.

I want that my scrollbar is dynamic in its size (just as browser scrolls or windows scrolls). Then my biggest programming problem comes up, maths

The values that I have is
- How tall is the area there the text shows.
- How tall is the movieclip that the text is shown in
- How tall is the place there my scrollbar is shown.

Someone thats have an idea how to sort this out

Scrollbar (dynamic Scrollbar Size)
Hi everyone.
I'm making a scroller that scrolls movieclip (text inside). It works quite good but I want to put the final touch on it.

I want that my scrollbar is dynamic in its size (just as browser scrolls or windows scrolls). Then my biggest programming problem comes up, maths

The values that I have is
- How tall is the area there the text shows.
- How tall is the movieclip that the text is shown in
- How tall is the place there my scrollbar is shown.

Someone thats have an idea how to sort this out

On Press Scrolling Problem. Scrollbar. Scrolling. Button
How do I make this actually work for on press? It works fine for when you just click it, but the on press function doesnt work.

thanks for any help.




on (press) {
textbox.text._y += scrollVal;
if (textbox.text._y>upperLimit) {
textbox.text._y = upperLimit;
}
lineLoc = slider.line._x;
linelength = slider.line._width;
slider.handle._x = ((textbox.text._y/lowerLimit)*lineLength)+lineLoc;
}

No Scrollbar
I've gotten my window to open up full screen but how do i get rid of the scroll bar on the right? or can i? can i make everything totally dissapear or do i have to have that blank scroll bar with nothing to drag? please help!!

ScrollBar
Could anyone help/give me on how to do or give me some tutorial on how the scrollbar works on flash. draggable scroll bar for text and when it reaches the max line, it stops on the specified max same as with the min. just like the scroll bar in any text editor. TY

Scrollbar
I have been studying the various tutorials for scrollbars and am having no luck. I have a .fla that is just a scrollbar and i would like to send it to anyone so that they can look at it and see what i am doing wrong. When i test the movie the text loads in the textfield but the buttons simply do not work. hhhhhhhhhhheeeeeeeeelllllllpppp!



creese@zoomtown.com

Scrollbar Going Too Far..
Hi, I have a scrollbar that is supposed to scroll thumbnals in a menu. When I putt the slider, the grafik it is supposed to scroll scrolls the grafiks way out of the picture. Is it possible to say, when the grafik is at the end, stop the slider? Changing the bar length doesnt help and when I make the grafik longer, it just scrolls it faster and still scrolls too far. Does it have something to do with where the middle point on the grafikis?
Any suggestions?
thanks!
miakazi

Scrollbar
How do i get that neat little scroll bar in the main window to change colors?...is it html or javascript?..please let me know

Shy Scrollbar?
Hello,

I am stumped by this little problem over here. I have a scrollbar that *sometimes* shows up and other times doesn't. To see what I'm referring to, go here: http://design.interbaun.com/ebuisness-2001.html and click on "News" for example. There will be a window that comes down, there will be (or should be) a scrollbar on the right hand side of that window.

When the News.swf plays on its own, it always shows up. It's only when I'm viewing the entire site. I guess I should explain how this is set up. I have a main movie that loads the sections into the window that drops down. For text section (such as News for example) that text is being loaded from a txt file.

Any ideas as to why the scrollbar only shows up some of the time?

Thanks for your time,

A Bit O' Scrollbar Help Please?
I am using a scrollbar to scroll a loaded text file. Basically the slider button uses a startDrag and stopDrag, and the slider and button use an onClipEvent to scroll the text. This was a downloaded tutorial and I'm still really figuring it out.

However, I was wondering if I can tweak this code to scroll a graphic as well. I'll throw the code below and if anyone has any input that would be great.
Thanks!

Code on scrollbar button:
on (press) {
startDrag ("", false, 0, 0, 0, 200);
}
on (release) {
stopDrag ();

}

Code on slider/button MC:
onClipEvent(enterFrame){
_root.downloads.scroll= (_root.mechanism.thumb._y /200) *
_root.downloads.maxScroll;

(downloads is the name of the text file.

I think that's pretty much it.
Thanks again!

Scrollbar Help
How in the heck do I create a text field in Flash 5?
I tried using the text tool, but I don't think that's it.
Anybody know???

Scrollbar
ok well in flash mx there is the thing where u can drag a scrollbar onto the movie, but how would you add the information so that it would scroll, if you understand answer and if not try to guess what i mean.

thanx

Scrollbar Help
Hi,
I've got a scrollbar that works, but i'm having trouble with altering vertical position of the movie clip so that the scroll content fits on the page. Also, my scroll content is many lines of text that are to be converted to buttons and when the movie is exported to .swf some of the content is cut off.

here is the action script that is applied to the scrollbar

onClipEvent (load) {
// Set the intitial variables that will not change within the Flash Movie dynamically
topLimit = 207;
bottomLimit = 688;
ratio = (_root.scroll_content._height)/bottomLimit;
// Build the functions for scroll up and scroll down
function scrollUp (speed) {
if (scroll>topLimit) {
scroll = scroll-speed;
setProperty ("_root.slider", _y, scroll);
}
}
function scrollDown (speed) {
if (scroll<bottomLimit) {
scroll = scroll+speed;
setProperty ("_root.slider", _y, scroll);
}
}
}
onClipEvent (enterFrame) {
// Set the variables that will dynamically update within the Flash Movie
scroll = _root.slider._y;
y_offset = scroll*-ratio;
;
// Set the property of the content in relation to the slider movie clip
setProperty ("_root.scroll_content", _y, y_offset);
// Check to see if the slider is beyond the top or bottom limit
if (scroll<topLimit) {
setProperty (_root.slider, _y, topLimit);
} else if (scroll>bottomLimit) {
setProperty (_root.slider, _y, bottomLimit);
}
}


It has been taken from a book and altered to suit my needs.
any ideas? thanks

Scrollbar
Hello all, does anybody know the action scripts for a scroll bar?

Scrollbar
In SWiSH there is a sampels called first.swi ... when you clik on one of the link1, link2 there´s a box coming op.

I have try to use the scrollbar from the tutorials .. to make the box into the scroll menu. But it do not work.

Any who can tell me what is wrong? or maybee get it working and then send me the .swi files?

-CyperMann

ICQ# 108368912

Scrollbar
I have a table in HTML that will be imported into flash...I need to add
scrollbars, can anyone tell me how easy/hard this is to do?

Thanks,

MX ScrollBar With/for .txt
I push some buttons who say to load the variable "text" from different files; this variable is asociated with a dynamic text box. I put also a scrollbar for the dynamic text and it does not want to work at all. What can I do?
You can see the web-site at
http://hal.cs.tuiasi.ro/~condurachid.../index_ro.html
just push the "noutati" button for the long text or the "contact" button for a short text.

Scrollbar Help, Please.
Hello,
I'm new to Macromedia flash.
I have Flashmx
I'm trying to put this scrollbar into this dynamic text field thing, here.
http://www.the-verybest.com/flashmx/text001.swf
http://www.the-verybest.com/flashmx/text001.fla
http://www.the-verybest.com/flashmx/copy.txt
Not at all sure of what I'm doing wrong, here.
Any help would be a kick.
Thank you in advance.

[Edited by eggs-in-Wisconsin on 07-02-2002 at 03:21 PM]

Scrollbar
I have a scrollbar and it is working other than when I scroll down and the scroll back up, it goes to far. can someone take a look at the fla file and tell me what is wrong with it?

Thanks

MM

Scrollbar Help
Ive managed to get my scrollbar working but everytime I scroll down, the Text moves up and spills over onto top banner etc. Is there a way to cover the text once it goes outside the text pane boundaries?

Scrollbar
when I drop a scroll bar component onto a dynamic text field it doesn't snap to the edge, any ideas?

Scrollbar
Would like to put some scrolling text in the middle of a page. Thought the feature in flash MX would just be perfect but can't get it to work properly. I set the text up as dynamic text then drag the scrollbar which attaches it self to the text but stretches the full length of the text (kinda defeating the need for a scroll bar). Would like to scroll what is the equivalent in length of 2 pages say in a 350 pixel high box. Any suggestions would be appreciated.

Topher

F5 Scrollbar - Can You Still?
Can you still make your own scrollbar in MX with F5 coding? or would it be different. Reason why is, Im beginning to get tired of the box look for the scrollbar component and want to customize it myself but it takes to long to alter the skins.

Scrollbar Help
I need help with flash MX. I made scrolling dynamic text with the Flash MX's Components.. I want to make it so that one scroll bar can scroll more than one dynamic text box at same time.
Plz Help!

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