Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 1st, 2003, 08:56 AM
Stewplazar Stewplazar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 Stewplazar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question html formatting of random text messages loaded from TXT file

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!

Reply With Quote
  #2  
Old December 1st, 2003, 01:49 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,715 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
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.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old December 1st, 2003, 01:59 PM
Stewplazar Stewplazar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 Stewplazar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #4  
Old December 1st, 2003, 03:40 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,715 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
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
Attached Files
File Type: zip quotesrc.zip (4.5 KB, 271 views)

Last edited by Tann San : December 1st, 2003 at 03:43 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > html formatting of random text messages loaded from TXT file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT