|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am loading various text messages from a text file randomly using flash and php. I want to format the text a certain way and want to pass in html instead of just dynamic text. The php code is parsing out each line seperately and loading a random message. (1 line = 1 message)
Any ideas on how to set this up? thanks! |
|
#2
|
|||
|
|||
|
Hi, dont know how you linked php and flash so I'll ignore that bit. To use html formated text all you have to do is have a dynamic text box. Give the text box a variable name and set it as html. Then load your text in from the php (with html formating included) into the text box variable. You can include color formatting etc directly in your source text file.
|
|
#3
|
|||
|
|||
|
I am using a nice little snippet from the following url:
http://www.flzone.net/ShowDetail.asp?NewsId=842 problem is knowing how the php parses the lines of text...it seems like it looks for the end of the string, or a carriage return? |
|
#4
|
|||
|
|||
|
Im not really understanding your problem, if you want to output html formatted lines then do as I said earlier with reguards to setting the html option of the dynamic text box.
Your right about the php parsing each line. Thats not a problem if your using html text. I changed the first line, I think this will work. hehehe...ok so while writing this I got tempted and downloaded the example. I altered it to do as you want. It didnt work. I found the php was wrong. Theres a point where it checks that there are no quotes. This bit was wrong. Theres a note on the site about it. The attachment is the version that you want. It contains the fixed php as well as the html text box version of the quotes system. I only altered the first quote to use html formatting. "Who are you going to believe m or your own eyes" -Grocho Marx Hope this helps Last edited by Tann San : December 1st, 2003 at 03:43 PM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > html formatting of random text messages loaded from TXT file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|