Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Html Format When Reading An Html File With Loadvariables()



hello,

i'm using the loadvariables() to display a text include in an html file.
I activated the "html render" in the properties of the dynamic text field.
My question is:
how may i display accents ?
actually, when i have an accent in my html text, it displays a rectangle instead.
if someone may help me, i'll be great.
thanks in advance.

3nityy



FlashKit > Flash Help > Flash MX
Posted on: 12-07-2002, 07:36 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Reading Link URL In HTML File
I have seen this done, and I, for the life of me, cannot find a tutorial or lesson on this anywhere.

Can any of you help me out? I'm trying to build a flash piece where I can read the links from values I can store on the HTML file that runs the flash. I need to do this because the links will change frequently, and I don't want to change the flash movie over and over again.

Thanks,
~n

Reading Html From A Text File?
Hi
I've read somewhere that html can be displayed in dynamic text fields in a movie. So I want to ask is how can I read html stored in a text file & display that html as it would appear in any browser.

can any one help??

Load A Txt Or Html Format File
According to my test
loadMovieNum Action can only load a movie(swf).

Can I load a txt or html format file on a swf file?

Loading An Html File With Css To Format
hello this has been bugging me for a while now i was wondering if any one can help me, i'll try and explain it the best i can...

i am trying to load in an html (will be a php file once its up on the server but just for ease its an html file) the use a css file to format it. the code i has is as follows :

var CSSformat = new TextField.StyleSheet();
var CSSpath = "home.css";
format.load(CSSpath);
format.onLoad = function(loaded) {
if (loaded) {
home_mc.home_txt.styleSheet = CSSformat;
home_mc.home_txt.htmlText = loadHTML();
} else {
home_mc.home_txt.htmlText = "unable to load css file.";
}
};

function loadHTML() {
var home_lv:LoadVars = new LoadVars();
home_lv.load("home.html");
home_lv.onData = function(home:String) {
if (home != undefined) {
return home;
} else {
return "<p class='one'>unable to load html file.</p>";
}
};
};

i have a feeling it may because i'm loading the html after i've loaded the css but ive tried it other ways and it doesn't seem to work either so this was a last resort.

i have also tried: home_lv.onLoad = function(home:Boolean) etc.
but that didn't work...

sorry this is such a long post but i'm pretty stuck, i can't seem to see the wood for the trees (so to speak).

thanks in advance
Al

How Do I Read In A HTML File And Format With A CSS
I want to read in a HTML file and format with a CSS file.
I'm using MX2004.
From what I've read, this should be possible?

I'm getting stuck at the first obstacle, I can't figure out how to read in the HTML file.
THe use of the CSS styling seems to be straight forward.

Any help would be appreciated.

Thanks.


OM

External Text File, Can I Format For Html?
I am loading text into dynamic text fields from an external text file. How/or can I format some of the text in the text file into html so that I can create hyperlinks?

I have noticed the render text as html option???

Using MX

Dynamic Text File Html Format Help
First, here's the macromedia article I was checking out to do this...
Click Here
I am able to apply the html formatting to the text file no problem for things like size, underlining and applying links. Problem is I can't change rollover colors and font color in general. Basically, is there a way around this?

Problems Reading Text File With Html Encoding
Hi,

im fairly new to the flash game, and im trying to create a new flash site reading the content from text files. I understand that you can use html codes in the text file when you check the html box in the property box. But that doesnt seem to work with me.
It works when i uncheck the box, it reads the file perfectly, also displaying all html coding. But when i check the html box, it doesnt seem to read anything anymore?
Is there something else i need to do to get this to work properly?
Any help would be greatly appreciated!

Lisa

PS. I use Flash 5...

