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




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



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-24-2004, 10:46 AM


View Complete Forum Thread with Replies

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

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

Changing Font And Size - In A Dynamic Textbox With Scrollbar
I have a dynamic textbox with a scrollbar. Wants to change part of the text in the textboks (headings) to a different fontsize...but - all the text in the textbox changes...
Is it possible to change part of the text in a textbox ? Since I'm making a scrollbar - I can't make several textboxes - or can I ???

Happy if you can help me out!

Show Scrollbar Depending On Dynamic Text Size
Is it possible to make a scrollbar, witch only shows up when the text in the dynamix text box is to large to show in 1 screen???

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.

Scrollbar Size..?
Hi - I have used the scroll component on a dynamic text box which i have filled with text i have also skinned the component so that it matches the site theme.

But what i would like to know is if you can make the scroll bar slider just one simple size, at the moment the slider size changes depending on how much text is within the dynamic text box, is there any action script i need for this?

If anyone could help would be much appreciated!

Scrollbar Size Problem
the file i attached is a scrollbar fla that i downloaded and altered. i scaled down the height of the scroll bar track, and now when you scroll down, the scroll bar will proceed past the end of the track in order to view all of the text. how can i get the scroll bar to snap to the track?
i havent really messed with scrollbars yet, hope someone can help -sean

How Can I Change The Size Of My Scrollbar?
I've got a movie that is duplicating some movie clips vertically, they're all stacking up and I want to use the browsers scroll bar to match the length that its all totaled up to so i can tell it to scroll past the movies stage size. I've had too many problems with scroll bars in flash. Could someone help me out.

Can You Chanbe The Size Of The Scrollbar Component?
Hi all, Is it possible to actually resize (not scale) the scroll component as I have tried to edit it and to be honest it lost me completely!! as I need them to be smaller and narrower.

cheers

