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
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 06-08-2004, 11:55 AM
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 Begin At Bottom?
Does anyone now what I have to do to make my scrollbar start at the bottom so that I can drag it upwards instead of top to bottom?
Thanks.
MC Gets Cut Off At Bottom. Using Scrollbar Dragger. Please Help
Hi guys,
Thanks for checking out my post...
I've made a scrollbar dragger for an mc in Flash 8 using a mask.
When I test the site, everything works absolutely fine except the fact that a small section from the bottom of every movie clip gets cut off and I can't scroll down any more to make it visible.
Check it out at http://spindriftmedia.com/clients/snowy/snowy.php if you go to the CV section and scroll to the bottom.
This is the code I'm using to make everything work:
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;
};
if (contentHeight<maskHeight) {
scrollFace._visible = false;
} else {
scrollFace._visible = true;
}
};
scrolling();
Does anyone have any suggestions as to what might be causing this by any chance?
Thank you very much and I hope to hear from you.
All the best,
Mark
Scrollbar Controls Set To Bottom?
I'm developing an instant messaging application in flash and .net and forsee having problems with scrollbars. When a new message is added I need the scrollbar to automatically scroll and message appear at the bottom of the message list. Is there a way to set the scrollbar at the bottom all the time.... ie scrollable content increases but the scrollbar stays at the same location at the bottom?
ScrollBar Can't Work Within Onload Function()
I suceed in populating my holder_mc empty movie clip with my xml. Within my xml file, i got all my attribute and i also suceeded acessing them into my flash.
Now the problem is i got to make a scrollbar that will scroll my holder_mc which is popluated with my xml. I realise that i can sucessfully populate my holder_mc when not within the xml.onLoad = function(). But when within, my contentHeight is not consistant.
I try to explain but i guess it might be hard to understand what i mean , so i upload my file and let you guys see.
The first one is one that have its contentHeight inconsistent. The second(2ndMM_content.fla) is one that is populated not within the xml.onLoad = function.
Please help, head exploding!
Load .txt File Into A Dynamic Text Field With Scrollbar
Hi, i was wondering how to make a movieclip - loader
(onClipEvent(load)) load news.txt into a dynamic text field (var = rinfo) and make it scrollable.
Use scrollbar to scroll the text when loaded into the text box.
I have been trying for ages, but cant get it working.
Help Me :)
Martin
PS. if you could make me a .fla for me to download it would be helpful
Using A Scrollbar For A Dynamic Text Field And Having The Movie Load In The Browser T
Hi all,
I'm a newbie and have 2 questions.
1. How do I use an actial scrollbar (not scrolling text buttons) in a dynamic text field area? I know it's in the "UI components" under scrollpane in the action panel, but can't figure out how to use it!AND......
2.How do I publish my movie to fit each and every browser so you don't have scroll bars vertical and horizontaly? I've tried publsihing all 3 ways and pixels seems to be the best, but still there are those scrollbars! By the way the move is sized 800x600.
Thanks to who ever can help!
Fadaka
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
Load Movie And FS Scrollbar
I have a couple of question, and I hope you guys would help me out.
1. I judiciously use loadMovie in my website, and I've been noticing that it takes a while before it starts preloading the loaded movie. Is there any way I can speed it up after the user clicks on the button that calls the movie?
2. Why can't I make the textfield overflow when I use the scrollbar that's already made in MX? whenever I type in my text in the textfield (it's on dynamic by the way) it expands, which makes the scrollbar quite useless since it doesn't really scroll.
Thanks in advance everyone.
Scrollbar - Problem On First Load
Hi,
I have a weird problem. Check out : www.softmixstudios.com/fr
If you see the links on the bottom (Politique de confidentialité and Termes d'utilisation), I use the scrollbar component (Flash MX).
The problem is, the first time you load these pages, the scroller doesn't appear and the buttons don't work. If you have a mouse scroll, this works.
The second time you load these pages, it works perfect...
I really have no idea what could be causing this, so any help is appreciated.
Thanks,
Simo
ScrollPane Scrollbar Doesnt Appear At First Load
i have a problem with the scrollpane component, whenever the content is loaded for the first time the scrollbar doesnt appear, but if i refresh the page the bar appears..
additional information :
- the content path is set dynamically throught the action script
- the content is another swf flash file
- ive tried every method inside the scrollpane class, (refreshPane(), refresh() and redraw() ), ive put it in the frame actions and in the on(complete) event. but still same problem arrised.
- the main flash file that has the pane is embeded using java script embedtion as to avoid the security problems with ie7..
hope these information is useful to identify the problem, please if anyone encountered this similar problem and knows the solution tell me, or if some expert manages to identify the problem help would be appreciated :)..
thanks alot for reading it.
How Can I Make A Scrollbar Load ONLY When It's Needed?
Hey guys,
I have checked out Kirupa's great tutorial on this, but that was based on an input box and then a "result box".
I would just like to make a simple dynamic text boxt that loads a scrollbar automatically when it is needed , and NOT show when it is not needed.
Could anyone please point me towards any simple code for that?
Thanks in advance.
How Can I Make A Scrollbar Load ONLY When It's Needed?
Hey guys,
I have checked out Kirupa's great tutorial on this, but that was based on an input box and then a "result box".
I would just like to make a simple dynamic text boxt that loads a scrollbar automatically when it is needed , and NOT show when it is not needed.
Could anyone please point me towards any simple code for that?
Thanks in advance.
Var Won't Load From PHP Within Symbol / Scrollbar's Screwed
Hi,
I have a problem that I was unable to find a solution to by browsing the boards.
I want to have a flash movie that loads a string of text from a php file and presents it in a scrollable textbox. I have been messing around with various scrollbar solutions that others have made available, but have not been able to get them to work. If I have the flash movie call a text file holding the variable, it works fine. However, if I try to call the php file (which is outputting the exact same value for the variable), it won't work - the textbox shows up empty.
I eventually figured out that if I moved the textbox onto a frame on the main stage (instead of having it within a symbol, as it was when I started), the text loads and displays from the php file just fine. However, the scrolling functionality doesn't work. I'm assuming because the way the actionscript relates to the textbox, it's probably assuming that it's going to be located within the symbol, rather than on the main stage, where I put it.
So, can anybody tell me either 1) how to get my php file to load correctly in the textbox while keeping the textbox within a symbol, or 2) how to make the actionscript know to point to the textbox on the main stage, rather than within a symbol instance?
Thanks in advance.
Buttonless Scrollbar To Load Picture Into Container?
I'm looking to create a buttonless horizontal scrollbar containing photo's to load into a container on the same page. I have flash MX 2004 Pro, but I saved the example as a Flash MX document. If someone wouldn't mind taking a look and giving me some suggestions, I'd really appreciate that. I've been looking in the Flash Bible and at the different tutorials on Flashkit and can't seem to figure this one out.
pix.fla (86k) Zipped (71k)
Thanks;
Jim
Load XML Into Dynamic Textfield With Custom Scrollbar
Found this great fla on the forum,
I've been trying to get this to work but my AS-skills are poor..
What I want is to load a new XML file with the press of a button into the dynamic textfield..
Greatful for any help!
zip with fla and xml attatched
Fullscreen Flash Scrollbar With Load Movie
Hi Kirupa Forum!
I am new here but am sort of a noob with Flash LOL.
What I am trying to accomplish is creating a main movie where I can load content into it, but if the content being loaded is longer than the viewer's screen, it will scroll.
I managed to get the actual scroller working but the template file I made to load movies into isn't working quite right. I am attaching a zip file for everyone to look at. Any help would be greatly appreciated! TIA
Fullscreen Flash Scrollbar With Load Movie
Hi Kirupa Forum!
I am new here but am sort of a noob with Flash LOL.
What I am trying to accomplish is creating a main movie where I can load content into it, but if the content being loaded is longer than the viewer's screen, it will scroll.
I managed to get the actual scroller working but the template file I made to load movies into isn't working quite right. I am attaching a zip file for everyone to look at. Any help would be greatly appreciated! TIA
PS - I am posting in this section as well as this may be more of an AS question. The file can be found here: http://www.kirupa.com/forum/showthread.php?t=276964
Load From Bottom And Up[Dynamic Text Field]
Hey.
I have a small problem.. I am loading some data from a XML file into flash, and displaying it in a dynamic text field. The problem is, that I want it to display the text from the bottom up.
Which means, that the the "scroll" to move upwards and start, at the bottom, not at the top.
Hope someone can help
Regards Joggy
Text Scrollbar
hi,
i am trying to implement a text-field with a scroll bar; the bar consists of two buttons for up and down and a square, that moves up and down, if the text scrolls;
code for the movement of the square is as follows :
onClipEvent(enterFrame) {
square._y = txtScrollText.scroll/txtScrollText.maxscroll *100;
}
this is an example for scroll-up;
what i try to do is a square that is guided by a motion guide (so that it doesnt just move up and down straight);
i tried to make a mc, with the motion guide and all that, but when i atttach it to the main movie, it doesn't run..
any help would be aprreciated !
-alex
Scrollbar & Text
For a client I need to make a scrollable textbox that contains the menu of a restaurant. Because this menu is about 5-6 pages, the textbox has a height of 2600 pixels. When I scroll down, about 1/4 of the menu at the bottom is not displayed. My movie is 550x400 pixels, I use Flash 4.
Is there a limit on the height of a textbox?
Scrollbar And Non-text Mc?
Is it possible to use the scrollbar component with non-textfields. Or anyone have another solution.
I want to control the scrolling of an mc with the component.
I have a mc that loads xml articls into a dynamic text box. each with its own little scroller. I want to duplicate and load a bunch of these dynamic xml clips into an mc then have a scroller for them
Text In Scrollbar
Anyone help me how to make a scrollbar movie using a Static device font. I tried using dynamic text and it's visible and when I use the Static device font it no longer visible.
XML Text And Scrollbar
I have been following a tutorial found on the web - builder.com.com (files attached). It consists of multiple pages containing dynamic text, titles and a menu all built from an XML document. The main text box and menu text both have scrollbars made from Flash components. The main text box works like a dream, but I cannot get the menu text to scroll, their should be 15 pages (looking at the sample files from the tutorial theirs don't either)
Anyone any Ideas?
Text Box & Scrollbar
Hi all,
I want to have a text box with a scrollbar, in which I can use my own graphics for the scrollbar, and my own font (in 'justified' format) for the text.
Can anyone tell me how I can do this?
Thanks.
Text Box With A Scrollbar
Can someone tell me how to create a text box in the middle of my movie with a scrollbar? I have found a couple samples of what I want but I don't know how to embed it into a movie. I am really really basic in actionscript- that is probably my problem. Any help would be really appreciated. You guys are always great!
Thanks!
[F8] Scrollbar With Xml Text
i have a swf that plays an mp3 and loads a text version from xml into a movieclip. however i want to add a scrollbar to the text....can i add to a movieclip? is there a better way to do it? can anyone help?
Text & Scrollbar Help Please
Hi, I'm quite new to flash MX, so I would really appreciate anyone's help with this situation. Its not really a problem as such, but something I'd like to accomplish: Basically, when I input a textfield with a scrollbar, the outputed text in the .swf format looks nothing like the nice, sharp text in the .fla. Instead it looks quite pixelated and just ugly. I've noticed that I can also highlight the text, wheraes for many flash movies and sites on the net, that is not possible. Does anyhow know how I can get the same looking text in my final .swf as it looks in my .fla? Thanks in advance.
Text Scrollbar
I've got what hopefully seems like a simple question of text scrollbar. I'm using the scrollbar out the components menu and have done everything the tutorial on this website says I'm supposed to do. When I test/publish the movie, the scrollbar works fine at first, but after I go back to that page and unload a movie on (2) it doesn't work. Any suggestions? Your help would be greatly appreciated.
Thanks,
Chris
Text Scrollbar
I've got what hopefully seems like a simple question of text scrollbar. I'm using the scrollbar out the components menu and have done everything the tutorial on this website says I'm supposed to do. When I test/publish the movie, the scrollbar works fine at first, but after I go back to that page and unload a movie on (2) it doesn't work. Any suggestions? Your help would be greatly appreciated.
Thanks,
Chris
Text Scrollbar
Hi,
I've created a text scrollbar similar to this
So when you click the up or down arrows it scrolls through the text.
Now I want to also be able to make it so when you move the cursor to the top or bottom of the box it also scrolls through the text as well. I'm having difficulty doing this! Wondering if anyone can explain how this can be done or point me to a tutorial somewhere?
Thanks
Text Box With Scrollbar
Last edited by tonyb4 : 2004-12-21 at 16:32.
Is there any way to have tabulated text in a flash text box with side scrollbar?
If anyone know how, id love to know!
CRISP TEXT SCROLLBAR
how do I create a scroll bar where the text is loaded through a text field instead of embedding the text in the flash movie....so that I can reduce the file size and also the text appears more crisp....
It will be nice if some one actually explains the mechanics of the scrollbar instead of just giving the source..
Thanx
Text Box - Vertical ScrollBar
Hi!
Question: Does someone have already made a text box with user - input, which has a vertical ScrollBar????
There are very many examples of text boxes with vertical ScrollBars, but however they are READ only: NO text input is permitted!!
Know anyone an example, how to calculate the size and position of the vertical Scrollbar in a “user input multiline” text box???
Greeting and thanks
David
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
|