Scrollbar With Dynamic Text Field?
I have a dynamic text field, multi-line. I have attached a scrollbar component to it via drag and drop.It is empty but gets text dumped into it via AS's appendText() method when the user clicks a button.It works, but if there are more lines than what fits into the text field, the scroll bar does not "activate", and allow the user to scroll to see all of it.I'm sure I am missing something simple here, can anyone please help. Thanks.
Adobe > ActionScript 3
Posted on: 11/25/2008 01:11:11 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
ScrollBar And A Dynamic Text Field
Need some help with the following.
I'm using Flash MX on Windows Platform.
How do I make a ScrollBar work in a Dynamic Text Field where TEXT is being loaded using the LoadVar?
I created a txt document and then a dynamic text field and then I placed the loadvar in the frame and everything worked great.
I wanted to make it scrollable so I added the Scroll Bar component and gave my Dynamic text field an instance name and told the scroll bar what it was, but when I test the movie the scroll bar does not work, and there's plenty of text to scroll.
What else do I need to do to make it work?
Assigning A Scrollbar To A Dynamic Text Field
Ok, so I have a dynamic text field, it brings up the text document "test.txt" when the movie loads. I dragged the scrollbar component and it attached to the box. But it just sits there when I load the movie, I suppose I need some sort of actionscript assigning that scrollbar to that text box. How would I do that? Thanks.
Dynamic Text Field And Scrollbar Prob
got my dynamic text field going and reading a text file ok. Then I attach a scrollbar component to it and it all looks fine...
when I publish, I see my dynamic text, but it won't scroll and I know for a fact that it's way bigger than the window I have created.
anyone know why?
P.S. When I change it to input text and type stuff in it starts to scroll, but that's no good.
Thanks in advance. -j
Scrollbar Component + Dynamic Text Field
I have a dynamic text field, and a scrollbar component attached to it, for some reason the scrollbar does not recognise when there is text dynamically entered into and thus the scrollbar does not react.
Any ideas guys?
lee
Autohide Scrollbar On A Dynamic Text Field?
I'm loading some text into a dynamic text field from a database and have that working fine. The content will change at the whim of the client and what I'd like to do would be to have a scrollbar appear when it's neeed. ie- if there is a short bit of content then there would be no scrollbar, but if they enter in several paragraphs then the scrollbar should appear.
I'm looking for any ideas on how to go about this. I managed to use a textarea and have it work perfectly, but I can only get the content loaded into it when everything is in one swf file. In the final application of all this there will be a main.swf that will in turn load the content swf into another layer, when I do it that way the textarea stops talking to the databse for some reason... because of that I'd rather do it with a dynamic text field since I have that working with multiple layers and still connecting to the db properly.
Any suggestions about the autohide scrollbar for a dynamic text field are welcome.
Thanks in advance.
datter
Dynamic Text Field Scrollbar (not Component)
hello,
i would like to create a scrollbar for a dynamic textfield but do not want to use the common component.
i found this script:
http://www.flashdesignerzone.com/tutorials/t1033.php
it seems very easy, but don't manage to have it work ... and i don't understand how it manages the scrolling. it's only the 4 most essential lines i do not understand.
regards,
.d
Custom Scrollbar For Dynamic Text Field
I know there are a million tuts out there but I can't find one about building my own custom scrollbar using images!
Anyone know how to do this?
Can the UI scrollbar images be replaced?
I'm trying to find a timely solution to this, since I need to do this all the time. I have a scrollTrack and dragBar that I want to use for my site, but I can't get the code to work properly with a dynamic text field, so I want to build it from scratch and finally learn how to do it without the UI components (if they can't be skinned)
Any Flash GURUs out there?
thanx~
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
Dynamic Text Field Scrollbar Using Variable Text
Hello there,
Has anyone beat this problem?
I have a txt file that I can successfully display through variables. I can successfully make a dynamic text field with a scrollbar. I CANNOT put a scrollbar on a dynamic text field that is pulling a varable from a txt file.
The text shows, but the scrollbar does not work (but is present).
I attached the files in a zip if anyone wants a look. Please let me know what you think.
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
Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...
Currently I'm using javascript which works fine to pass text from textfield A to textfield B:
Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.
Your help/advice would be greatly appreciated,
-Scott
Scrollbar In Dynmic Text Field.
Well, after extensive reading of the help files I am forced to seek your'alls help.
I cannot get the scrollbar component to actually scroll text.
Please fill me in on the steps.
I've named my dynamic text field
I've pointed the scrollbar component to that name
I've filled in the text field with text using a variable.
So what am I missing?
Thanks folks,,,,
Editing Text In A Scrollbar Field
Right, ive just got MX. This is great because it has alowed me to use scroll bars in the news section of a site. Only problem is i cant edit the way the text looks. I can change the font etc but it is uniform to all the text. Is there anyway of having different parts of the text in different colours?
Dynamically Add Scrollbar To A Text Field
Hi ActionScripters,
I'm trying to add a (vertical) scrollbar to a text field. The text field itself is dynamically dropped in using createTextField from a movie clip.
The data for the text field comes from a text file. But I'm not able to get the scroll bar to work.
Here's what I'm working on:
http://www.arunmahendrakar.com/Misc/Development.zip
Please let me know what I'm doing wrong.
Thanks in advance
Arun
How To Have Scrollbar For A Static Text Field?
I know how to make scrollbar for a Dynamic Text Field. But I don't want to use Dynamic because in the Dynamic text I cannot choose to have Bold or Italic fonts for a single word and the whole context gets bold/italic instead.
Thats why I want to use static field with scrollbar, to be able to make some words Bold and have scrollbar at the same time.
I can imagin that if there is a way to make a single word Bold in a dynamic text field, then all my problem would be solved...
Do you have a hint??? //Thanx
Scrollbar Component Won't Snap To Text Field...why?
Ok I have both UI Component Set 1 and 2 installed in MX.
If I create a new Flash movie, create a dynamic text field with an instance name and then drag teh scrollbar component out of the components panel and onto the text field, it will snap to whatever side I am nearest.
Now, I have a movie that I have been working on and I just created a dynamic text field with a unique instance name on the root timeline. Nothing fancy...that's it. It has multiline set and no selection and no HTMl encoding. When I grab a fresh copy of the scrollbar component (from either component set) and try to get it to snap to my text field...it doesn't work. It recognizes what text field it is over and will scroll the text within it, but it never snaps to a side nor does it resize to the text box width (or height).
Any ideas? This is wacked.
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.
Sync Movieclip To Text Field & Scrollbar?
I've got a dynamic text box that's controlled with a scrollBar component. The text is updated dynamically, but it's consistent text.
Now, I've got an arrow_mc movieclip that points to the first line of each paragraph as the audio hits that paragraph. Is there a way I can have the arrow scroll up and down with the textbox when the user drags the scrollbar???
Thanks!!
How To Apply Scrollbar To The Static Text Field?
To be able to have Bold or Italic word in the a text field I have to use Static Text Field. At the same time want to have a scrollbar which I can not apply to static text field.
I have 2 choices:
a. Eiether be able to to change the text in Dynamic Text Field to be flexible for Bold and Italic properties or
b. I need to make Static Text Field to have scrollbar.
Do you have a hint?
//Thanx
Edited: 02/11/2007 at 11:52:01 AM by SwedKim
Draggable Scrollbar For Text Field (No Arrows)
I am attempting to create a draggable scrollbar for a dynamic text field including only a sliding thumb and track (no arrows). ex. www.ultimavez.com
I am new to Flash 8 and have a relatively good understanding for the program based on the length of time I’ve been using it, with the exception of creating/customizing components. If someone is able to assist me, please break the solution down as though you were explaining it to a 10 year old.
Thanks
Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.
using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.
here's the fla if i haven't been clear.
thanks for any/all help,
josh
Fading In My Dinamic Text Field Disables The Scrollbar.
situation:
mc with a dynamic text field, scrollbar.
i need it to fade in when the mouse rolls over the mc.
consequently, i need it to fade out when the mouse rolls out.
i've been working on this, and i have been able to work out the fadein/fadeout thing..but the scrollbar gets disabled for some reason.
i attach the fla for anyone to take a stab at it.
Thanks .
Asp Database Field Loaded Into Dynamic Text Field -HELP
Hi all,
after much trial and error and still having troubles i thought i would ask people that maybe know what there doing.
Im using Flash 8 pro, and have placed textarea component on stage and gave it an instantce name, need to pull a single record from a record database using asp.
This is my approach but if there is an even easier way let me know.
I have created the following pages.
webpage.asp (end result web page that shows the text field to user)
script.asp( asp script that sends data back/forth to flash
i used the FlashVars param to pass a variable into the flash movie.
variable is named auto_num. im using this to then pass it back out of flash to filter the recordset.
then on the flash movie.swf. all on root level. i have the following code
var text_value; //(this is the value sent back from asp page string)
//not sure if i needed to declare it but did anyways.
var_sender = new LoadVars();
myData = new LoadVars();
var_sender.auto_number = auto_num //(auto_num is loaded flashvars param)
myData.onLoad = function() {
my_text_1.text = this.text_value
};
myData.sendAndLoad("http://www.********.com/script.asp", myData ,"POST");
on the script page i have a record set that filters for form variable named auto_number. all of code is in asp. I call a response.write to write the text_value back to the flash movie.
here is the heart of the script.asp code. not showing the record set filtering stuff.
<% Dim text_value
text_value = "text_value="&(Recordset1.Fields.Item("long_des"). Value)
response.write(text_value)
%>
but i get undefined and can never get the variables to load into the flash movie. i want to export as flash player 6 or 7. what am i doing wrong here?
So in a nutshell, i have an asp page that shows a record and would like to display the long description field of that record in a flash dynamic text box.
I can make it work by passing the entire long description from record set within the flashvars param but that seems like a real clunky way to do it pasing that much text within the flashvars param.
Does anyone know of simple database connectivity kits that extend flash for the semi-programmer guys?
How To Add Text In A Scrollbar Text Field?
Hi,
I have one problem with my new scrollbar in AS3. I made one of like this scrollbar from this URL http://flashmymind.com/Tutorials/Actionscript/Advanced/scrollbar.php
There´s the step number 7 which adds some text next to scrollbar onto textfield. I want to fill text more easily than like that way, so do you know what I need to do to make it better?
Please answer quickly, the project´s deadline is pretty near..
Input Text Field To Dynamic Text Field
Ok, I have an input text field with a variable name of "enter", and a dynamic text field with a variable name of "display". I also have a button on the stage. I want it so that when you press the button, it checks what the user has put into the input text field, and if it is valid it will display a certain message in the dynamic text field.
For example:
If the user types in "hydrogen" and then clicks the button, I want the dynamic text field to display the letter H. Likewise, if the user types in "oxygen" and then clicks the button, I want the dynamic text field to display the letter O. And finally, if the user types in something that is not specified in the code, it will just display "Not Valid".
I tried doing this with an on(release) action and then some if statements, but nomatter what I typed in it would always display H. I'm probably overlooking something simple, but nonetheless, I need help. Thanks
Input Text Field Into Dynamic Text Field
Hey guys,
I'm really new to AS 3.0. I would like to transmit information from an input text field into a dynamic text field once a submit button is clicked.
Any help would be greatly appreciated.
I'm using CS3 AS 3.0. Thanks!
[AS2] Changing Text In Dynamic Text Field With Dynamic Instance Name
I dont know what I am missing here but what I want to do is change the text inside a dynamic text field via actionscript. the code I am using runs in a loop within a function. Trace is outputting the correct values.
PHP Code:
for(i=0; i<=4; i++) {
if(_root["order_"+ q][i] == 0) {
["order_"+ i]text = "First";
trace("first");
} else if (_root["order_"+ q][i] == 1) {
["order_"+ i]text = "Second";
trace("Second");
} else if (_root["order_"+ q][i] == 2) {
["order_"+ i]text = "Third";
trace("Third");
} else if (_root["order_"+ q][i] == 3) {
["order_"+ i]text = "Fourth";
trace("Fourth");
} else if (_root["order_"+ q][i] == 4) {
["order_"+ i]text = "Fifth";
trace("Fifth");
}
}
basically I want to do this -
PHP Code:
order_0.text = "First";
So how can I change this line to work as expected?
PHP Code:
["order_"+ i]text = "First";
EDIT- The instance names for the dynamic text fields are set
Thanks
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
Dynamic Text Field Receiving Dynamic Variables...
or something like that . . .
This is my problem: I'm generating _global variables via XML. Each variable represents different types of copy, of varying lengths. For Example:
_global.introduction = xmlDoc_xml.firstChild.firstChild.nodeValue;
_global.body = xmlDoc_xml.firstChild.firstChild.firstChild.nodeVa lue;
_global.summary = xmlDoc_xml.firstChild.firstChild.firstChild.firstC hild.nodeValue;
I want to create ONE text field, with scrolling, that will act as a template to house all types of content. I've assigned a variable that equals "content" to this text field. . . My problem is, I can't get the text field variable (content) to dynamically swap for the global variable (_global.introduction) in order to display the proper content.
This seems simple, but something's not working for me. Any thoughts? . . . BIG thanks in advance!
Dynamic Text Field And Dynamic Xml Field
Good evening,
After days of debugging, I find myself cornered by identifying the absence of content in a dynamic xml field.
I am trying to build a function that will move the playhead to a new frame "waiting" when the field is undefined. When the field is populated, the playhead will move to an active frame "vote".
I have attempted several variations on the following code and nothing has worked as of yet.
if (_root.mc_xml.b1v.text=="") {
trace("waiting");
} else if {
trace("vote");
}
// never got it to print anything but vote
There are five possible strings that can dynamically populate b1v from the xml: "Aye", "Nay", "Abstain", "Absent", "NP".
When the vote is complete the xml nodes and their children disappear and flash sees the xml text field as undefined.
What is the correct AS to target or check for null or undefined?
is null
=null
!=null
=undefined
is undefined
!=undefined
I just need a boolean answer. Please someone release me from this loop.
Thanks
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
Help With Dynamic Text Scrollbar ?
My problem is that after I create a scrollbar area where I have my text in them, I can't add pictures in that Dynamic Text area. I want to be able to scroll but w/ both pictures and text.
Please answer soon,
Hong-An
Dynamic Text With Scrollbar
this has been driving me crazy for a while now, and the most annoying thing is that i know there is a simple solution!
when loading text from a .txt file into a dynamic text box i can't get the scrollbar to work. it snaps to my text field etc. and the text appears in the swf as it should but the scrollbar sits there all sad and dim!
i have been trying some stuff with onData etc. but i reckon i have the syntax all haywire. please, please, please can one of you pro-flashers out there help me out.
the odd thing is that it works if i place text directly into the textfield in the fla - but that's hardly dynamic is it!!
Can Someone Help With A Scrollbar And Dynamic Text Box
Hi all,
I have been trying to get a textbox that loads dynamic text to scroll using a dynamic scrollbar using actionscript.
I took an example from Joshua Davis's Flash to the core website. I used his scrollBar example and tried to adapt it to a horizontal version and instead of it scrolling a movieclip it would see how many lines of text there were and scroll it.
I have kind of struck a dead end and cant get the scroller to interact with the textbox. I have attached the file I am working on and in the hope that someone might take a look at it and see if they can get it to work for me or tell me how I can change the code so that it works properly.
If anyone could take a look at the file and tell me what I am doing wrong then I would really appreciate it. I look forward to any replies.
Pixel magik
Dynamic Text+scrollbar
I have made a dynamic textfield which refer to text document. Now I want to make a scrollbar either in the text field or outside it in my site, but I don't have a clue how to do that!!
Dynamic Text And Scrollbar
I was actually hoping that you'd be able to offer me some help on a question I have about a scrollbar. I'm using flash mx2004. I've got a dynamic text box, with loads a separate .txt file. I've attached a scrollbar to it, and it seems to have snapped and attached correctly, but it doesn't actually "Scroll" when I test the movie. Very odd. I have multiline selected, and I also have "scrollable" selected on the text box.
Here are links to the files that you can download and take a look (I would SO appreciate it!!)
http://www.geocities.com/tarambuehner/playing.fla
http://www.geocities.com/tarambuehner/ramblings.txt
Thanks for lending me your expertise and time.
Tara
Dynamic Text With Scrollbar
I downloaded the .fla from this tutorial, and I've tried to remove the scrollbar (so I could have only the textfield and the scroll up/down buttons), without any luck. Anybody know how to remove the scrollbar and still keep the scroll up/down buttons functional?
Dynamic Text With Scrollbar
Ok I realise that this question has been asked a fair few times on this forum but having searched for a while nothing seems to answer exactly what I am looking for.
Basically I need a scroll bar which scrolls dymanically loaded text but I don't want to use the MX UI component. If anyone can either direct me towards a tutorial on this site that I have missed, or to one somewhere else, that would be great.
Dynamic Text & Scrollbar
If I load a dynamic text field by setting the variable for the field equal to the text, the scrollbar on that field doens't work. How do I set the scrollbar to scroll the right amount to fill the amount of dynamically loaded text?
Scrollbar On Dynamic Text
sorry if this is an ongoing question from newbs or not
Ive used the scrollbar component on a dyn text box and it works fine when i test the scene, but when i test the whole movie the scrollbar doesnt work. It is greyed out.
I have no idea why this is happening. Any suggestions?
I even tried making my own through various tutorials but got lost pretty fast.
thanx in advance
Scrollbar, Dynamic Text
Hey,
I've got a system setup where you can visit a PHP page and it will get some text from a database and display it in a little flash area. It's great, except....
I have put a Dynamic text box and a standard-issue flash scroll bar together. But, guess what, it doesn't work. I've read that it doesn't work straight off with dynamic text like this. So how would I make it work? I presume some fancy actionscript!
Many thanks,
Ben
Scrollbar For Dynamic Text.
I'm looking for a nice scrollbar (component maybe) for dynamic text. I've been using the FFH Text Scrollbar component for a while as well as the UI Scrollbar Component. Both are good (FFH ligher in size).
I'm looking for a scrollbar that doesn't dynamicly scale the scroller in the middle though.
I have seen some like this for dynamic text on some websites but never have been able to find one (or figure out how to write one).
Scrollbar With Dynamic Text
I was wondering if anybody here had any idea how to make a scrollbar that would scroll text in a dynamic text box that loaded a text file... I can't really find any tutorials anywhere that are specifically for that, and even when I do they either assume you know too much or they have a lot of bugs in them. I started with the scrollbar tutorial from kirupa.com and finished it successfully, but I could not figure out how to get it to work correctly with dynamic text.
help would be appreciated, thanks.
|