Text And Font Size Using The Scrollbar?
Can anyone help me please. I can't seem to be able to find out how to manipulate the text and fonts when I'm using the dynamic textbox and scrollbar. Any suggestions. You can see what I've created at:
www.joeyberkley.com I would like to be able to highlight all of the textboxes in this site. I had previously used another textbox method but commas and other characters would mess it up. (But I could use html tags to highlight stuff.
thanx in advance for any help.

Cobyco

Updating Scrollbar As Text Size Changes
I'm using Flash 6. I have a dynamic text field w/ the standard scrollbar component that comes with Flash 6. Everything works fine, but now I'm giving the user the option to increase / decrease text size. The problem is that the scrollbar doesn't update: increasing the text size means the scrollbar won't scroll to the bottom of the text. (I don't care about a graphic change in *size* of the scrollbar -- I just want it to reach the bottom of the text).

I know how to count the lines using maxcroll and bottomScroll...I just can't figure out how to update the scrollbar.

I'm attaching the file, if anyone wants to look at it. Hopefully this is an easy thing to do?? The file is also at the url below. Thanks.

http://www31.brinkster.com/zjonbz/scroll.sit

Changing The Scrollbar Size Of A Datagrid
hello, I was wondering if anyone might know how to do this...

that is - I want to make the actual scrolltrack, arrow buttons, and everything bigger.

It'd be a piece of cake with a UIScrollBar, but with a DataGrid I don't know if I can access the scrollbar portion if it via a call like this:

gridName.scrollbar.size

...any ideas would be much much much appreciated.

gracias,
Adam

Changing The Scrollbar Size Of A Datagrid
hello, I was wondering if anyone might know how to do this...

that is - I want to make the actual scrolltrack, arrow buttons, and everything bigger.

It'd be a piece of cake with a UIScrollBar, but with a DataGrid I don't know if I can access the scrollbar portion if it via a call like this:

gridName.scrollbar.size

...any ideas would be much much much appreciated.

-Adam

Scrollbar Won't Size-to-fit Inside Text Box ...
... nope. I drag the component to my text box and - - it just sits there, refusing to size. The procedure has worked seamlessly in other MX projects, but not this one. Any suggestions???

Thanks!

Scrollbar Track Size Problem
the file i attached is a scrollbar fla that i downloaded and altered. i scaled down the height of the scroll bar track, and now when you scroll down, the scroll bar will proceed past the end of the track in order to view all of the text. how can i get the scroll bar to snap to the track? this is my first time messing with scrollbars, hope someone can help -sean

Swf Size, Html And Browser Scrollbar.
Hey All.

I've recently uploaded a new version of a site, which you can find here:

http://www.flashback-live.dk

(Click on "kom indenfor" to enter)

I've had some complaints about the swf being too big for the screen, thereby not allowing navigation of the site etc. I thought i played it safe by only making it 1000x600 pixels.
But apparently some people are still running low resolutions and have too many toolbars and stuff showing while browsing.

I didn't want to venture into full screen flash for this one, as it was a hasty job. it just had to work and get on the net in a hurry.

But my question is - I want to go with 'noScale' - because every other setting will scale the content, which looks awful.

Is there any way to put some code in the published html, that will bring out the browser's scrollbars when the window is too small for the swf??


Thanks in advance..

Stig.

Ps. Please bare with me on the design. It's not the most innovative and still needs a lot of tweaking.

Scrollbar Won't Size-to-fit Inside Text Box ...
... nope. I drag the component to my text box and - - it just sits there, refusing to size. The procedure has worked seamlessly in other MX projects, but not this one. Any suggestions???

Thanks!

Scrollbar Track Size Problem
the file i attached is a scrollbar fla that i downloaded and altered. i scaled down the height of the scroll bar track, and now when you scroll down, the scroll bar will proceed past the end of the track in order to view all of the text. how can i get the scroll bar to snap to the track? this is my first time messing with scrollbars, hope someone can help -sean

[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.

Cascading Style Sheets Scrollbar Size
Hello. I was wondering if you can set the size of the scrollbar using Cascading Style Sheets. If so, does anyone know the code for it? Thanks in advance, Leo.

Scrollbar Component Adds Quite A Bit To File Size
It adds 22K. To me, that's a lot for such a small thing that is almost entirely based on code, and I'm thinking that I can probably make one myself that doesn't add as much to file size. I'm thinking it's because a lot of its parts sit in the library waiting to be exported. In my experience, when you make library symbols exportable, they add surprisingly much to file size even if they aren't used in the movie.
Has anybody ever made a scrollbar themselves? If so, do you think I can reasonably expect it to be smaller than 22K if I write one myself?

Thanks.

I Need ScrollBar Or ScrollPane Component Help Please- Adjusting Size
I need to scroll content that has a visibly larger area than the scrollPane or scrollBar.

When I try to use a scrollPane (as far as I can see) the height has to be the same size as the viewable scroll area. I need the scroll bar to be shorter than the content that is visible, but when I change the vertical pixels, the whole thing gets smaller.

Is there any way to make the vertical scroller a specific size, while the bounding box stays larger? (I do not need a horizontal scroll.)

Or how can I use the scrollBar (rather than the scrollPane) to scroll content within a MC? ( I already know how to load a movie into a MC, but I can not seem to target it with the scrollBar for moving it.)

Please see the image of what I am trying to do. I have already done this successfully with the scroll bar and a text field, but the scrollPane is less flexible (with my knowlege anyway.)

<img src="http://www.a1flash.com/flashkit/demo.jpg">
Thanks so much for any help.

Scrollbar Auto-resized With Window Size
My first post here! I did a search on this first but didn't find a solution...

I would like to be able to have the bottom button of a scrollbar, remain clickable at the foot of a page. Such that, if the window is resized, the scroll bar will also resize with it (the bottom button of the scroll bar remains there).

To show you exactly what I mean, the following site does exactly what I am trying to achieve: (look bottom right)

http://www.skyworksinc.com/

Many thanks in advance for any help. Please try to keep the instructions relatively clear, I wouldn't consider myself an extreme expert. Many thanks.

Apollo11

How To Change The Scrollbar Size Smaller Than The Scrollpane?
i need to make the scrollbar about half the size of the scrollpane. Can anyone help?

Fixed Size Scrollbar Compnent Tracker?
mx 2004. player 7.

the scrollbar component tracker(the little thing you grab with your mouse) expands in height inversely to the ammount of text it is scrolling. i.e. the more text you have, the smaller it gets.

is there any way to disable this... so that the tracker is always the same size no matter how much text there is?

thx.

Scrollbar Not Sizing To Size Of Text Field
Hello and thanks for your time.
I created a dynamic text field. Selected multi-line. Gave the text field an Instance Name(scroll_text).
Dragged my Scrollbar component to the right-hand region of my text field and it's not snapping to the side of my field or automatically sizing like others I've done. I have deleted, redone, rebooted Flash, rebooted my computer. Any ideas? Thank you again.

Scrollbar Component Resizing Below Minimum Size?
Hello all,

I've reskinned the scrollbar component, no problem with that, but I can't seem to set the size of elements in the component dynamically.

Something like:
code: textscroll.setSize(8,textField._height);

Doesn't work; I was expecting to be able to set the width of the component to 8px and have the elements scale to that width while the scroll bar fits the length of the field.

The flash documentation notes that Halo cannot be resized from 16px width when it's vertical or 16px high when horizontal.
So how do i override these settings for my custom skinning?

Is it simply a case of actually drawing the objects smaller?
I've tried this as a brief experiment and it didn't seem to work.

[edit]
ok, i've tried actually changing the size of all the pieces of my component now, and it's still auto resizing a couple of peices to 16px
Screenshot enclosed.
[/edit]

Cheers

New Window Size In Scrollbar Component Text
Greetings,

I have a scrollbar component with dynamic text that I want to add some other functions. I can figure out how to add a URL link to a specific bit of text within the scrollbar. How can I make the linked text:

1. change color when the mouse is over the linked text within the scrollbar component

2. have the URL I'm linking to within the scrollbar component open an html window to specific size.

Thanks!!

Disable Scrollbar And Fixed Size Explorer
Hi, I have an html page which links to a flash website...how can I set the appearing window's(contains the flash) size? I want it to be fixed (the size of the flash), I mean without any scrollbars and toolbar and I want to disable to full size button on the explorer's top-right corner....could it be done?
Any suggestion?

Browser Without Scrollbar, Certain Size, No Tool Bar Or Adress Bar?
Hi

I have made four animations which are 800 X 500.
Because two of them use a lot of screenshots which are jpegs I want the to load in a browser and that is exactly that size, the movies to stay non scalable.

I have managed to figure out how to get the animations to not be scalable but have not figured out how to make the browser un scalable and fit around the movie exactly.

I dont want any address bar or scroll bar or any of the tool bars only the title bar and thats it.

http://autodemo.com/web_demos/samples has a few movies that are similar to what i want and am doing.

Also i need the thing to detect and make sure the user has latest flash player.

Can anyone Please help?

What Is The Biggest Pixel Size You Can Have W/o The Browser Scrollbar?
I was wondering how big (in pixels) your background for your website can be before the browser scroll bar starts showing up. Also, what's the width for the background to stretch all the way across the browser so there is no html?

Like these guys, see how it goes all the way across and everywhere you right click it's flash - no html?

see here:
http://blur.com/indexs.html

What Is The Biggest Pixel Size You Can Have W/o The Browser Scrollbar?
I was wondering how big (in pixels) your background for your website can be before the browser scroll bar starts showing up. Also, what's the width for the background to stretch all the way across the browser so there is no html?

Like these guys, see how it goes all the way across and everywhere you right click it's flash - no html?

see here:
http://blur.com/indexs.html

Howto: Making A Fixed-size Scrollbar Thumb Tab
This might be a bit of a hack, but in customizing my FScrollBar skin, I wanted to have a thumb bar that was static in height, as opposed to scaling to a height proportional to the amount of text.

What I did was build the top thumb and bottom thumb to a height total to what I desired. I left the middle out completely.

Then, in the actionscript portion of the ScrollBar component, edit thusly:
(starting on line 92)

Code:
this.thumbHeight = 15 // this should be the height of your desired thumb
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = 15 // this should be the height of your desired thumb
this.midHeight = 0 // zero-out the middle portion
this.thumbMid_mc._yScale = 0 // zero-out the middle portion
this.thumbMid_mc._y = 0 // zero-out the middle portion
Taa-daa!

- Chris

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.

Dynamic Scrollbar?
i'm loading some text into a dynamic text box

can i make a scrollbar appear ONLY if needed (i.e. if there is x amount of text?)

cheers

Dynamic Scrollbar
Here is how far I have got.

Made a text area. set it to dynamic text
filled the box with text.
Made it scrollable.
Added up and down buttons.
Used
on (press) {
this.(thetextname).scroll +=1;
}
and -=1 respectivley

Now here is the question. How do I get the scrollbar to work by holding the buttons down, instead of having to click and click (hence the moving +/-1)

I am in flash8. I dont seem to need to make a mask as it all works up to now without one. I dont want to use the UI component it does not fit in with the page. anyway surely by now there is just a little code I can add here to do this?

Thanks

Trev

[F8] Dynamic ScrollBar
I have movieclips that gets duplicated and alligned one below the other just like a scrollable menu items inside a movie clip.
So when more than 10 movie clips are duplicated inside my main movie clip i should get a vertical scroll guide on the side. So, you can drag this scroll guide up and down, and hence making the duplicated movieClips move up and down. As the movieClips gets increasing in population this scrollbar automatically decreases in size and there by has a long way to get dragged vertically. I just like to know the logic behind making this scroller work.
how to function it dynamically ??

Dynamic Scrollbar That Uses PHP
So I've been searching everywhere and I can't seem to find a scroller that will allow me to import a PHP file instead of an XML file. Well I do have one of my own, but it only has buttons and no dragger. Anybody have some handy dandy links? I have the BillyT Scroller which says in the comments that it supports php and xml, but I changed the file that's imported to a php file and I get blankness. I think this is due to all of the XML commands in the rest of the script maybe. Anyway Thanks in advance for any help you have to offer,
Casey

Dynamic Scrollbar That Uses PHP
So I've been searching everywhere and I can't seem to find a scroller that will allow me to import a PHP file instead of an XML file. Well I do have one of my own, but it only has buttons and no dragger. Anybody have some handy dandy links? I have the BillyT Scroller which says in the comments that it supports php and xml, but I changed the file that's imported to a php file and I get blankness. I think this is due to all of the XML commands in the rest of the script maybe. Anyway Thanks in advance for any help you have to offer,
Casey

Dynamic Text And Scrollbar
i'm a major newbie at this, so here goes.

i'm using flash mx and have learned how to add a scrollbar as well as load dynamic text from a .txt file. no problem. now, i've tried to combine the two so that i can have a text area that is loaded with dynamic text from an external .txt file that allows a vertical scrollbar. am i making sense?

anyway, i've tried and although i can get these two aspects working separately, i can not get them to work together.

any advice/suggestions etc would be greatly appreciated! thanks!

Dynamic Text W/ Scrollbar
Okay, I am using a dynamic text box to load the text for a the variable, "autobio". It works fine, but when I try to add the preset component scrollbar, it does not seem to work with the dynamic text box. I have set the target text box to "autobio", but it still doesnt work. I am probably doing something really simple, just unknowingly.

Please view my FLA if you want to see what I am talking about. Please ignore the "_level0.autobio" message. It only says that because I have my variables load in Layer 1, and my main movie file loads this file in layer 1, so that is nto a problem.

http://www26.brinkster.com/wirez/_new/_working_files/

ScrollBar & Dynamic Text
FlashUi component's ScrollBar works fine with input text , but when i load an external text file in Dynamic txtbox, the scrollbar doest work? why??
THNX
aLi

Dynamic Attachment Of ScrollBar, Help
I am trying to dynamically attach a Scroll Bar to an instance of a newly created Text field at run time.

The problem is that the Scroll Bar does not see the text field as its target. It appears on the stage, but the two are not communicating.

I have tried using the setScrollContent method, but it has not worked.

Any thoughts on how to dynamically attach a scroll bar to a text field?

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