Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[FMX] Errata In: Scrolling Dynamically Loaded Text?



it should be LoadVars, with capital "L", in:


Code:
loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.kirupatext;
that makes it turn blue in the editor...
But the tutorial still works wihout the capitalized "L" and that's a mystery to me...



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 12-05-2002, 03:04 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Scrolling Dynamically Loaded Text
I need to load text from a .txt file into a dynamic text box. That's realatively easy....the problem I'm having is getting the scrollbar component to work with the loaded text.....

I have read through macromedias tutorial on this very topic but either don't understand it or it doesn't work..... I'm betting I just don't get it.....

Can someone lay it out in another manner for me..

thanks,

Scrolling Dynamically Loaded Text - How?
I'm using a custom scroller, which scrolls text inside a MC called textinfo - the text is just static text - this works perfectly, I can format and add as much text as I like and it scrolls nicely.

However, one one page, I need to do the same thing but the text needs to come from an external txt file. When I do this, I have to set the text box properties to 'Dynamic' - when I do this and play the movie - the text is invisible.

Basically, how can I scroll dynamic text with my custom scroller?

thanks

Dynamically Loaded Scrolling Text Help Please?
Hi Folks,

I've not looked at this stuff in a while and now I'm trying to use Flash MX 2004 Professional and I'm not that familier with it. I have a text box with dynamically loaded text that I want to scroll but.... not just a line at a time with each click, but smooth scrolling when you hold down the button.. can anyone direct me?

It seems that in this version the scrollbar component isn't there and I can't get scrollpane to work... please, any help is most appreciated, thanks!

Jim

Scrolling Dynamically Loaded Text
The text field scroll property scrolls text vertically by the line. I was wondering if there's any way to scroll dynamically loaded text by the pixel?

Rob

Scrolling Dynamically Loaded Text - Help
I followed the Scrolling Dynamically Loaded Text tutorial & it worked great. The only problem I am running into is I have a huge space after each line. I can't seem to figure out what code to use so I can add <BR> from html at the end of each line.

Test site http://www.rbvll.org/final.html Choose Standings, majors & the file will load but there are spaces.

Properties:
Dynamic Text
Instance Name - scroller
Selectable Text Button

Action Script:

loadText = new loadVars();
loadText.load("majorstandings.txt");
// creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.majorstandingstext;
};

Any help would be greatly appreciated.

Thanks

Deb

Scrolling Dynamically Loaded Text
Ok,

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

i had no problem doing this. BUt my question is now if i load this movie into another one. What must i change?? where do i change the level or something??
I have just got into flash, i used to made everything in swish, but now swish doesnt satisfied my needs.

thx

Scrolling Dynamically Loaded Text Help
This tutorial by Kirupa http://www.kirupa.com/developer/mx/dynamic_scroller.htm I cannot get to work for me. I don't know where the dynamic text that I want to be scrolled should be typed siince I am in MX2004. If you would like to see my .fla just ask. Thanks!!!!



-Dean

Scrolling Dynamically Loaded Text Help
hi,
i've been triing to make it work for 2 days and still nothing appear in my movie. i can see the scrolling and all but no text. i need this beceause it for a client he knows nothing of cumputer so for him writing in a note pad is simple.

maybe it my txt thats is not in ascii i dont know. if you could help me in anyway it would be greatly appreciated.

thanx in advance.

Scrolling Dynamically Loaded Text :( Help
Please help me. I did the tutorial from section Flash MX named "Scrolling Dynamically Loaded Text". Everything is ok, but the distance from the top of the text box is too big, about 20 px. In the tutorial situation it is the same.

I want to place my text directly 10 px under header and I can't do it Can anybody help me?

(see attached image for example)

Dynamically Loaded Text Box - Scrolling
Ive used the tutorial but im on mx2004 and its for mx - and it doesnt work
can anyone edit it so it works for 2004 please?
i assume thats why it wont work as i downloaded the .fla and it wont have it....
thanks

-> http://www.kirupa.com/developer/mx/dynamic_scroller.htm

Please Help With Scrolling Dynamically Loaded Text
Hi, my name is Michael.
I read and applied the tutorial Scrolling Dynamically Loaded Text, on the web site:http://www.kirupa.com/developer/mx/dynamic_scroller.htm, I was great. Only one problem...well, more like 2. The first being: It seems that no matter how large the textbox I make when I play the movie only a limited amount of lines are able to appear in the scroll text when I scroll to the bottom. In other words, I changed the content of the .txt file and replaced it with something much longer, but the scrollbar would only go so far. How do you increase the setting, actions, so that more text is able to 'fit' and scroll to the .txt documents conclusion? I put a paper I wrote in the .txt file and it works but only to a certain section of the paper. I want it to work for the full document.
2nd question. I like the scrollbar, I see it's from the components section. I went into it's belly, so to speak, and edited it pretty good. I was able to change the appearance of the down arrows, the thumb...everything. But I had to work pretty hard to get the scroll thumb into it's new position. I changed it's starting location but it still only goes so far down the scroll track so I adjust the track and the arrows and I can get it to look decent enough, but I want to be able to increase or decrease how far the thumb will go according to whatever I want it to go. I can play with it and make it look appropriate but there must be a quicker way of controlling the thumb, is it in the actions? Which lines? I played with the actions and change the size of the thumb, the size of the track, postitions but I can figure out how to contol the thumb....how far down I want it to go. Can anyone please provide me with the answers to these questions? I would apppreciate it very much. Thank you so much for the tutorials and have a nice day/night.

Michael C. Teniente
tenientemike@yahoo.com

Scrolling Dynamically Loaded Text With Css
I found the following tutorials helpful, but now I want to combine them, but I don't know how.

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

http://www.kirupa.com/developer/mx2004/cssfile.htm

code for the scroller
loadText = new loadVars();
loadText.load("answers.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.answer;
};

code for the css
var format = new TextField.StyleSheet();
var path = "css.css";
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
output.styleSheet = format;
myLoadVar = new LoadVars ();
myLoadVar.load("answers.txt")
myLoadVar.onLoad = function (success){
if (success == true) {
output.variable = "answer"
output.htmlText=myLoadVar.answer;
}
}
} else {
output.text = "Error loading CSS file!";
}
};
stop();
what do I need to change to make this code work together?
thanks for any help!

actual files are located at
http://homepage.mac.com/graphicmuse/...roller_CSS.zip

Scrolling Dynamically Loaded Text.
Well I'm trying to as above, scroll dynamically loaded text in Flash...Wha-hey.
I can follow tutorials to a T but am inexperienced with my own coding.

I found your tutorial for Flash MX but as above, it was for Flash MX and I needed to skin it to my liking and I didn't know the code to change the width and stuff...

I also did this tutorial and got the scrollbar working, however when I tried to make the content dynamically loaded the mask seemed to kill it.

What do I need to do, is there a tutorial which sorta combines both?

Scrolling Dynamically Loaded Text + CSS..? Can It Be Done?
Hi people!

I just did the Kirupa tutorials:

- http://www.kirupa.com/developer/mx/dynamic_scroller.htm
- http://www.kirupa.com/developer/mx2004/css.htm

they both work fine.. but the thing is.. I can't get them to work together! So now I have a text field with css.. and I've put UIScrollBar component in it.. but the scrollbar won't show! Please help!

HELP Scrolling Dynamically Loaded Text
For some reason when i export the flash movie the scrollerr UIScroller is not visible unitl i refresh the screen any help?

Scrolling Dynamically Loaded Text
There is a great tutorial on scrolling dynamically loaded text by Kirupa.Chinnathambi. http://www.kirupa.com/developer/mx/dynamic_scroller.htm Thank you very much. It is a great and useful tutorial. Just wondering if it is possible to embed a hyperlink within the text file. Thanks in advance for the help.

Michael

Scrolling Dynamically Loaded Text Within A MC
OK, I have an external text file that I have load into a dynamic text field which is in a movie clip.

Right now, I have a scroll bar that scrolls the mc, not the text. So it does scroll the mc which gives the effect of scrolling text, but when I have more text than can fit in the dynamic field it is getting cut off (since it is not the dynamic field that is getting scrolled).

Is it possible to adjust the size of a dynamic text box conditional to the length of external text that is being loaded.