Output To An HTML File In A Tabular Format From Flash
HI all,
This is wht I want to do, my flash file has a few input text fields, when i run the movie in the standalone or the web n populate the text fields wit values , such as supposing im adding 2 numbers n on the click of a button "A" im adding them n the output is shown in a 3rd text field.
Now there is a second button "B" and when I click on it an HTML file is created n shows the output of my additions, i.e the two numbers and their total in a tabular format.
Well i know how an HTM file can be done on the click of the button , but u guys have to help me out on the rest.
<< Heres the code for generating the HTML file >>

on (release) {
fscommand ("save", "nameoffile.html");
}
Now i dont know wether this code can be used to my requirements as mentioned above.

Thnx,
Eric.

How Do I Read In A HTML File And Format With A CSS File?
I want to read in a HTML file and format with a CSS file.
I'm using MX2004.
From what I've read, this should be possible?

I'm getting stuck at the first obstacle, I can't figure out how to read in the HTML file.
THe use of the CSS styling seems to be straight forward.

Any help would be appreciated.

Thanks.


OM

How Do I Read In A HTML File And Format With A CSS File?
I want to read in a HTML file and format with a CSS file.
I'm using MX2004.
From what I've read, this should be possible?

I'm getting stuck at the first obstacle, I can't figure out how to read in the HTML file.
THe use of the CSS styling seems to be straight forward.

Any help would be appreciated.

Thanks.


OM

LoadVariables Reading From A ASP File
LoadVariables will load a normal .txt file fine, but if its a serverside scripted file which is outputting exactly the same stuff, then LoadVariables just wont load it.... at all!

Why?

here is the ASP file: http://www.tns.co.uk/dev/t/inc/ticker.asp

here is the SWF file: http://www.tns.co.uk/dev/t/inc/ticker.swf

this is the code i am using to load the variables from the ASP file:

loadVariablesNum("ticker.asp", 0);
if (aaa ne "")
{
gotoAndPlay(9);
}

this is inside a loop, so it will keep running until the variable aaa equals something... if i change ticker.asp to ticker.txt it works fine, but it wont read the scripted file at all!

Why oh why oh why?? Is this a limitation of flash or am I doing something wrong? If someone could help this would be much appreciated because Im really starting to tear my hair out abotu this!

Call An Swf File To Load Into Html Document From Seperate Swf File In HTML.
I am trying to get advise on the best way to do this or how to do this. I have a layout that the customer is happy with, in an HTML document, but the SWF files will be seperated because of the layout. If you go to this link, you will see what I mean. It all takes place inside of the black bar...

http://www.hairdrezzersonfire.com

I want the icon movie on the left to play first and after it is done, I want to be able to call the main SWF file to play in the center of the black area. After that's done, I want that main SWF file to call the text logo movie to play that comes in on the right side of the screen.

I assume that I will use a placeholder of some sort in an HTML cell and it will be replaced by the swf file, but I don't know how to call it with actionscript. Any ideas?

Flash MX - HTML Parsing Problem: Custom Extension File Won't Parse As HTML
I am using Flash MX.

The problem is, I have a movieclip in my main timeline. This movieclip has a main key and a refresh key, which updates the dynamic textfield's contents with a loaded variable named content. The variable content is stored within a file named readme.ifh. When I load the variable in the textfield, it shows me the source of the HTML, not the rendered version.

What's wrong (and yes, I do have the "Render as HTML" option checked)?

Can I Load A Html File By Flash Link To An Html Iframe ?
Is it possible to create links in a flashmovie and force them to show several html-files in to a iframe, defined by the html document, which loaded the movie up ?? ( sorry 4 my bad english )

Button Going To Html File, Want Html To Be Specific Size In Window
When I click on a button in my flash project, it takes the user to a html file. In that file the user can click on different .pdf files. I would like to make the html file a certain sized window example 300x400. I do not know what code (or where to put it in the html file) to use to make the window constrain to 300x400. Also, I would like the users computer to open acrobat reader in a seperate window, when they click on a .pdf link. Right now, it just opens in the original html file so the user has to hit the back button to get back to the original html file. If anyone can help I'd appreciate it muchly!

Stittch

Reading HTML As XML
Hello all,

I am currently trying to read in an HTML page into flash. Basically, HTML is just XML so I should easily be able to parse it, but I am getting this error...

TypeError: Error #1090: XML parser failure: element is malformed.
at InfoBox/::writeStory()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

It's reading in the HTML properly (I can trace it out), but I can't seem to get this function to work properly (fires when a page is loaded):


Code:
function writeStory(event:Event):void
{
var storyXML:XML = new XML(event.target.data);
// other code removed because this is the line that fails...
}
Can anyone explain to me why this isn't working properly for me?

Thanks,

--d

LoadVariables() And HTML Configuration
Hello, I'm making an online game which constantly uses loadVars() to update data from the game server. In standalone player, everything is just "perfect", I can play with my friends if we each use SA player. But in IE, the player loads variables only once, and never load them again, if the same variable is requested, which I always have to, especially to ping and request changed data from the server. I've searched a bit and found out that this can be about the html code of the page containing swf. Can someone tell me the correct settings to make loadVars() work just like in SA version?

Thanks,
Can.

HTML Is Being Passed With LoadVariables()
HI guys, i'm trying to send out some input form variables top a php script via loadVariables() ... and it's working, but the only problem is that flash also sends out all the html font information along with the form data. so instead of getting something like "Name: Phil" the php script gets:


Code:
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Hypatia Sans Pro Semibold" SIZE="11" COLOR="#333333" LETTERSPACING="0" KERNING="0">Name: Phil</FONT></P></TEXTFORMAT>
<p align="left"></p>
is there a way to keep this from happening in flash or do i need to start getting fancy with the php?

Thanks!

LoadVariables Using HTML Page
I'm trying to use the LoadVariables with an HTML page. I've converted it as a movie clip. A dynamic textfield will call the text from the HTML page. Is there a way to show it up in Flash.

Xml In Html Format
Hi guys ,
I got a quetions for u, i have a dynamic textfield which get the text from an xml file (the text is an attribute in xml file) and i want the text to be able to display in html format bcoz i have some links in the text so that the user can click on the link in the textfield.Any idea how to do this ? please let me know .
thanks for your time
Chinna

How Do I Format This As Html?
Code:

this.newstext = newsDate+"<br>"+newsSubject+"<br>"+newsBody;


I tried doing:
Code:

this.newstext = "<font color='#000000'>"newsDate+"</font><br>"+newsSubject+"<br>"+newsBody;


and it returns a syntax error, so what am I doing wrong then? Thanks.
-ronnie

Reading An HTML Table
Hey there, thanks 4 taking the time.

-How can I read an HTML generated table, to display it
in a Flash movie ?

I followed a tutorial about reading text files, but
it doesn't seem to work with HTML files.

An application reads an Oracle database which generates
a report in HTML in a table format. Should it be easier
to read the information directly from the DB ??
...I really don't think so he he, at least for me
because I have no idea about database managers. That's
why I thought reading the generated table from the
HTML file should be easier...but how ??

Thanks a lot !!

Reading TEXT / HTML
Is it possible to read a text / html file from a website into a text field ?

Anyone know how to do this ?

Thanks.

Flash Reading Html
Hello I am making a couple of flash toys in which info for each different flash toy is stored in a database (eg for a quiz game the questions are stored in the db) and I was wondering if there is a way to let flash "read" some of the html it is embedded in (for instance a code) which then can be used to access that codes set of info (like the questions for a quiz game)
Please help me out, and having an external text doc is not an option (unless flash can be compiled on the go to actually change the path of the txt.)

Binary.Boy

Loadvariables+geturl Html Problem
Hello

