PDA

View Full Version : text editing for dynamic content outside Flash


spaciality
05-15-2005, 07:02 PM
hello,
i would like to get textcontent into flash dynamically via an external .txt file. This works fine so far. But i am wondering if there is a method (or software) that can translate text edited in Word into a usable .txt file with the right codes, so not only the URL-coding but also the right tags for bold, size, colour and so on.
A saw something like this on a tutorial here (http://www.actionscript.org/tutorials/intermediate/scrolling_a_text_box_II/index.shtml), but somehow i didn't manage to get it right. Of course, i can do it manually, but the person i am working for can't. He just wants to change some text, give the head a bigger size (or something like that) and wants to save it as a .txt-file with the right codes that Flash can read.
I hope anybody can help me.
thx
spaciality

Ruben
05-16-2005, 10:32 AM
If you two are familiar with html and css then this shouldn't be too hard for you:

http://www.actionscript.org/tutorials/beginner/css_in_flash/index.shtml

- Ruben

spaciality
05-16-2005, 11:27 AM
thanks,
but CSS works only for MX2004, right?
I have MX. Is there a solution for that as well?
thx
Spaciality

Ruben
05-16-2005, 12:14 PM
Ah, well for the css-part I don't think that you can (easily) stylize your textfield with css without mx04...

I think html-loading is supported for flash5 and higher, that'd look somewhat like this:

myXML = new XML();
myXML.load("somefile.html");
myXML.onLoad = function (succes){
if (succes){
_root.myTextfield.htmlText = this;
}
}
// note that myTextfield should be html-enabled

:rolleyes: - Ruben

PS. On top of that you could also load some textfield-properties from a txt-file using loadvars and apply them to myTextfield...