Any help would be great... Thanks.

Scrolling Dynamically Loaded Text
Ok,

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

i had no problem doing this. BUt my question is now if i load this movie into another one. What must i change?? where do i change the level or something??
I have just got into flash, i used to made everything in swish, but now swish doesnt satisfied my needs.

thx

Scrolling Dynamically Loaded Text Help
This tutorial by Kirupa http://www.kirupa.com/developer/mx/dynamic_scroller.htm I cannot get to work for me. I don't know where the dynamic text that I want to be scrolled should be typed siince I am in MX2004. If you would like to see my .fla just ask. Thanks!!!!



-Dean

Scrolling Dynamically Loaded Text Help
hi,
i've been triing to make it work for 2 days and still nothing appear in my movie. i can see the scrolling and all but no text. i need this beceause it for a client he knows nothing of cumputer so for him writing in a note pad is simple.

maybe it my txt thats is not in ascii i dont know. if you could help me in anyway it would be greatly appreciated.

thanx in advance.

Scrolling Dynamically Loaded Text HELP
I see that it can run from a txt, but what about other file, and if I want to add color, more than one color and link it how can I? Thank U.

Scrolling Dynamically Loaded Text :( Help
Please help me. I did the tutorial from section Flash MX named "Scrolling Dynamically Loaded Text". Everything is ok, but the distance from the top of the text box is too big, about 20 px. In the tutorial situation it is the same.

I want to place my text directly 10 px under header and I can't do it Can anybody help me?

(see attached image for example)

Scrolling Dynamically Loaded Text
Hi,
I have created a Flash file with a dynamic textbox that loads content from a text file. I also have placed a UI scrollbar with the textbox and have made the dynamic textbox as its target. When i run the flash file the UI scrollbar still remains inactive. Any ideas how to get this sorted ?

Transparency With Dynamically Loaded Scrolling Text
Umm... is there way to make dynamically loaded scrolling text boxes transparent?

such as the one here: http://seenew.net/onsetIndex.html

in the announcements section?

I can't figure it out, and right now it looks fugly.

Scrolling Dynamically Loaded Text - Flash 8
Has anyone been successful with developing a good tutorial for Scrolling Dynamically Loaded text? I haven't been able to find a good example. I do better learning by example.

Any help would be appreciated.

Scrolling Dynamically Loaded Text From A Txt File?
i have read jesse's tutorial on how to scroll dynamic text / static text ... from a text box, but what i dont know how to do is how to load the EXTERNAL txt file into the dynamic text box...

i have the text box with the variable = TEXT
and i done all the codeing for the buttons n all the tutorial says to
and the buttons work fine, the scrolling works fine, but the only problem is loading in the text into the dynamic text box ?

what am i doin wrong ?
please help me
if u need more knoladge of my problem please let me know.

Dynamically Loaded Text Scrolling Problem
Hey guys, I'm having a problem with my guestbook text field in my SWF. What is happening is that the textfield is being populated by a .txt document, all of which works well.

The problem is that when I scroll the text field it will scroll the section of text that is currently viewable in the text field but not the entire text which has populated the textfield.

This is the code for the scroller:

Code:
fscommand("allowscale", "true");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 4;
y = dragger._y;
top = main._y;
bottom = main._y+maskMC._height-main._height-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
main._y += dy;
};
};
stop();
the instance name for the textfield is "main". I know the entire text field has all of the content because when i use the simple textField.scroll method it will display the other content thats in there.

So basically how do I have the textfield expand to the length of it content when the content is loaded from the .txt file?

this is probably as clear as mud...sorry
cheers
Rhys

Smooth Scrolling Dynamically Loaded Text.
How do I make my dynamically loaded text scroll smoothly?

Scrolling Dynamically Loaded Text By Kirupa
Hello there, I would like to ask about the text scroller tutorial by Kirupa.

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

Currently I am trying to have the text scroller inside a movieclip (so, a movieclip with the text scroller inside it) as I am going to call it using the attachMovie.

Problem is, it just doesn't work when put inside a movieclip. Does anyone knows about this issue? Any solution to it?

Thank you

