Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text from html file

Status
Not open for further replies.

jefargrafx

Instructor
May 24, 2001
273
US
help,

I've coded a site that ues text field to input an external html file using loadVariables,

works great on my harddrive but when I publish out to a web site, the movie doesn't see the text in the html,

any idea why??????

thanks
Jef
 
is the html file in th same directiry? in flash are you giving a path relitive to your drive? other than those two i can't think why.. not knowing is an excuse for those umwilling to lern -- John Rueben
 
Both also have to be on the same server, you can't load variables remotely from another server.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
yes they are both in the same folder on the smae folder.

One quirk,

I'm loading the html into a movie clip, with in a movie clip, no ton the root stage.

any ideas.

jef
 
This is a flying post because I'm heading out, but I'm sure Wangbar, Old or Virt would ask the same....

You say you are loading an HTML file, but are you aware that Flash doesn't recognise most HTML coding?

If you are loading into a dynamic text box which you have declared to accept HTML then it is imperative that the information you load in uses the &variable =....& format, rather than just saying "hey load this HTML page into here because I've checked the HTML box in the Text Options". Do you know what I mean? It will no doubt be included in Flash 6 but not for now.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
I've come across some problems loading HTML files remotely.

One of the weirdest ones was having Flash totally ignore an ASP page because it was within a standard HTML page. The second I stripped out the <HEAD> tags etc. and just left the VBScript it worked fine, but it took about two days to work out what was going wrong.

I can't find any documentation on this problem but I think that since, like Dave says, Flash only recognises certain tags you have to be careful what you try and load in. Same with variables: if it's not URLEncoded forget it.

On the bright side :) I've had no problems with importing variables which were short sections of HTML formated text (for paragraphs, coloured text etc) but I can't import whole pages.
 
According to the Manual the following are supported:

Code:
<A>
<B>
<FONT COLOR>
<FONT FACE>
<FONT SIZE>
<I>
<P>
<U>

And an example of this in use can be seen at pinkzeppelin.com where I've used preformatted HTML text boxes in order to prevent smoothed/bad-quality text. The coding I used for the HTML in the site goes along these lines:

// preformatted
/:textopen = &quot;<pre><font face=\&quot;Arial, Helvetica, sans-serif\&quot; size=\&quot;10\&quot;>&quot;;
/:textclose = &quot;</font></pre>&quot;;
//
//
// mcservices
/:threedtext = /:textopen+&quot;BLAH BLAH BLAH.&quot;+/:textclose;


Note that if you do not specify the colour of your text in the HTML coding it shall default to the colour you have selected for the text-box into which it is being loaded.

Hope this explains a little more.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
yeah guys,

this is exactly what I'm doing, I only have text format html in a file and I'm importing it using the loadvariable statment.

It's working fine on on my desktop when I preview it, however, once I post the file to the server it breaks,

you can downlaod the fla at


let me know what you think
 
What is the textual contents of your HTML files?
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top