ActionScript 3.0 :: Auto-scrolling For TextArea?
Jan 19, 2009TextArea is on scene with log_txt name
ActionScript Code:
import fl.controls.ScrollPolicy;
import fl.containers.ScrollPane;
[code].....
TextArea is on scene with log_txt name
ActionScript Code:
import fl.controls.ScrollPolicy;
import fl.containers.ScrollPane;
[code].....
Is there a way to get a TextArea to automatically scroll down when text is added to it?I have had a look around but havent found anything that works.
View 2 RepliesI'm trying to auto-resize a Spark TextArea using Flex Hero but having no luck.
EDIT: To clarify, I want to auto-resize the TextArea when typing, so there's never a scroll bar.
I have a chat in which when the text area is full and start the scrollbar, the scrolling always go to the top and I want to go to the bottom. I try to use the vPosition but i get errors. This is basically what I want to get. var my_ta:mx.controls.TextArea;my_ta.vPosition = my_ta.maxVPosition;
View 9 RepliesI have a TextArea control, and sliding the scrollbar all the way down always doesn't show all the text.I think it has something to do with me changing the typeface, because I noticed that when I do the setStyle to change the textFormat style, the textHeight value doesn't change.Has anyone ran into something like this? can I at least access the TextArea sources so I can fix this? Or is there a way to don't know, subclass it and fix it kinda easily?you can check it here: http:/[url].... if you see the scrolling texts, you can try scrolling all the way down, and then selecting the text and pulling farther down, sometimes it'll show more text. Sorry about the spanish.This is an example of a text that usually fails to scroll all the way down[code]..........
View 2 RepliesI'm pretty familiar with Actionscript, and this one has me completely stumped. What I'm trying to do is to prevent people from scrolling a TextArea with their mouse wheel, as the TextArea is inside of a ScrollPane, and at the moment scrolling one will scroll the other (double scrolling). Initially I tried[code]...
View 1 RepliesI need the ability to create a TextArea entity in a constrained area (i.e., it is located at x and y and is w pixels wide and h pixels high and have that never change.), containing a proportional width font. As such, no 'num char entry limit' strategy is feasible. They need to be able to fill the entire area, and if that means 1,000 period '.' characters, or 200 '#' or "W' characters, then so be it.
The two lines following this one consist of 30 periods followed by 30 Ws.
..............................
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
I cannot limit a user to 30 characters. They need to be limited by using a TextArea that will let itself be filled until full, and then refuse further input until space is created by removing existing content. I then need to print that TextArea _as rendered on the user's screen_. Any 'scrolled' lines would be unprintable, and therefore the user's entry must be limited BEFORE any scrolling occurs, or contrariwise, when scrolling occurs, the last entered content would need to be removed and the entity forced to un-scroll. I can program this. It won't be elegant, and in fact will be quite stupid, as any programming where a change event is called with each keystroke or paste and then conditions tested is inefficient, wasteful, and well.
There's an annoying bug in AIR (or in the TextArea component itself but showing up only in AIR) because of which, if you do:
my_textarea.htmlText=someLongText;
my_textarea.textField.scrollV=someValue;
the second instruction just does not work, and the textarea scrolls to the beginning (as a consequence of the first assignment). Has anyone else run into this and have you come up with any workaround?
This only happens in AIR, not FP, and only with TextArea, not with a plain input text.
I don't want to allow linewise scrolling(means through arrow key) in textArea in noneditable mode
View 1 RepliesI have a problem with textArea component. Whenever I press the scrollbar down and release it, all text inside my textArea get selected.
View 4 Repliesi have completed this script which i have learnt so how do i convert this script into automated scroll when i mouse over the image to left or right by tracking the mouse ?
View 7 RepliesI have this scrollpanel that gets its source from another container that builds content dynamically from an xml. So the content is in the scrollpanel with scroll. No i want to auto-scroll the content depending on the mouse position within that scrollpanel
[Code]...
the result of this is a flickering of the content.
I'm currently trying to add an autoscrolling text box. The text that will display in the box will be variable. I want this text to then scroll left and right to display all the characters.I have added a scrollbar from the components, but i want the text to scroll by itself rather than have to drag the scrollbar manually if the text string is too long. How do i create the variable text entry?How do i make that variable text scroll?What im working on is a very simple game. After the into screen i want a box to ask for the names of two teams. The player types in the variables. The text entered is then displayed in the respective text boxes, IF the text is too long to all fit in the box i want it to autoscroll, if it fits then no scrolling is necessary.
View 3 RepliesI'm creating a Flash game...blackjack, actually. It uses a back-end made from Java.Anyway, there's a basic chat in the game, where new messages are added to the bottom...pretty much your standard chat window.This is how I do it now:txtArea.verticalScrollPosition = txtArea.maxVerticalScrollPosition;However, that does not always work. Sometimes it does, sometimes it doesn't (oddly enough). I'm looking for a permanent solution. txtArea is the component TextArea (d'uh), and I'm using ActionScript 2.0.
View 2 RepliesIn my air app I have a list(vertical) on the left side, like a sidebar. It`s working fine! The things is I want to put some animation in this list, which all the times when I select one item all the list moves, and this item goes to the center of the list!Someone have same example or URL, or something?
View 2 Repliesi'm finding that the output window is increasingly useless for debugging. i tend to spam it with hundreds of tracces per second, as a result of tracing things in per-frame functions. unfortunately the useful part of the output for me is usuall the last message that was written.
this is a problem because the output window does not automatically scroll down. Once there's more than enough messages to fill up the visible portion, i find it loses all usefulness, and scrolling through repetitive data to find the part where i did something, to see what output i got, is slow and tedious
i'm aware that stemming some of the flow of debug messages might be a good idea, but this slows down work as i often have to alter the structure of my code in ways which are otherwise useless, to only get debug messages to fire exactly when needed, as well as often having to place them multiple times.
making the output window automatically scroll would be the most ideal solution. in lieu of that i'm almost considering writing my own debug window with text objects just so i can make it behave usefully, but that seems silly and i'd rather not.
I've created an MP3 player based on the now classic code at:http:[url]....One of the shortcomings of the player (that users seem to notice) is that the listbox doesn't scroll to reveal the currently selected item when the player is in "continuous" mode. The selected items disappear from view. I'm wondering if using FListbox.getScrollPosition and FListbox.setScrollPosition could be used to get the listbox menu to update and scroll the current selection to the top of the menu screen. If the listbox data object siimply returns an index number it seems like that number could be used to feed the getScrollPosition function.
View 3 RepliesHow do you scroll an editable TextArea (Flex Hero) on a touch device? I am referring to the situation where the text does not fit in the TextArea height.When I try to tap and drag the text gets selected and not scrolled... Am I missing a something here? I am using verticalScrollPolicy = on (also tried auto).I am testing the code in the Blackberry Playbook simulator (my targeted device for my app).
View 2 RepliesBut this is only for 1 movieclip. And I need the entire stage and everything of whats in it (except for the layer with the background image) to be moved this way. But how?Also want the scroll to be restricted to a max y-position of 860px even if the entire stage goes as far as a height of 1508px.
View 7 RepliesSo I have this movieclip setup so that when you rollover it it activates a scrolling feature where the clip (just text really) moves up and down with the location of your mouse so you don't need to use a scroll bar to scroll. Problem is it continues to scroll even when you're not over the clip.
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
} var b = stroke.getBounds(_root);
function scrollPanel() {
[Code] .....
I am currently working on a interactive map that I am building in flash. I need to figure out if there is a way to code something so that we can have our map zoomed in, so it is only showing a section of the map in the veiwport at a time, but when the mouse reaches the edge of the screen I want it to automatically scroll with it, up, down, over, etc.
View 1 Repliesim after achieving an effect similar to movie credits with text automatically scrolling upwards, im loading the text in via xml and have for example
item one
item two
item three
[code].....
[Code]...
i have the above code wherein i load data from external text file i want the text to be vertcically auto scrolling on load without any scroll bar
if it's possible to prevent a textfield from auto-scrolling on highlight when it's height is smaller than it's autoSize height. selectable = false is not an option, and the smaller height is a requirement, can't make it proper height and then mask it.
View 4 RepliesI put a text area component on stage and set the vertical scrolling to Auto, so now when ever I have to much text the scroll bar pops up, but the problem is that I can't get the scroll bar to always be on the bottom, so when ever I add more text I always have to use my mouse and drag the scroll bar to view the latest info, is there a way that I can see the latest update without having to manually scroll down?
View 1 Repliesi wan't to create a marquee or auto scrolling text effect in flash using AS 1.0.
View 1 RepliesI know ZERO about flash/actionscript and have been tasked with creating a vertical text/html scroller. This would act like a news ticker but would scroll several paragraphs of text with images vertically continuously.
Here is a sample of the data that i would like to scroll vertically:
<image>
some text here
some more text
<image>
more text
more text
This pattern would repeat and the script would continuously scroll the information. I will be pulling that data from XML as HTML but i think i have that part under control. Just cant seem to get a sample of scrolling html/text.
I'm new to oop and I'm trying to convert a auto scrolling TextField into a class. I guess it has something to do with there not being a stage when the class is instantiated but I'm not sure how to get around it. my code:
[Code]...
A little much put in the title, but my question is just that. I have the following AS3 code for my textarea...
addChild(Texta1);
Texta1.alpha = 0;
Texta1.blendMode = BlendMode.LAYER;
[Code].....
Unfortunately, when I start placing text in this text area. Either through code or user input, the text will be placed on a new line after about 80-100 pixels. Yet I want it to start a new line after 320 pixels (it's length).
I'm making an interactive film. At certain points within the film, the viewer has the ability to select from a few options that will direct them to an external video clip (they are flashback scenes). The main story pauses when the user selects a flashback scene and I'm clear on how to achieve this.
However, my issue is that once the flashback scene ends and the external video closes, I'm not sure how the main story will resume. Is it possible for it to auto-play (resume) in some way? My last resort would be to have the viewer select a play button - this is only because I do not want a break in the narrative and want to limit the amount of clicks the viewer has to make.