Scrolling Dynamically Loaded Text - Flash MX
Hi all,
I have a text box which dynamically loads the information from a .txt file. I want to scroll the text, with buttons that I have made(not the component scroll bar that comes with Flash MX), up and down through the text I have. I've tried many different scripts, and none seem to work. Is there a good concise walkthrough for this anywhere? or can someone steer me in the right direction? any help would be much appreciated,

Thank you very much,
gb

Scrolling Dynamically Loaded Text Error
I have used the example of this under "FLASH MX" on this site, but i keep gettong this error
**Warning** Scene=Scene 1, layer=text, frame=1:Line 1: Case-insensitive identifier 'loadVars' will obscure built-in object 'LoadVars'.
loadText = new loadVars();
Total ActionScript Errors: 1 Reported Errors: 1

Can any1 help?

Scrolling Dynamically Loaded Text Tweak?
Used the scroller at http://www.kirupa.com/developer/mx/dynamic_scroller.htm but is there some way to hide it when its not needed?
How do you do that?

F8 - Scrolling Dynamically Loaded Text Error?
I recently tried the Scrolling Dynamically Loaded Text tutorial posted by Kirupa here ...

It is a really straight forward tute, and I duplicated it exactly. The only problem is that when I compile my SWF file, I get the following error...

"The identifier 'loadVars' will not resolve to built-in object 'LoadVars' at runtime. loadText = new loadVars();"

After the error, the text scroller does not work. Does anyone know why this would happen? Any help would be much appreciated...

Here is the full AS...

loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.kirupatext;
};

Thanks!

Scrolling Dynamically Loaded Text And Images?
yes, old ? prob. but with the whole dynamic scrolling text box in flash, is it possible to have images with the text, also another part of prob. large blocks of text seem not to even show up.. hopefully someone out would like to help,,, werd!!

Dynamically Loaded, Scrolling, Looping Text
I posted a question regarding this in the wrong area earlier, but I didn't explain myself properly. Can somebody point me in the right direction to create an area of continuously scrolling/looping text that can be dynamically loaded (updated) with a .txt file?

I need it to be similar to this:
http://betterwhois.com/
(The area on the bottom right that is labeled as 'Domain Registrars')

Thanks to all in advance.

Scrolling Dynamically Loaded Text - Question
Have been working on this:

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

But is it possible to change the colour of the textfield to black? I know I can change the font-colour, but what about the "background"?

Anyone?

Smooth Scrolling Dynamically Loaded Text.
How do I make my dynamically loaded text scroll smoothly?

Scrolling Dynamically Loaded Text By Kirupa
Hello there, I would like to ask about the text scroller tutorial by Kirupa.

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

Currently I am trying to have the text scroller inside a movieclip (so, a movieclip with the text scroller inside it) as I am going to call it using the attachMovie.

Problem is, it just doesn't work when put inside a movieclip. Does anyone knows about this issue? Any solution to it?

Thank you

Scrolling Dynamically Loaded Text - Flash MX
Hi all,
I have a text box which dynamically loads the information from a .txt file. I want to scroll the text, with buttons that I have made(not the component scroll bar that comes with Flash MX), up and down through the text I have. I've tried many different scripts, and none seem to work. Is there a good concise walkthrough for this anywhere? or can someone steer me in the right direction? any help would be much appreciated,

Thank you very much,
gb

Scrolling Dynamically Loaded Text Without The Scrollpane Component
Hello, I am wanting to create scrolling dynamically loaded text, but without the scrollpane component in Flash MX. I have tried changing the component look and feel, but this is proving difficult. I created the movie a while ago and the script I have used to scroll the text is:-
onClipEvent (load) {
news_text = "<P ALIGN="Left"><FONT FACE="verdana" SIZE="11" COLOR="#FFFFFF"><B>01/02/02</B> - </P> </FONT>";
}
onClipEvent (enterFrame) {
if (scrolling == "up") {
news_text.scroll--;
}
if (scrolling == "down") {
news_text.scroll++;
}
}
I have put an example of the buttons I want to use at
www.leemawdsley.co.uk/mydesign.swf.

Is there an easy way to adapt this script to dynamically load the text, so it easier to update.

Cheers
max

The Elusive Automatically Scrolling Dynamically Loaded Text Box
Trying to create a news feed with a text box that holds about 5 lines that read in line by line and automatically scrolls down line by line until done, then starts over. Oh yeah, text needs to be loaded from an external file that my client updates. I've looked everywhere and can't find anything. Does that mean it can't be done? Not much room for scroll bars, and it wouldn't have the same effect. Anyone know of a tutorial for this? I'm kind of an amateur at actionscripting....

Please help!

Chris

Scrolling Dynamically Loaded Text Tutorial Problems
Hi I'm looking for some advice, I'm using this script http://www.kirupa.com/developer/mx/dynamic_scroller.htm to load my text that all works fine but my problem is that my text file contacts HTML and I want the Flash movie to display it instead of showing all the coding.

Is there anyway around this?

Auto Scrolling Dynamically Loaded Text - Horizontally
Well my title pretty much says it all.

How do I make a dynamic text area in my flash movie that loads the text I want from an external .txt file AND scrolls it right to left - kind of like a news ticker at the bottom of cnn.

Any help would be sooooo appreciated. Thanks

Scrolling Dynamically Loaded Text/open On Mouseover?
Hi all,

I am trying to create a dynamic text box that will allow for word wrap and scrolling and will open on the mouseover/rollover text or button?

Hope this is clear?

Thanks,

Brook

Scrolling Multiple Dynamically Loaded Text Boxes
Greetings,

I learned a great deal from the demo about Scrolling Dynamically Loaded Text:

http://www.kirupa.com/developer/mx/dynamic_scroller.htm


How would you dynamically load multiple text boxes (some simply dynamically loaded text for descriptions and others that are buttons whose text will change based on content), to appear in the same scroll bar?

(All of the text is aiming to be controlled through XML later on in the process)

Thank you.

Scrolling Dynamically Loaded Text By Kirupa Chinnathambi
Alright I'm trying to work through this tutorial, but I'm not having success. Here is the link: http://www.kirupa.com/developer/mx/dynamic_scroller.htm. Ok I create an .fla that is going to be loaded as an external swf.

First frame I label text, and I draw a dyanmic text box - instance name: scroller - select multiline, and enable scrolling.

I also put a two buttons on the layer to scroll the text. (Also tried it with the component UIscrollbar) Actions on the button are:

on (press) {
onEnterFrame = function() {
this.scroller.scroll -= 1;
}
}
on (release, releaseOutside) {
delete onEnterFrame;
}


Second layer I put a border.

Third layer I put my actions:

loadText = new loadVars();
loadText.load("about.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.abouttext;
};

Then I create a txt file with notepad, save it as about.txt and put the lind abouttext= on the top line of the text file.

I test my movie and I get this error message:

**Warning** Scene=Scene 1, layer=actions, frame=1:Line 3: The identifier 'loadVars' will not resolve to built-in object 'LoadVars' at runtime.
loadText = new loadVars();
Total ActionScript Errors: 1 Reported Errors: 1

Any clue on what to do?

Thanks,

nofx1728

[Flash 8] Help Issues With Dynamically Loaded Scrolling Text
I'm fairly new to action script so this might be me being simple but:

I followed the Scrolling Dynamically Loaded Text tutorial and added it to my flash movie and although it works perfectly in the tests and once published once it loads in the browser all I get is the word undefined at the top of the text box.
I've searched all over for a solution but as I said my understanding of action script is fairly limited.
The script I'm using is:


loadText = new LoadVars();
loadText.load("home.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.hometext;
};


Any help would be greatfully recieved.

Scrolling Dynamically Loaded Text. How To Make Hyperlinks?
This tutorial shows how to dynamic load a .txt file into a text field with a scroller. What I would like to know is how to make hyperlinks in the text. Is that posible and how?

Help Scrolling Dynamically Loaded Text Effect Did Not Work At Embedded Swf.
Dear all,

I just finished "Scrolling Dynamically Loaded Text" tutorial by kirupa chinnathambi. and tried to embed swf in a table for a web site. The scrolling effect and dynamic text were successful in swf file. However, those effects did not work after I embedded swf into a html table. How to solve this problem?

Thanks for your kind help in advance!

Copyright © 2005-08 www.BigResource.com, All rights reserved