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,
FlashKit > Flash Help > Flash Newbies
Posted on: 06-17-2002, 02:55 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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;
};
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
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
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!
Mx Scrollbar
how do we use the instant scroll bar from flash mx?
thnx
Mx Scrollbar
i been asking this question yesterday
and i really the feed back u guys give me
but when i try to put it in my website
somehow the scoller look really ugly
anybody know how to change the scrollbar layout??
for flash mx of course
XML And The Scrollbar
I load text into flash with XML. this works fine, the one problem i have it that the scroll bar (the one that macromedia made with flash UI components ) doesnt scroll. When the text is a lot longer than the box the scroll bar remains enabled. ne1 know some possible causes?
Scrollbar Help?
Hey I'm new to this stuff so how do I add a scroll bar to a input text field any tutorials or anything on that? Well thanks.
Scrollbar
hi |
i've got a lot of text currently in a 'dynamic text' textbox, using the flash scrollbar component. it works, but i want to spice it up. i've seen on other sites where there is simple a scroll up arrow and a scroll down arrow and no bar connecting them. that's what i'm looking how to do. anybody know where i can learn about this? also, anyone know the compatability doing it this way, i.e. does it work on netscape, ie on a mac, etc..
thanks!
matt.
Scrollbar
Hello! I made a web site in flash mx and in the first window there is the scrollbar of the components, when I tested it on my server it worked good, but on the client's server it does not work, how is it possible? can this problem be fixed or do I have to create another scrollbar in a different way? you can check the scrollbar not working here: http://www.johncampisilive.com/test thank you very much! Antonio
Scrollbar (4 => MX)
I read a tutorial on Scrollbars and I tried it myself
but there are two thing I'm not quite sure of on how to do them...
the first one is: how does the following piece of code work, what does it do?
and second, how do I translate it from Flash 4 actionscript to Flash MX
Code:
Begin Tell Target ("../scroll")
Set Property ("slider", Y Position) = (../:scrolltext.scroll - 1) / (../:scrolltext.maxscroll - 1) * ../:balkheight
End Tell Target
I know how to translate the telltarget, but how do I set the property...?
thx in advance
Scrollbar
Hey Folks,
I'm developing a site (www.insight.kit.net), n i have a doubt. I've put a box in it n added some itens, but i have more itens to put at this box, so i guess the best way is adding a scrollbar beside the box. How do I??? I'm using swish...
thks in advance
Help Plz: Scrollbar
hi there, i just attached some code to the up/down buttons but it don`t work is that code obsolete?
whats wrong?
i use fmx
thanx777
Scrollbar
Hey
I used a tutorial to create a scrollbar and it automatically changes the height of the scrollbar so that it's in proportion to the text.
For purposes I don't need to go into, I want to change it so that it will be the same size all the time.
I've tried fixing it myself with my limited knowledge of actionscripting but whenever I do the scrolling becomes odd.
Here's the code:
PHP Code:
onClipEvent (load) {
this.loadVariables("text.txt");
scrolling = 0;
frameCounter = 1;
speedFactor = 1;
numLines = 7;
origHeight = scrollbar._height;
origX = scrollbar._x;
needInit = false;
function initScrollbar() {
var totalLines = numLines+daTextBox.maxscroll-1;
scrollbar._yscale = 100*(numLines)/totalLines;
deltaHeight = origHeight-scrollbar._height;
lineHeight = deltaHeight/(daTextBox.maxScroll-1);
}
function updateScrollBarPos() {
scrollbar._y = lineHeight*(daTextBox.scroll-1);
}
}
onClipEvent (enterFrame) {
if (needInit) {
if (daTextBox.maxscroll>1) {
initScrollbar();
needInit = false;
}
}
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && daTextBox.scroll>1) {
daTextBox.scroll--;
updateScrollBarPos();
} else if (scrolling == "down" && daTextBox.scroll<daTextBox.maxscroll) {
daTextBox.scroll++;
updateScrollBarPos();
}
frameCounter = 0;
}
frameCounter++;
}
onClipEvent (mouseDown) {
if (up.hitTest(_root._xmouse, _root._ymouse)) {
scrolling = "up";
frameCounter = speedFactor;
up.gotoAndStop(2);
}
if (down.hitTest(_root._xmouse, _root._ymouse)) {
scrolling = "down";
frameCounter = speedFactor;
down.gotoAndStop(2);
}
if (scrollbar.hitTest(_root._xmouse, _root._ymouse)) {
scrollbar.startDrag(0, origX, deltaHeight, origX);
scrolling = "scrollbar";
}
updateAfterEvent();
}
onClipEvent (mouseUp) {
scrolling = 0;
up.gotoAndStop(1);
down.gotoAndStop(1);
stopDrag();
updateAfterEvent();
}
onClipEvent (mouseMove) {
if (scrolling == "scrollbar") {
daTextBox.scroll = Math.round((scrollbar._y)/lineHeight+1);
}
updateAfterEvent();
}
onClipEvent (data) {
needInit = true;
}
Thanks for any help you can give.
Need A Little Help With Scrollbar
Hello,
I got a problem with scrollbar, i have some buttons with the name of
a artist, so when you click in the button with a artist name it show
the artist cds in a text field with a scrollbar, the problem is that
when the artist have more than five cds, some got 15 or more,
it don't appear complet in the text field so i use the scrollbar to
peoples scroll down the cds list, but the scrollbar don't work, but
if i click in the textfield with mouse and scrolldown the list with
keyboard down key it work and the scrollbar start work too, there is a way to scrollbar work without you need to click in textfield?
Here is what im using in my buttons, the problem is on fcds field:
on (release) {
_root.fields.fartist = "Rush";
_root.fields.fcountry = "Canada";
_root.fields.fstyle = "Rock";
_root.fields.fcds = " Caress of Steel / 1975
Permanent Waves / 1980
Power Windows / 1985
Roll the Bones / 1981
Rush / 1974
Moving Pictures / 1981
2112 / 1976
Counterparts / 1993
';"}
Thank You
How To Do My Own Scrollbar
How can I do my own scroll bar? I tryed to make but it just doesn't work
This is the code I've on down button:
on (press) {
news.scroll = Textboxname.scroll-2;
}
but something is wrong for sure... Help me pls
ScrollBar Help
Hi!
[im using MX version]
wat i want to do is use the scrollbar (Not the scrollPane) from the componants and use it with a text box. i was wondering if this is posible and if so can tell me how to and the scripting to accompany it.
many thanks
Chris.
Scrollbar
I saw this scrollbar on http://www.mickeyhioe.com/ - you move the mouse up and down the text to scroll. Can anyone point me in the way of a tutorial on how to do this, or better still, show me?
Thanks in advance.
Scrollbar
When I make a scrollbar box, I want to make it so that the text always goes to the next line at the end of it...but even if I type it like that, everytime I play it, the text never goes to the next line and its really annoying!!!! Can someone plz tell me if there uis a way to fix that..
Thx
Scrollbar
please help.
how do you make a scrollbar!!!
thanx
Please Help With Scrollbar
Is there any way to import an outside document such as a Word document with a scrollbar ?
I would like to put this word document on my movie and allow the user to scroll down it because it is rather lengthy please help.
|