I have got an .swf file in let's say /project/swffiles together with an .txt file from which the .swf shall read (with loadVariables) variables (Variables contain links that will be executed: getUrl(variable)
Now there is a .html file in a completely different directory (lets say the parent directory) that uses the .swf file (<EMBED src="swffiles/file.swf"></EMBED>.

How can I tell the .swf file in wich directory it can find the .txt file?
I only want to change the .html file when I change the location of either the .txt file or the .swf file.

Please Help and excuse my english I'm a GermMan

LoadVariables, Html And Weird Symbols
Hi

When I load variables from a textfile symbols like åöä (that are common in my language) does not show with the rest of the text. I've been trying to load it as html and used html-expressions like &auml; and &aring; but that doesn't work either. Any ideas?

Peace

Xml File Containing Html To Html Text Field
Hi all,
I am currently trying to import some HTML through XML and so far so good however when I import a string of code ie

Code:
some text and <a href="http://www.example.com" target="_blank">a link</a>
using this in XML

Code:
<?xml version="1.0" encoding="UTF-8"?>

<prop amountToShow="6">
<news newsStatus="1">
<date_txt>28 Feb 2004</date_txt>
<headline_txt>headline 4</headline_txt>
<content_txt><![CDATA[some text and <a href="http://www.example.com" target="_blank">a link</a>]]></content_txt>
</news>
</prop>
I get the string

Code:
some text and <a href="http://www.example.com" target="_blank">a link</a>
Where it breaks it down the open square brackets and more into html code.
I want to keep the html code as it is.
Does anyone know how I can do this?
Thanks

AppendText In HTML Format?
I am working on an AIR app and I am almost there...I have a simple sql query sending back data via a SELECT, I can trace the results and I can feed them to a TextArea. What I want to do is format that textArea as HTML.

when I set the TextArea.htmlText attribute it deletes my return...

So what I need to do is append the results as html formatted text in the TextArea.

Is it possibe, and if not, what other options do I have.
Thanks in advance.

Reading HTML Variable To Redirect URL
Please help!
My ability to use actionscript is very limited and I am reaching a deadline on some important work for the company i'm employed by.

Basically, what I want to do is read in a variable (RUNID) from the HTML code into Flash, and then add this to a URL. [RUNID generates a unique number which changes each time somebody accesses the site.]

I'm trying to add RUNID onto the url using this in the GETURL box:
"http://www.theurl.co.uk/scripts/txnsvr.p?RUNID=" add RUNID

But it doesn't recogonise the variable RUNID as defined in the HTML. Do I have to declare the variable somehow in Flash?

Many thanks in anticipation to a solution!!!

Gav.

Reading Parameters From Html In Flash
I have a banner made, and I want to be able to change the URL it redirects to when clicked by getting the info from an HTML file.

For example, the code below should cause the attached banner to open http://
www.google.com when it's placed into a .html file in the same directory:

<object width="468" height="60">
<param name=FlashVars value="url=http://www.google.com"/>
<param name="movie" value="./linen-fullbanner5.swf"/>
<embed FlashVars="url=http://www.google.com" src="linen-
fullbanner5.swf" width="468" height="60">
</embed>
</object>


Can someone help me out here? I read the stuff over at

http://www.adobe.com/cfusion/knowled...fm?id=tn_16417

But I am still stumped - and slowly going insane lol

Any help would be greatly appreciated.

Reading Parameters From Html In Flash
I have a banner made, and I want to be able to change the URL it redirects to when clicked by getting the info from an HTML file.

For example, the code below should cause the attached banner to open http://
www.google.com when it's placed into a .html file in the same directory:

<object width="468" height="60">
<param name=FlashVars value="url=http://www.google.com"/>
<param name="movie" value="./linen-fullbanner5.swf"/>
<embed FlashVars="url=http://www.google.com" src="linen-
fullbanner5.swf" width="468" height="60">
</embed>
</object>


Can someone help me out here? I read the stuff over at

http://www.adobe.com/cfusion/knowle...cfm?id=tn_16417

But I am still stumped - and slowly going insane lol

Any help would be greatly appreciated.

Here is the banner: http://www.naturaltalent.cc/linen-fullbanner5.fla

Reading Html Embed Code
Hi,

could somebody tell me how I can read html embed code variables into my flash movie?


Thanks,

dub

Problem Reading Variables In HTML. Help
The codes below works well in HTML, by passing user as Alvin.
No problem at all.

<param name="movie" value="myhobby.swf?user=Alvin">
<embed src="hobby.swf?user=Alvin">

but when I want to put on the web it got problem loading/finding/using the variables.... (I dont know the problem)

Is there any other way to pass in variables? Not using text file,
but passing in through HTML?

Example(I dont think this work but is there something like that?)

<param name="user" value="alvin">
<embed src="myHobby.swf">


Thanks

MX Reading Variables In HTML/Javascript ?
Hi, I am wondering if I can use some javascript / html (or any type of script) which flash MX can read and set a variable in MX accordingly.

I have a menu that deactiviates buttons when they have been clicked and the user is directed to a certain section (using a javscript function called by flash) - the problem is that if the user bookmarks the page and then returns the button I want deactivated is not.

I need someway of Flash knowning its is a certain section, preferably from reading something in the HTML document its inbedded into.

Does anybody know how to do this by putting something in the html document or any other way?

Problem Reading Variables In HTML. Help
The codes below works well in HTML, by passing user as Alvin.
No problem at all.

<param name="movie" value="myhobby.swf?user=Alvin">
<embed src="hobby.swf?user=Alvin">

but when I want to put on the web it got problem loading/finding/using the variables.... (I dont know the problem)

Is there any other way to pass in variables? Not using text file,
but passing in through HTML?

Example(I dont think this work but is there something like that?)

<param name="user" value="alvin">
<embed src="myHobby.swf">


Thanks

Question About Reading Html Files
I was wondering if theres any way to read an html file and possibly search through the file for a particular world. Thank you

MX Reading Variables In HTML/Javascript ?
Hi, I am wondering if I can use some javascript / html (or any type of script) which flash MX can read and set a variable in MX accordingly.

I have a menu that deactiviates buttons when they have been clicked and the user is directed to a certain section (using a javscript function called by flash) - the problem is that if the user bookmarks the page and then returns the button I want deactivated is not.

I need someway of Flash knowning its is a certain section, preferably from reading something in the HTML document its inbedded into.

Does anybody know how to do this by putting something in the html document or any other way?

Problem Reading Variables In HTML. Help
The codes below works well in HTML, by passing user as Alvin.
No problem at all.

<param name="movie" value="myhobby.swf?user=Alvin">
<embed src="hobby.swf?user=Alvin">

but when I want to put on the web it got problem loading/finding/using the variables.... (I dont know the problem)

Is there any other way to pass in variables? Not using text file,
but passing in through HTML?

Example(I dont think this work but is there something like that?)

<param name="user" value="alvin">
<embed src="myHobby.swf">


Thanks

Reading Parameters From HTML Document
Here's the code I have in my HTML document to embed my flash movie:

CODE<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="flashMovie" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flashMovie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="url" value="http://www.tek-tips.com" />
<embed src="flashMovie.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="flashMovie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Problem Reading Variables In HTML. Help
The codes below works well in HTML, by passing user as Alvin.
No problem at all.

<param name="movie" value="myhobby.swf?user=Alvin">
<embed src="hobby.swf?user=Alvin">

but when I want to put on the web it got problem loading/finding/using the variables.... (I dont know the problem)

Is there any other way to pass in variables? Not using text file,
but passing in through HTML?

Example(I dont think this work but is there something like that?)

<param name="user" value="alvin">
<embed src="myHobby.swf">


Thanks

Help With Understanding Html Format In Actionscripting
Hey all,

I've got some issues with some actionscripting code. This is what it is basically: I've got a dynamic textbox that takes some XML data as input. This portion works just fine.

The part I'm having trouble with is implementing a URL portion of it. I'm doing it to where the user clicks on the link and it contacts an ASP page (RETURNEDLINK.ASP) and sends one variable (linkid).

I guess I'm having trouble knowing the proper syntax for all the code within the actionscript. (ie. 's, ='s, etc.)

Here is the code portion that I'm trying to implement:


Code:
EditLinkBox.xml_content +=
"<a href="RETURNEDITLINK.asp?link_id ="" + linkid + ">
<BR>
<b>Link ID:</b>"+linkid+"<BR>
. . .
<b>Last Modified:</b> "+linklastmodified+"</a><BR><BR><BR>";


Here is the working portion before I tried to implement the 'URL' portion:


Code:
EditLinkBox.xml_content +=
"<b>Link ID:</b>"+linkid+"<BR>
. . .
<b>Last Modified:</b> "+linklastmodified+"<BR><BR><BR>";


So can anyone offer any suggestions as to how to fix the first section of code, or better yet, help me find some kind of specifications for how to use the actionscript.

Thanks a lot!

HTML Text Format “quotes”
Dynamic Text: HTML Text formatting: HTML Tags

To get the right quotation marks “example” I have been using the follo. HTML tags:
“ (opening quote)
” (closing quote)

They worked beautifully in Flash 5. But in MX, the same tags give me an O.
I cannot use the inch marks "example".

Can someone pls help me with this problem?

“example” --- right
"example" --- wrong

Thanks

HTML Format Stops Scrolling
Hi,

I use a separate txt file to load it into the dynamic textbox.

What is funny, when I apply several HTML format code for the unicode txt file headers (like changing font color: <font color="#0000FF">Kapcsolat:</font ), the scroll will stop at the second header, where it finds a html formatting.

If I delete the html format code, it works well.

Why?

Passing HTML Format Variables To XML
Hi, I need to pass variables from an event of a mouse over a button.

declaring:

on(rollOver) {myUrl="folder/name.htm";}

and inside an animated graphic, I have a text component, loading XML data that I pretend to pick up from the rollover state and declaring that Variable.

[code]
//xml stuff
descriptionHTML = new XML();
descriptionHTML.load(myUrl); <-----// this format states to be: descriptionHTML.load("url.htm") as in a single format htm file. I need it to be a variable which value gets from the mouseover.
descriptionHTML.onLoad = function () {
htmlContainer.text = descriptionHTML;
}

Is there anyway to assign a XML variable url?

Encoding String In HTML Format
Ok, say I have a string such as "hey, how are you doing?" When it passes it to the website.php?text=string, i need it to encode it so its written as website.php?text=hey%42%20how%20are%20you%20doing% 33, how would I go about doing that using a flash command?

Html Format In Input Field ?
Hi all,

Can anyone help please !
I have an input field of a flash form to send mail, works fine...
however in the mail i receive (or even when i just trace the value inside flash)
I get something like:

<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="12" COLOR="#333333" LETTERSPACING="0" KERNING="0">InputValue</FONT></P></TEXTFORMAT>

instead of just : InputValue

if i do this published in flash 6 < it works.
So i'ts probebley soem "geat" feature in flash 8 how can i get just the value though to send along in the form.

thanx, i.a.
M

Using Html To Format A TextArea Component With XML
I'm using a TextArea component, html set to true, and am loading the text from an external xml file. I'm using CDATA in the XML file, and html tags that Flash recognizes, but the text in the component is not recognizing the tags. (They display as <p>, etc.).

I've been going around and around on this. How can I format the XML text (without using style sheets). Any help would be greatly appreciated.

Dynamic Text In HTML Format
I have loaded dynamic text into a flash file that has been formated with some HTML. When I preview the text in flash it looks great. My bold tags are bold and so forth...

Here is my problem! When I load the flash movie into another flash file the dynamic text is not visible. I can select and copy the text but for some reason it's not visible. HELP!!!

Oh also, for some reason ever time there is a period (.) my text breaks the next line...

Copyright © 2005-08 www.BigResource.com, All rights reserved