html text in flash
- Started
- Last post
- 15 Responses
- Buckyball2
Okay, maybe I didn't do enough research on this before implementing. But I have this page with a dynamic text box rendering text as html.
http://www.adrenalineshot.com/Ap…
I thought that the client could make changes on their end by downloading the final HTML file from the server, edit the text (which shows up in the code) and then reupload and the revisions would show.
Not happening. Is this not how this works? Am I missing a step or is there a better way to do this?
thanks,
bB
- Buckyball20
billy?
- ********0
Are you referring the copy that appears in the source?
If so, that is only there as a descriptor of what is in the swf file, handy for search engines, etc.
For what you need to do the text in the flash file needs to be drawn from some external data source, which could be a DB, or easily enough an XML file.
Kirupa has plently of tutes on the latter
- ********0
I may have got the wrong end of the sitck here, so feel free to put me on /ignore.
- joyride0
simple text file works too.
HINT: CDATA
They can use bold tags and such if they want to format the text a little bit
- Buckyball20
So basically set up my copy in an external txt file with html tags (bold, color, font, etc) and then have the flash copy draw it in to the layout?
Does that just live in the root folder with the html files?
- joyride0
Does that just live in the root folder with the html files?
Buckyball2
(Mar 31 06, 07:39)can be where ever on the server.
Might want to put in a flashText folder or something easy for the client. no need to let them see/mess up anything else. Just path it correctly in flash "flashText/someFile.txt"
- Buckyball20
Good call joy. thanks for the advice. Make things as easy as possible for the client.
thanks.
- joyride0
NP
just noticed I kinda said text file and CDATA together... CDATA is for xml. sorry for the mixUp
- Buckyball20
I looked on kirupa and several others and it seems that everyone has a slightly diff way of doing this.
Any links to fairly basic and easy to understand tutorials for this?
I basically just want to load the text from a notepad file with html formatting buit into the text. Bold, colors, Arial, etc.
I know you set up a txt file starting with "bios=and then the copy" but it's the code and naming of the dynamic text box that is throwing me off for some reason.
thanks
- dann0
Im not sure why the changes arent showing up for you
But you might want to try getting them to use Contribute to edit their text.
that way the wont have any problems relpacing the file on their server and wont have to look at code and you can control the style they use
they might want to empty the cache too
- Buckyball20
last glitch. I have the dynamic text box set up, Var box on inspector says "bios" with this code in the first frame:
loadVariables("txtfiles/bios.txt... this);
And my .txt file starts with bios=
So why does only the first few words of the entire paragraph show up?
thanks
- dann0
set the text box as multi line
- Buckyball20
It is, which is why this is really weird.
- joyride0
what is this Var Box on inspector of which you speak?
Does this help?
http://www.oman3d.com/tutorials/…
- Buckyball20
Just to the right of the 3 buttons that let you make selectable, render in html and outline text box.
And thanks for the link. I'll look through and see if I can make sense of it.