06-23-2004, 07:29 AM
|
#1
|
|
Registered User
Join Date: Feb 2004
Posts: 83
|
How do I read an HTML file into a text field?
Hi
I would have thought the answer to this topic should have been relatively straightforward. However, simple things sometimes overly complex in Flash. Anyway, I haven't found any good WORKING instructions on this. Can one of you wise folks help?
Cheers!
PS! I have access to Flash mx 2004, if need be
|
|
|
06-23-2004, 08:06 AM
|
#2
|
|
Banned by AS.org Staff
Join Date: Mar 2002
Posts: 10,533
|
You can't have html content within a Flash movie, outside of some html1.0 formated text in dynamic textfields. MX2004 does handle some CSS capabilities, but is still limited...
http://www.macromedia.com/support/fl...s/htmltext.htm
|
|
|
06-23-2004, 08:23 AM
|
#3
|
|
Registered User
Join Date: Feb 2004
Posts: 83
|
I don't mean to have a fully featured HTML file with its <head>, <title> etc. All I want is to write "<B>Heading</B>Main text", save it as text.html and then read it into the text field with proper formatting? Surely that must work?
Actually, I have found a solution now, using loadVariablesNum("text.html", 0) and inside the .html file "text=<B>Heading</B>Main text". I think the loadVariablesNum approach is somewhat inflexible though (having to start the .html file with "text="). Maybe I'm too demanding
|
|
|
06-23-2004, 08:25 AM
|
#4
|
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
|
Yes... You ARE very demanding...  Nah... Just kidding...
Do the search on 'LoadVars onData raw' in the forum and you should be able to find the method you are looking for...
|
|
|
06-23-2004, 08:30 AM
|
#5
|
|
Registered User
Join Date: Feb 2004
Posts: 83
|
Quote:
|
Originally Posted by CyanBlue
Yes... You ARE very demanding... 
|
tehe
Thanks for the tip, wahey, my own post is the first hit! Seems to be a bit of a quagmire of LoadVar threads there. Oh dear, ANOTHER actionscript subject to delve into?
Any particular thread you're thinking of?
thanks again
|
|
|
06-23-2004, 08:50 AM
|
#6
|
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
|
Um... Are you saying that you are too lazy to dig into the load of information out there??? Yes, you are VERY demanding...
Check this thread out then... (Yes, you still need to search from that thread...  )
http://www.actionscript.org/forums/s...d.php3?t=31471
|
|
|
06-23-2004, 08:55 AM
|
#7
|
|
Registered User
Join Date: Feb 2004
Posts: 83
|
Quote:
|
Originally Posted by CyanBlue
Um... Are you saying that you are too lazy to dig into the load of information out there??? Yes, you are VERY demanding... 
|
Sorry! I thought just after that it was a bit rude of me, so I went for it anyway. I think I see what you're getting at, but I got to do a bit more reading. However, another issue has arisen for which I will create a new topic.
I won't be demanding again, promise  (I'm just getting annoyed with AS for being so silly sometimes).
|
|
|
06-23-2004, 09:02 AM
|
#8
|
|
Registered User
Join Date: Feb 2004
Posts: 83
|
Come to think of it, it may be that *I* am being silly and AS is being downright reasonable. However, with may highly developed self-insight and completely objective viewpoint, surely this cannot be so.
|
|
|
06-23-2004, 09:10 AM
|
#9
|
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
|
OH, I don't mind searching for you as long as I know which one I was referring to... I just wanted you be abit more active... That's all...
Being silly... Flash is pretty silly from time to time... That's for sure...
|
|
|
06-23-2004, 12:01 PM
|
#10
|
|
Registered User
Join Date: Feb 2004
Posts: 83
|
Quote:
|
Originally Posted by CyanBlue
Being silly... Flash is pretty silly from time to time... That's for sure...
|
Thanks for reassuring me I'm not a fool
now, enough with the chit-chat! Back to work. Work, after all, should NOT be fun!
tada
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 09:38 PM.
///
|
|