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








Can You Load Scrolling Text Dynamically Without "hard-coding" It?


I made a post about this already but the tutorial someone gave me saw for "hard-coding" text to scroll.

I was wondering if there is a way to scroll text that has been loaded into a dynamic text field.

I have this so far

loadVariablesNum("file.txt",0);

I need to know how to make that file.txt file scroll up and down so all that needs to be changed is the txt file itself and nothing else so it can update on the site.

Thanks in advance to anyone that can help me out with this proble.




FlashKit > Flash Help > Flash Newbies
Posted on: 04-29-2003, 06:11 PM


View Complete Forum Thread with Replies

Sponsored Links:

Dynamically Load Files Into A Scrolling Text Box
I am currently developing a website and need to construct a text box that loads files that will be available for external download, into the scrolling box. Can this be done??

View Replies !    View Related
Coding .jpgs Into Scrolling Text?
Ok, here's the scenario:

I've made some scrolling text, everything works, etc...now I'd like to include a picture within the text(i.e.-the text will wrap around this image). So far, I've used html code("<img border=0 src=images/map_overhead.jpg align=right width=190 height=143>") to try this-it hasn't worked. When tested, it always writes out this line of code on the screen....any suggestions or help?? Please? Thanks!!

View Replies !    View Related
Hard Coding Buttons
Ok, so i have a button, which, upon rollover, reveals another button on top of it. On rollout, the second button dissapears once again.

How can i make it so that when rolling over the NEW (second) button that appears, the rollOut of the old (first) button is triggered. Ie, i want to be able to rollover and click the NEW (second) button, WITHOUT it triggering the rollout of the old (first) button underneath it.

Im not sure if hard coding the buttons can do this, so any ideas?

Thanks in advance.

View Replies !    View Related
Calling Xml Elements Without Hard Coding...
looking at xml being placed into flash via actionscript. How would one make it so that pressing a button (with a title like Morocco) call a select element of the xml without hardcoding.

I've gone through some of the tuts on kirupa...and searched.

Help would be appreciated.

View Replies !    View Related
RULE I Learnt Here, NO HARD CODING...so How
I'm trying to communicate with a MC on another timeline...

I'm having problems referencing my actionscript, found in one MC, with the another MC's instances.

without referencing individual instances.

_root.MC_name._alpha+=10;

_root.MovieClip._alpha+=10;


I thank you for your time.

View Replies !    View Related
Hard Coding Vaule In A Game - Faster?
Hi,

can someone tell me if hard coding the values is faster, as opposed to ref a var every time you want to check, for example, if a ball hits a boundary?

I have tried it both ways and the movie goes a lot faster with the hard coded value in. Is this normally the case with hard coded values? Want to know because every thing i read tells me hard coding is bad, but if your game runs much faster with hard coded values. Then should,nt hard coding be more recommednded?

Confused..

View Replies !    View Related
Load Variables From Text File On Hard Drive?
Hello, all.

Can some one help me with an issue I'm having with loading variables from a text file that is sitting on a Hard Drive rather than the server?

I would like each computer station to pull data from the server based on their individual Station IDs (which is defined in the text file on the hard drive).

The path to the text file is C:StationID.txt - I am having trouble with defining the PATH to the text file on the actual hard drive.

Thank you very much

View Replies !    View Related
Scrolling Dynamically Imported Text
Hi there

Seem to be having a problem with scrolling imported text with Flash MX's scrollbar components.

The text is an XML file which has been imported and then set to a text box variable i.e.

mainScreen = this;

where 'mainScreen' is the text box variable and 'this' is the contents of the XML file.

I get the text to display in the text box but it will not scroll.

I have checked that my text box is set up correctly by inputting a load of text into the text box (rather than the dynamic solution that I require) and this allows the text box to scroll.

Hope this is clear......

Thanks in advance

Sean


code for importing XML:

XMLNode.prototype.stripWhite = function () {
function whiteTest(str){
var allWhite = true;
var strLength = str.length;
for (var i = 0; i < strLength; i++) {
if (str.charCodeAt(i) > 32) {
allWhite = false;
break;
}
}
return (allWhite);
}

if (this.nodetype == 1) {
//it's a element; check it's kids
if (this.hasChildnodes) {
var chlength = this.childNodes.length;
for (var i=0;i < chlength; i++) {
this.childnodes[i].stripWhite();
}
}
} else {
if (this.nodetype == 3) {
//it's text; delete if whitespace
if (whiteTest(this.nodeValue)) {
this.nextSibling.stripWhite();
this.removeNode();

}
}
}
}

zepTourDates = new XML();
zepTourDates.onload = function(success){
this.firstChild.stripWhite();

mainScreen = this;

}
zepTourDates.load("zepTourDates.xml");

View Replies !    View Related
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,

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
[F8] Dynamically Scrolling, Resizing Text
Anyone see an FLA similar to this tsunami-ish effect over on Lynda.com's home page ...

trainingbanner.swf

It's a scrolling list which responds to mouse movement and clicks.

The text and URLs are fed dynamically.

Tried to reach the designer without luck.

View Replies !    View Related
Dynamically Scrolling External Text?
hello folks,

if some of you have read my other post about loading external html text into a dynamic text box in flash. Well i've got that part working using the loadVariablesNum("textfilename", 0); on the first frame of the main timeline and a dynamic text box with the "render as html" button checked and the variable name of "text". WOW awesome right :|,

what i want to do is make the text scroll seamlessly and repeatedly by itself. using actionscript if i could, the only problem is that i don't know how to do it. If any of you badass scripters can help with this that would be awesome.

thanks,

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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)

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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!

View Replies !    View Related
Dynamically Creating A Scrolling Text Box
So, I know how to dynamically create a text box. Is it possible to dynamically create this box with scrolling capabilities? Do I need to dynamically attach a scrollbar component? If so, could you explain or give an example?

Many thanks in advance.

Regards,

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
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)

View Replies !    View Related
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 ?

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
[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...

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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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?

View Replies !    View Related
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!

View Replies !    View Related
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!!

View Replies !    View Related
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.

View Replies !    View Related
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?

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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved