Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-23-2004, 07:29 AM   #1
Terpentine
Registered User
 
Join Date: Feb 2004
Posts: 83
Default 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
Terpentine is offline   Reply With Quote
Old 06-23-2004, 08:06 AM   #2
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

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
oldnewbie is offline   Reply With Quote
Old 06-23-2004, 08:23 AM   #3
Terpentine
Registered User
 
Join Date: Feb 2004
Posts: 83
Default

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
Terpentine is offline   Reply With Quote
Old 06-23-2004, 08:25 AM   #4
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

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...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 06-23-2004, 08:30 AM   #5
Terpentine
Registered User
 
Join Date: Feb 2004
Posts: 83
Default

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
Terpentine is offline   Reply With Quote
Old 06-23-2004, 08:50 AM   #6
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

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
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 06-23-2004, 08:55 AM   #7
Terpentine
Registered User
 
Join Date: Feb 2004
Posts: 83
Default

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).
Terpentine is offline   Reply With Quote
Old 06-23-2004, 09:02 AM   #8
Terpentine
Registered User
 
Join Date: Feb 2004
Posts: 83
Default

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.
Terpentine is offline   Reply With Quote
Old 06-23-2004, 09:10 AM   #9
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

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...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 06-23-2004, 12:01 PM   #10
Terpentine
Registered User
 
Join Date: Feb 2004
Posts: 83
Wink

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
Terpentine is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:21 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.