Scroll Bar Show Up If Needed And Only Scroll To Dynamic Text Input Bottom... HOW
I have attached a copy of my scroll bar that i am currently using how can i make the scroll bar not show up unless needed (really not all that important but would be nice.)
The important thing is that i can setup a dynamic text box inside my item_holder movie clip but my scroller always scrolls to the bottom of the scroll box not matter if inside my scroll box i have on line of text loaded dynamicly or i have 100. So if i have 1 line of text and a large dynamic text box the scroll bar will scroll to the bottom of the scroll box even though it only has one line. See attachment and see if anyone can help. Thanks in advance. Brian
FlashKit > Flash Help > Flash MX
Posted on: 09-14-2004, 02:30 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Scroll Dynamic Text To Bottom?
I've got a dynamic text box and a scroll bar component. I'm updating the text in the text box throughout the file with AS, and I need the box to scroll to the bottom so the newest text shows up and the scrollbar updates...any way to do this??
Thanks!!
Show/Hide Scroll Bar When Needed
I am have this code loading an xml file into a dynamic text box:
Code:
GetTitleText = function(news_xml, entry_index){
var entries = news_xml.firstChild.childNodes;
var title_element = entries[entry_index].firstChild;
return title_element.firstChild.nodeValue;
}
GetBodyText = function(news_xml, entry_index){
var entries = news_xml.firstChild.childNodes;
var body_element = entries[entry_index].firstChild.nextSibling;
return body_element.firstChild.nodeValue;
}
GetDateText = function(news_xml, entry_index){
var entries = news_xml.firstChild.childNodes;
var date_element = entries[entry_index].firstChild.nextSibling.nextSibling;
return date_element.firstChild.nodeValue;
}
GetEntry = function(news_xml, index){
var entries = news_xml.firstChild.childNodes;
return entries[index];
}
GetNewsCount = function(news_xml){
var entries = news_xml.firstChild.childNodes;
return entries.length;
}
ShowNews = function(news_xml){
if (!news_xml.firstChild.hasChildNodes()){
content_txt.text = "No news available.";
return (0);
}
var entries = news_xml.firstChild.childNodes;
content_txt.text = "";
for (var i=0; i<entries.length; i++){
var title = GetTitleText(news_xml, i);
var body = GetBodyText(news_xml, i);
var date = GetDateText(news_xml, i);
content_txt.htmlText += '<font size="14" font-family="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif" color="#FF3070"><b>' + title +"</font></b><br>"
content_txt.htmlText += '<font font-family="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif" size="10"><i>' + date +"</i></font><br>"
content_txt.htmlText += '<font font-family="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">' + body +"</font><br><br>";
}
}
RefreshNews = function(news_xml){
content_txt.htmlText = "<i>Loading...</i>";
news_xml.load(xml_file);
}
var xml_file = "achivevements.xml";
var news_xml = new XML();
news_xml.ignoreWhite = true;
news_xml.contentType = "text/xml";
news_xml.onLoad = function(success){
if (success) ShowNews(this);
else content_txt.text = "Error loading XML file";
}
RefreshNews(news_xml);
my text box has the instance name - content_txt, and the scrollbar has the instance name myScroll.
How do I have the disable the scroll bar if it is not used? I have a custom skinned scroll bar and every AS i try displays two gray boxes when there is not enough content to scroll.
Can Someone Show Me Where The Component To Scroll Text Is
I must be blind or something, because i can't seem to find the component that u insert onto the stage that is a scroll bar, and used to scroll dyanamic text. I keep having to copy/paste the scroll bar from someone elses .fla file and i cant find it myself
Could someone take a screenshot of the icon or how ever i insert it and make it clear enough so i can see, Thanks
Input Text Box Scroll
any advice on what way to create an input text box that a user inputs text into and as they type more than the box itself it continuously scrolls the text so the user can scroll throught the text exactly like this one i am typing in right now
MX 2004 Scroll Bar For Text Input
hello i have a contact form and i have this message area that isn't a component it just input text
how do i get a scroll bar for it?
Scroll To Bottom Of Textbox
hi
i need to scroll a dynamic textbox to the bottom once a textfile has loaded in it.
can anyone help me?
BoB.
Scroll To Bottom Problem
Hi,
I'm developing a chat program in Flash MX and I've got a bit of a problem with the interface for the actual chatting. If anyone uses MSN Messenger or anything like that, you will notice that all the conversation gets put into a scroll pane which is perminantly scrolled to the bottom so you can read the last message sent by either person.
The thing is that there doesn't seem to be any way of setting the scroll bar position to the bottom in Flash (as there doesn't seem to be a way to know where the bottom is).
Does anyone know of a possible solution to this problem?
Thanks in advance,
Matthew Dingley
www.matthewdingley.co.uk
Help With Scroll Buttons, Top And Bottom Please
I have some buttons made for scrolling, but what I can not figure out is to make the up button alpha if the scroll area is at the very top, and make the down button alpha if the scroll area is at the very bottom.
Here is the code I am using... its not an external text file...
Code:
onEnterFrame = function(){
if(scrollText_txt.maxscroll <= 2)
{
down_btn._visible = 0;
down_btn.enabled = 0;
}
else{
down_btn._visible = 1;
down_btn.enabled = 1;
}
if(scrollText_txt.maxscroll >= 2)
{
up_btn._visible = 0;
up_btn.enabled = 0;
}
else{
up_btn._visible = 1;
up_btn.enabled = 1;
}
}
any help would be great, or if you have some other script with that sort of function....
Thanks!
edit:spelling
Input Text And Scroll Bar Presentation For Chatroom
I am working on a flash chatroom by way of a DB. The chatroom works great, but I am having some problems with the presentation and formatting.
The chatroom can be accessed here: http://www.fakesports.com/poker
You can either create a log on and sign in, or log on with:
username: test
password: 1
1) My first problem is: the main message display window does not show the scroll slider when it becomes full... it does jump to the bottom most message, but you can't scroll up to the first message by way of the scroll bar component.
2) Also, how would I change the color of the username in the message window? Here is the basic code of how I am inserting the text into that input box:
_root.mainMsgWindow.allMsg += user + ": " + message + "
";
How would I manipulate that code so that the text in the variable 'user' would be a different color?
Thanks to anyone who might be able to point me into the right direction. If anyone is interested in my code, let me know and I will post all the supporting files that make it work.
Jon
Input Text Boxes And Scroll Bar In A Movieclip
Hi,
I am a beginner in actionscript. I was trying to create a simple interface. The interface contains a single button. When clicked on the button, a input text box is created in a defined space. Many input textboxes can be created. All the created textboxes are stacked up in sequential order as they are created (input textbox 1, input textbox 2....n). The space containing stacked up textboxes has a scroll bar so that text boxes can be browsed.
I am attaching a sketchy explanation (image) to my problem. I am looking for some advice/suggestions/examples, so that I can complete what I intended to do.
Here is the code I am using but the new MC (var b) is always attached at -158 and -100 and not updated with the new yPos for the MC.
Quote:
var i = 1;
btn_main_st.onPress = function() {
//Starting x & y values
var xPos = -158; // mc_s._x;
var yPos = -100; // mc_s._y;
var b:MovieClip = _root.mc_s.attachMovie("mc_s_statement", "mc_s_statementnew"+i, i, {_x:xPos, _y:yPos});
//increase the y postion each time
yPos += b._height+5;
trace ("mc_s_statementnew"+i);
trace (b._x);
trace(b._y);
i++;
};
Appreciate help on this one and thanks in advance.
--nish
Input Text & Combo Box In A Scroll Pane
I am creating an online form.
I have a graphic symbol that contains some Input Text boxes and Check boxes (each on their own layer). I place this graphic symbol inside a movie clip, and then point a ScrollPane's content to this movie clip.
The problem is when I test it, the Input Text boxes and Check boxes scroll out of the ScrollPane. Also my checkboxes don't have a box until I click on them and when I scroll they sometimes disappear.
Not sure what is going on and can't find anything on the internet describing a solution.
Thanks
Set ScrollPane To Automatically Scroll To Bottom
HI all,
its been a while!!
I have a scrollPane which i am dynamically loading with stuff. At the end of the dynamic load i am calling myPane.refreshPane() so i can guarantee a scrollbar appears if its needed -
What i want is for the scrollPane to then automatically go to the botom of the scroll - (because i have a "total" figure there relating to the 'stuff' i am loading in ....)
is there a myPane.maxScroll = true
.... or something i can use ???
many thanks in advance
gilesb
Text Scroll Help Needed Please BottomScroll Specifically
I am using a draggable movie clip to scroll my textfield.
For some reason I found that for this project making my own scroller works better than the component included in Flash.
I need a script that will tell me if there is a need for my draggable scroll box to be visible, I tried using the bottomScroll property but it ALWAYS gives me a value of 1. Is this because I am using a dynamic text field? and If so how can I adjust this?
I was trying this:
if(body.maxscroll > body.bottomScroll){scroll_box._visible = true}else{scroll_box._visible = false}
can someone please tell me what I am doing wrong?
On Press Scroll Browser Window To Bottom?
Hi all, say i have a movie which is width=500 and height=900, and i have a button at top of page,is it possible to have an 'on press' go to bottom or a particular area of the movie where the user doesn't have to physically scroll down via the browser's scroll bar.
just like you have in dreamweaver/html sites where you can go 'to top of page' and 'bottom of page' or at a point in the page.
If anyone can help or at least point me in the right direction, i will be most thankfull .
Thanks in advance
Riff
Adding Scroll Bars To Text Boxes When Needed
Greetings all,
I'm pulling data from a database and loading it into a dynamic text field with a scroll bar component. I wanted to know if there is a way to hide the scroll bar UNTIL the text gets long enough to scroll.
Adding Scroll Bars To Text Boxes When Needed
Greetings all,
I'm pulling data from a database and loading it into a dynamic text field with a scroll bar component. I wanted to know if there is a way to hide the scroll bar UNTIL the text gets long enough to scroll.
Scroll Bar Component Doesn't Scroll When Dynamic Txt Is Used?
I have a dynamic text box with the Flash UI component "Scroll Bar" attached to it. It works and scrolls fine when you enter text directelly into the dynamic box but when you use the loadVariables command to load an external txt file into it, it fails to scroll the text?
Is there a way to get it to scroll?
thx Bk9
Scroll Text > Button > Load Txt File > Reset Scroll Bar...?
Hi i am looking for a tutorial or an explanation of how you can load an external text file into a text field and have...let's say 3 buttons that load the .txt files...when they are loaded...i want the scroll bar to be reset to the top of the text field/box....
any help...welcome...
ta...tiger...
Linking Text Buttons In Scroll To Image Outside Scroll Area
Hi,
I am desperately hitting my head against a brick wall - so please help me!
I have created a flash area that is divided up with an image on top and a scroll area under.
I am trying to get the text buttons in the scroll area to each change the image above and cant seem to get it to work because of the masking.
I have tried heaps and heaps of different ways and am going crazy!
PLEASE HELP ME!!!!
thanks,
kova
Show A Name From A Input Text In A Dynamic Text Field
Hi,
I'm creating a interactive cd in flash for a college project.
I want to have a input text field at the begining of the cd, for the user to insert its name, so that it can be showen in some sections of the cd.
Can anyone help me?
Text + Image Scroll Function With Scroll Bar. Help
Hi, tring to create a scrollable text window that can also include different text colours, styles, links and images. I have tried a few tutorials but they only seem to work with dynamic text without different colours, styles, links and images. is there an easier solution i can use..
Please help
Scroll Text With Image In Scroll Panel ? Help
Hi,
I m trying scroll pannnel to show image and dynamic text both in scroll panne but when i select dymanic text in text option it comes outer from scroll pannel but static text is coming.
I need help to show dynamic text also in scroll pannel.
Thanks
Scroll Text With Image In Scroll Panel ? Help
Hi,
I m trying scroll pannnel to show image and dynamic text both in scroll panne but when i select dymanic text in text option it comes outer from scroll pannel but static text is coming.
I need help to show dynamic text also in scroll pannel.
Thanks
Show Input Text In Dynamic Text?
hi,
I'm trying to show a username that was inserted in a input text field in a dynamic text field. No problem here, the issue is when the dynamic text flied is inside a moveclip...the dynamic text field aprears empty :-(
Can anyone help me?
Can Dynamic Text Scroll On Its Own
hi
i have got the tutorial from flashkit, through which i can load a dynamic text file and show it in flash,
but what i need is, that i want this to scroll automatically , without me having to click the up and down arrows or by dragging the slider.
lets say i have 15 lines and i am able to view only the first 5 lines, which scrolls upwards till the last line is reached, once it reaches the end of file, it starts all over again.
please someone help me do this,
thanx
rex
Dynamic Text Scroll
hi
I tried to scroll a dynamic text (external text file.
The characters appear but they're not scrollable.
I used the "scrollbar" component in a dynamic text with
a loadvariable action in a frame.
I tried to embend the font but this was worst.The characters didn't apear at all (the font is ArialGreek).
If this question was answered, the next question would be If
I can change the white color when I check the option "Show Border around text"....
thnx for any help
chris
Dynamic Scroll Text...?
Hi,
I want to create a horizontal scrolltext in Flash.
Like this: http://barry.e-factory.nl/scroll.html
If it would be a static (no dynamic content) scroller it wouldn't be a problem....
But how can I create a scrolling text with dynamic content. I can't just make a dynamic text-field which scrolls, because I don't know how long the text I'm loading externally will be...?
Please help?
Dynamic Text With Scroll Bar - MX
Hi Everyone!!
I have dynamic text field var name text and got txt file in same folder. My action is on release, text appears but scroll bar doesn't , How do I put scroll bar on it? I tried ScrollBar from UI components but it is not working??
HOw come????
tks.
Dynamic Text Scroll
I made a dynamic text box and attached a scroll bar to it. Then I exported it to find that all I got was a gray rectangle for the scroll bar. The only way I could scroll was to select the text downwards. How do I get the scroll bar to work properly?
Scroll Dynamic Text Box
flash mx
i have a dynamic text box, and i used the loadVariables(); code to load a .txt file into it, the .txt is bigger than the text box, and it doesn't scroll when i added scrollbar to it, so how can i scroll it???
please help...
I Want To Scroll Dynamic Text
does anyone know why you can stick a scroll bar on a static text field and it works just fine but when its dynamic it wont work.
Is there more code to make this work.
I am using MX
Dynamic Text And Scroll Bar
im having a few problems with putting a scroll-bar on text, right ive typed out my text using dynamic text and have dropped my scroll bar onto it but i need to change the size of the text box that i view the text in, could someone help me with this
thanks
also could you explain it simple
Dynamic Text Box Scroll
How can i scroll a dynamic textbox (populated by xml) with an on mouse down so it scroll continuosly
Dynamic Text Box W/ Scroll Bar..
Hi, this may be a simple one, but does anyone know how to change the color behind a dynamic text box. Tried all I know but can only change the text color and the box remains white ( ugly ). Plus, how do you make it transparent also. I know I've seen it done. Thank you. Brent/ Flash MX
Dynamic Text With Scroll Bar.. What The?
I have been trying to get an answer to this question for ages. But no-one seems to want to help me out. Thought I might have put it in the wrong section so I am trying here.
here is the thread
so if someone could help me that would be great. Thanks heaps
Wolfie
Dynamic Text Scroll Bar?
How do I add a scroll bar to a dynamic text box? I only want the scroll bar to appear when the text overflows.
Thankyou.
Dynamic Text Won't Scroll
i have a dynamic text box, loads from txt file using XML.
works great, except it doesn't scroll when it first loads.
if i click the button to play that frame again, when the text box reloads, it scrolls fine!!!
argh!
anyone know how to force it to scroll on the first load of the frame
(files attached)
Dynamic Text Scroll
Hi, I am trying to use the macromedia Flash TechNote to create a dynamic text box which is scrollable using the flash component. I am having problems I am able to fill the text box with dynamic text when I use:
loadVariables("archive.asp", _root, "POST");
However I cant get this to work with the scroll bar so I started to try to the loadVars method. My code is below, the trace comes back as data loaded but nothing is displayed in the text box.
loadVarsText = new loadVars();
loadVarsText.load("archive.asp");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
scroller.text = this.archivenews;
} else {
trace("not loaded");
}
};
Please help as I am confused....
Michelle
Dynamic Scroll Text
I'm having a few issues with dynamic text and I wondered if anyone could help?
I have a text file loading into a dynamic textbox which has a scroll bar componant attached. The problem is that it doesn't seem to let me scroll all the text. It only goes part way down. Can I set a Max scroll value?
Any thought greatly appreciated, thanks!
Dynamic Text Won't Scroll
I'm loading my text dymnamically (a .txt file with html tags) but when I loads into my text box it won't scroll. I've attached a scroll bar to the text box and it shows up as the proper size, but it does not work. Any suggestions?
Dynamic Text Scroll
This has been annoying me for about 3 months now.
I have been building this website but the other day my mate has asked me to make him something.
So, what i have it 5 buttons all linking to a load variables command and i have a dynamic text box. What i am trying to do is have it so when you press a button it loads variables from a text file and so on.
But when it loads the variables i am also wanting the text box to have a working scroll bar, is all this possable?
Please help
David
Dynamic Text And Scroll Bar
I cannot use scrollbar with a dynamic text I load a variable from a txt but the scrollbar doesnt work cuould you tell me how to make it work
Thanks
Scroll Bar For Dynamic Text.
Hi all i am looking for a good scroll bar for my web site, at the mo the scroll bar which I have only scrolls one step at the time, can anyone please point me in the direction of a decent scroll bar.
thanks
Mike h Boleg
|