Need some help to dynamically Load text

You can check the site here.

www.t-aos.com

The News Ticker is dynamically loaded from a txt file.

I want to do the same thing with the news section underneath it. Would anyone know how i could go about doing this ?

It had to be html capable also, so i can link stuff and make the colors different for the title and body of text. Its a pain in the butt to have to open the fla and edit the news through that.

LOAD VARIABLES TUTORAIL
try this tutorial if you have any other problems post some code when you start it.

Not to mention that news ticker looks a lot like the head labs news ticker component for Flash MX.

The tutorial for it can be found on this site.

Ok, the news ticker is dynamically loaded. It is Head Lab one.

The tutorial you linked me too was very confusing. It did not give a step by step way of how to create dynamically loaded text in a scrolling news section.

Just gave some sample codes with explination. Still not sure which to use and where to put it. Do i convert the text into symbol or do i just give it instance name and create the loadvariable in the same layer and tell it to load in in the news section instance name ?

Ah well. You know any other tutorials ?

Hey Arqos,

Pls Check the attached fla, and tell us how it goes!

yours,
h88

PS. I Think everyone knows how to add nodes to an XML file!

btw, i’d like yout to have a look at this thread too!
http://www.kirupaforum.com/showthread.php?s=&threadid=8292

Never used xml. But i can look it up. Ill check the zip.

its very simple, just add for each message:

< message >ur message< /message > , w/o the spaces!

yours,
h88

You guys seem to be confused on what im talking about.
I checked the marquee fla.

Im not trying to dynamically load text for the news ticker . I said this twice. Im using the headlab news ticker and its already dynamically loaded.

What im trying to do, is dynamically load text into the News Section, The big Text Box, with all the news. I still dont know exactly what to do for this. I need the text to load in correctlywith spaces and headings / different colors for heading.

:frowning:

then, check that thread:

http://www.kirupaforum.com/showthread.php?s=&threadid=8292&highlight=txt%2Fasp

hope this helps

yours,
h88

Try this tutorial. It teaches you how to dynamically load text into a text box in Flash MX using the Scrollbar componant.

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

You can HTML enable the textbox so you can use font tags and other font formatting tags in HTML to change the color, size, font of your text as well as underline, make it bold, make it italic, or make a link.

To HTML enable the textbox, follow that tutorial, but use this code instead of the code given (or just modify the code)…

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

Thx. Im going to give this a try. Does the action script need to go in the same layer as the news text box ? And Do i just put it in frame 1 ?

You put the AS in the frame you want the text to load in.

It doesn’t have to be on any specific layer, just in the frame where you want your text to load.