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




HTML Formatting On Variables...



Hi, 2 questions:

1.

The following code works perfectly to make the text bold (so long as Render as HTML is checked)

mytext="< b>hello world< /b>"

My question is, how do I use html formatting on dynamic variables. For example, if instead of "hello world", I wanted say MESSAGE which is another variable.

I've tried using many different combinations but none seem to work. Can anyone help?


2.

I have a dynamic text box which is approx 4 lines high. Now, the variable is on a loop, so every so often, it will add a new line and insert a new entry like so:

entry 1
entry 2
entry 3... and so on

now, after I get past the fourth entry, it does not automatically scroll up - is it possible to control this somehow? I want it to work similar to a chat app where the last message is shown and then it moves up when a new message is inserted.


Thanks in advance for any help.



FlashKit > Flash Help > Flash MX
Posted on: 08-05-2002, 08:46 PM


View Complete Forum Thread with Replies

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

[F8] Variables Without All The HTML Formatting?
Ok, I am going insane....... I have tried for nearly 2 hours and cant figure out what I am doing wrong here.

All I want to do is send the contents of an input box to a php form, but at the moment it is passing all the html formatting and code to the php, like this is the email input box:

Email: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="FFF Urban Bold" SIZE="8" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">scott@dreamshock.com</FONT></P></TEXTFORMAT>

Which obviously when it arrives up saying the email address is the above, it pretty much screws outlook

Plus this plays havoc with the validation too.... as the blank fields actually have a size (All the html formatting code)

Is there any easy way round this...... I figure I must just be going mad

Loading External Variables With HTML Formatting
Hi!

I'm struggling with what should be a simple task:
Loading some variables from an ASP file into text fields (works fine), and formatting the text field (doesn't work).

The workflow is as follows:
1. The flash file loads variables from http://www.aastad.no/tunet/priser.asp?leilnr=11 (works fine)
2. The flash file displays these variables in different fields (see www.aastad.no/tunet - click "leilighetene" on the top menu and mouse over the different apartments)
3. The field should format the text according to the HTML specified, f.ex. <B>SOLD</B>

What happens is that instead of showing bold text, no text is shown at all. If I use any special characters, like "< >" or similar, no text is shown, but if I use plain text, it works fine.

I've read some posts about this, and my field has "render text as HTML" and no font embedding turned on. Still it doesn't work the way it's supposed to...

I'd be realy grateful for any help, as fast as possible; it really nags me !!

Formatting Variables
hi there

Im having a slight problem with formatting text variables which I am passing on to emails from flash.

Im trying to get something to look like this, (and it does while Im trying it from flash's built in player)

name: bla
lastname: blabla
address: blabalbla
tel: blaablab

etc etc

Im using 'add newline' and it works fine so long as I look at the results in the flashbased player. However soon as i use it online, all my passed along variables are in a single sentence ... in a single sentence, like this


name: blalastname: blablaaddress: blabalblatel: blaablab

Ive tried
, /n, & <p></p> instead of 'add newline' but nothing seems to work...I dont know exactly where to go at this point - help would be greatly appreciated...

cheers


jan

Importing HTML/HTML Formatting
I've asked a similar question in evidently the wrong spot here, but am still having issues getting this to work. I'm new to Flash and know absolutely nothing about ActionScript. The flash project I'm working with can be seen here http://awcphotographs.com
What I'm trying to do, is make scrollable content within the white areas that include both text and images. If possible, differently aligned, formated and located text and the same with images. I want the entire area to scroll. Not just specific elements.
All of the 'tips' I've gotten thus far have been rather complicated and confusing dealing with images being converted to movie symbols with classes and etc...and I still can't even get that to work. Is there a more simple way to do this??
Also, is it possible to import a fully completed HTML page in to the white area and have the content scroll? Ex; I've got fully built pages in dreamweaver and I just want to put that data within the content area of the flash project. The page in question has text, images, a table and a CSS style sheet. Ultimately this would be the ideal situation so that I can build the elements as I want them in DW and just import them in to flash. Surely there must be some function within Flash that makes importing compatibility so much simpler??

Formatting Text In Variables
OK, i got the movie to read from a text file.

I can add returns, but is there a way to bold certian words? or create links like HTML?

Formatting Text Variables
Is it possible to format text when calling it as text variable into a dynamic text box? I'd like to be able to bold the text, also is it possible to make some of the text a web link?

Thanks in advance
Don Rhodes
Tucson, AZ

Formatting Variables...line Breaks...
im creating a scrolling text box using a variable and i was wondering how i can put in line breaks for the text that will appear in my flash document..im typing it into the "Value:" box and I have Expression checked off..How can I put in line breaks to format this text a little..please advise.

Thanks

Charles C.
http://www.StiffieJones.com

Simple Problem With Formatting Variables
I have an asp page called list.asp which puts out this code:

varName1=Bill Johnson&varName2=Cathy Anderson&varName3=.... etc. etc.


so in my first frame of my flash movie I say:

varNum=0;
loadVariables("list.asp", this)


and in the 2nd frame there is a dynamic text box called instHTML. The actionscript for frame 2 is this:

varNum += 1;
varN = "varName"+varNum;
_root.instText.htmlText=varN;


Then about 40 frames later (long enough for someone to see the name), I tell the movie to go back to frame 2.

It is very close to working except it doesn't display the actual value of the loaded variable 'varName1' or 'varName2' or whatever, instead the textbox literally displays "varNum1" instead of "Bill Johnson".

but if I replace line 3 in my 2nd Frame to read:
_root.instText.htmlText=varName1;

it will display "Bill Johnson".

Obviously there is something wrong with my formatting, but I don't get it. What is it?

Thanks so much!

HTML Formatting
Does Flash support HTML table definitions?

HTML Formatting
Hey. I have a dyn txt box with HTML turned on. I am loading the txt from an internal variable. It's ignoring the HTML as well as the align right setting.
I think I read that it has to be loaded from an external txt file for the HTML to render properly. Is this true? Unfortuneately I must keep the text vars internal.
Any ideas?

Thanks.
1M.

HTML Formatting
Hi everybody!

I'm completely new to Flash CS3, but I'm trying to make a web site for my band using it. I have found lots of tutorials on the web explaining how to animate, scroll, navigate and so on, but I can't find anything that helps me answering this question:

What do I do to get text fields in Flash HTML formatted?

I have made the whole page with animations and navigation and everything I need, but the text fields I insert will only (for an obvious reason, I'm sure) be formatted as one spesific font and size at a time.

I'd be most grateful if anyone
a) understands my problem and
b) helps me out with it.

If there is an easy way to load an external HTML document into a text field (or something like it), I'd be happy if anyone knows about a tutorial about it.

I have uploaded a sample of the site, as far as I have come.
http://test.denderiverte.net/index.html

And as you see (although the text is in Norwegian), the look of the site would have been slightly improved by a little variance in fonts, size and colours.

In advance:
thanks!


Pål

HTML Formatting In XML
Hi all.

I have inherited a Flash file from a previous developer that has a "map" with an external XML file for the contact details. Its all working fine and its not too bad, having the attributes as Address, Contact, Phone etc... but now the client wants to amend one item to include 2 contact people and different attributes.

So now I am trying to include some HTML formatting within the fields, but when I insert the <br> tag or anything else, it a) stops processing the XML and b) stops the movieclip animations for the "map" locations as well.

I cant share the files because its a corporate project... but I am wondering if anyone knows of anything I have forgotten? The dynamic text box is a htmlText field, and I figured it would be as simple as putting accepted tags?

whitespace is ignored. hmm?

HTML Formatting
Is there anyway to tell Flash that when an external text file is being read in that the <strong> and <em> tags should be <b> and <i> instead?

I've been looking at different options for a CMS that will allow HTML formatting in text files, but it seems that all the CMS's I am working with are applying HTML tags that Flash doesn't understand.

I first tried a combination of FlashTextEditor and FlashDB, which seemed pretty promising, except I couldn't figure out how to read the present files, edit them, and then resave with existing formatting. This whole situation really left me feeling like a moron, especially without help from others.

My next option was using pinEdit which also seemed very promising (more so than the previous combination) except that not only was it dropping in tags that Flash doesn't understand, there was some strange formatting that was going on when looking at the text files themselves through my browser. I could see the formatting, just not the tags unless I viewed source, which I've never seen happen before. The creator of the script was so vauge in his information when I asked for assistance that I have since given up on the situation.

In order for me to deliver my websites I must be able to have my clients update their own sections. Had I had more time I'd simply charge for updates until I came across some money to pay someone to help, considering finding help any other way is almost impossible. I was really hoping to get my FlashDB and FlashTextEditor combination working but that didn't happen.

Sorry for the big post...had a lot to say. Anyone willing to help or offer support of any kind would be greatly appreciated.

HTML Formatting
I've been trying to format some strings in a dynamic textbox that has the html option on.
I can do basic things such as make part of the string bold with <b>bold</b> but I can't figure out how to change the colour etc.
I tried this (I ma:

Code:
<span style="color: #3C3C3C;">Make this grey</span>
But it has no effect.
What html tags can I use and how can I change the colour of certain parts.

I'd like to do something like:

Code:
<b>user</b>: message here
<b>me</b>: <span style="color: #3C3C3C">Message here</span>

XML + HTML Formatting ...
I'm using <![CDATA[ ... ]]> in my XML. Here's the as:


ActionScript Code:
myText.htmlText = true;
myText.wordWrap = true;
myText.multiline = true;
myTextContent = new XML();
myTextContent.ignoreWhite = true;
myTextContent.load("ultrashock.xml");
myTextContent.onLoad = function(success)
{
        if(success)
        {
                xmlData = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
                myText.text = xmlData;
        }
}


With this action script importing the XML, my nodes with the CDATA are still just displayed as text, the HTML tags are just shown as plain text.

But, when I add two lines of code it works fine, here's the new code:


ActionScript Code:
myTextStyle = new TextField.StyleSheet();
myText.styleSheet = myTextStyle;
myText.htmlText = true;
myText.wordWrap = true;
myText.multiline = true;
myTextContent = new XML();
myTextContent.ignoreWhite = true;
myTextContent.load("ultrashock.xml");
myTextContent.onLoad = function(success)
{
        if(success)
        {
                xmlData = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
                myText.text = xmlData;
        }
}


I've tried everything I can by just importing regular XML with CDATA info and nothing works. But for some reason when these two style sheet lines are added. It works fine. Is this the only way to get this to work?

I'm working in MX 2004 Prof. Fun stuff.

Formatting Xml Having Html
i have an xml file containing Html text with tags like bold,italic,bullets,,,and--,<p>etc..

it is working on loading according to the format....

the problem is that bold & italic are not working
the class aplication by making CSS is also going on with tags like these or <h1>dbdb</h1>

Formatting Variables In Txt File (linebreak/return?)
i've got a roster of players i want to load into flash to be displayed in a list, so i made a txt file like
varBoysRoster="..."; but i want to put returns between each name so each name is on a new line. i've run into something like this before i just can't remember what the symbol is. can someone help me out? thanks a bunch guys.


ps is var="..."; the right format otherwise? thanks again.

Turn On Html Formatting ?
Hello,
I'm using this ActionScript code to load
a text file into the flash movie.

Code:
loadVarsText = new LoadVars();
loadVarsText.load("copy.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace ("done loading");
// SECTION 1 - NO HTML FORMATTING
my_textfield.text= this.textField;
} else {
trace ("not loaded");
}
};
stop();


How do I turn the html formatting on,
and what changes do I need to make to my text file
so that I can put in a link?
Also, what other tags will work?
Will that even work for the txt file?
Thank you for your help.
Regards,

HTML Formatting Dilemma
Hi All!

I am having trouble applying certain html tags such as <*B> and <*I> to my text field value. I have tried using both external text files and the actions panel to contain the value.

So far I have tried this (where textBox is the variable name):
-- --
textBox.html = true;
textBox = "<*U>Test <*B>Text<*/B> Here<*/U>";
-- --
The <*U> tag works but the <*B> does'nt ?? Anything between the <*B> tag dissappears. I have also tried switching on html on the property inspector and still no go..

I have also tried this which calls an external text file into the dynamic text field:
-- --
loadVariablesNum("sampleText.txt", 0);
-- --
In the txt file I have placed the variable name: &textBox=text goes here.

The second one works fine also but seems to exclude certain html tags also such as the <*B> and <*I>. It also does'nt like words like 'and' etc.

Any ideas?? Any help would be greatly appreciated. many thanks in advance!!
[Edited by ebeezer on 09-09-2002 at 11:06 PM]

Frustrated HTML Formatting
Hi FMXer's,

I have been successfully loading variables from a txt file into an dynamic HTML text field and applying certain tags including <u></u> <br> <a></a>. When I come to use the <b></b> tag for headings, the text inside the tags disappears.

If I chose not to embed the font, the formatting is fine. But as soon as I embed the font, the text in bold tags does not appear.( underline and anchors seem ok). I want to preserve the font but for export, but also wish to keep the bold headings.

I am using a Miniml font. (http://www.miniml.com)

Can anyone give me advice? I am muy frustrated!

Thanks HarryK

HTML Text Formatting
Does anyine know where I can find a complete list of supported <font> tag attributes and or all supported HTML tags for Flash?

I am using F5 and trying to imitate an <li> tag using <font> the problem that I have is that I have no vertical alignment control.

Therefore when I use <font face='Zapf Dingbats' color='#333333' size='4'>l</font> I get a nice bullet point but it sits on the baseline of the other text and just doesn't look right.

Any heros out there?

Formatting Xml Text With Html
hi. i'm trying to format xml text with html tags. i've searched this forum and read some of the previous threads but still am a bit lost.

here's a variable i create to hold the text i have in a [CDATA] tag:
code:
instructionsText = unescape(stripSpaces(node.firstChild.firstChild.fi rstChild.nodeValue));

then later on i create a text field to put that variable in, i.e.:
code:
// display instructions
ich.createTextField("inst", 998, 0, -10, 520, 40);
inch.inst.renderAsHTML = true;
ich.inst.text = instructionsText;
ich.inst.multiline = true;
ich.inst.wordWrap = true;
ich.inst.selectable = false;
ich.inst.setTextFormat(new TextFormat("Arial", 11, 0));

what am i missing? i thought this was the right way to do it...???

thanks. fumeng.

Use Html Formatting In Xml Attribute Tag?
I was brought into a project where someone has created a glossary using the List Component.
There are a couple of terms which must be italicized. Simple huh?
Well, after looking at the xml, the term comes from an attribute, not a node. Like this:
<item title="myTerm" desc="audio/file">My description</item>
My xml import will break at this line after I try this:
<item title="<i>myTerm</i>" desc="audio/file">My description</item>

I have tried using escape characters:
XML: <item title="<i>myTerm</i>" desc="audio/file">My description</item>

This shows up in the component as:
<i>myTerm</i>
but does not break my xml import.

The html property of the display text box title_txt is set to true.
title_txt.html = true;

How can I use HTML formatting from an attribute tag using the List Component in FL9 AS2.0?

Html Formatting Not Working
so I'm working on a general media slideshow/news ticker pulling from a mysql database by way of coldfusion and everything is going grand so far a part from getting any sort of html visual formatting/css styles working for my text. I have everything set up in a way that should work, and links and general tags work, but the font setup is just not working at all. also when loading an external stylesheet into my style object it refuses to load. Tried it from the dynamic loadVars variable and from a non-dynamic string and it still fails. I'm wondering if there's something wrong with my textfield setup or something. it's driving me insane. here's applicable code.



ActionScript Code:
//style sheet declaration

var theStyle:TextField.StyleSheet = new TextField.StyleSheet();


if(_root.itemVars.styleSheetLnk !=""){
            debug.text = debug.text+"     STYLE SHEET LOADING, name is: "+_root.itemVars.styleSheetLnk;
            _root.theStyle.load(_root.itemVars.styleSheetLnk);
                    //_root.imgBoxHolder.itemBox.textBox.titleText.styleSheet = _root.theStyle;
            //_root.imgBoxHolder.itemBox.textBox.itemText.styleSheet =  _root.theStyle;
           
           
        }/*else{
            _root.imgBoxHolder.itemBox.textBox.itemText.styleSheet.clear();
            _root.imgBoxHolder.itemBox.textBox.itemText.styleSheet.clear();
        }*/
       
        theStyle.onLoad = function(success:Boolean): Void{
           
            if(success){
                debug.text = debug.text+"     STYLE SHEET LOADED      ";
            _root.imgBoxHolder.itemBox.textBox.titleText.styleSheet = this;
            _root.imgBoxHolder.itemBox.textBox.itemText.styleSheet =  this;
            } else{
                debug.text = debug.text+"      STYLE SHEET MESSED UP   Styles in stylesheet:"+ theStyle.getStyleNames();
            }

        };


here is the html in the field (it gets truncated but that's fine)

HTML Code:
<p>Lorem ipsum dolor<br> sit amet, <font color='#ff0000'><a href="http://www.lipsum.com/" target="_blank">consectetuer adipiscing elit.</a></font> Mauris quis ligula. Integer vel tortor. Fusce quis erat eget arcu auctor fermentum. Vivamus vel mi auctor pede aliquam ultricies. Cras ipsum enim, imperdiet non, convallis nec, tempor nec, augue. Sed semper. Suspendisse non mauris. Quisque eu orci. Nulla sodales odio in tellus. Nam dui. Quisque ac purus. Morbi tincidunt magna ut magna. Aenean molestie. Morbi pretium mauris vel nisl. Phasellus erat sem, laoreet id, dictum vitae, elementum eget, diam. Fusce scelerisque posuere nunc. Quisque auctor, erat quis ultricies viverra, odio turpis porttitor tortor, vel consectetuer dolo</p>
and here is a shot of what it ends up looking like. including debug field.

http://img407.imageshack.us/my.php?i...boxcaptys1.jpg

and lastly, here's an image of the textfield setup

http://img93.imageshack.us/my.php?im...ldsetuplz6.jpg

sorry the code is a little messy overall. I may stage it fairly soon. If needed I could upload the fla also, any help would be hugely appreciated. Thanks all!

Advanced HTML Formatting
Does anyone know anything about the advanced HTML formatting, such as <img> tags? I was reading the Referenec and it mentioned that every image is created as a child movieclip of the text area, and you can give it an id to control it via actionscript. I am trying this but it dosen't appear to be working. Has anybody had any amount of experience with this previously? I am wondering mainly about placement of images, cause left and right sides dosen't leave much to the imagination.

Thanx

Html Formatting In Flash Txt
quick question... loading an external .txt, would that accept html formatting

HTML Text Formatting...
I have an XML file with this:

<LoginDesc>View your <b>promotions</b>, your total points earned and play games.</LoginDesc>

is there a way to have the Flash textfield understand some HTML formatting?
I thought there was?

Html Formatting In An Xml Document
Hi guys,

I've been trying to figure out a way to use html formatting inside an xml document and have accomplished it, but the only problem is that undefined is displayed before the text???

So the final result when I test the flash file is:
undefinedThis is bold text

How it works is the html tags in the xml document are written using the [ brackets instead. The function searches through the selected node(s) and converts the [] to <>

Heres the code:
ActionScript Code:
function xmlTags(xml)
{
var i;
var contents;
for (i = 0; i < xml.length; i++)
{
tags = xml.charAt(i);
if (tags == "[")
{
tags = "<";
}
else if (tags == "]")
{
tags = ">";
} // end if
contents = contents + tags;
} // end of for
return(contents);
} // End of the function

function loadXML(loaded) {
if (loaded) {
loadXML = this.firstChild;
title = [];
total = loadXML.childNodes.length
p = 0;

for (i=0; i<total; i++) {
title[i] = xmlTags(loadXML.childNodes[i].childNodes[0].firstChild.nodeValue);
}

words();

} else {
trace("xml document failed to load");
}
}
function words() {

title_txt.htmlText = title[0];

}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("title.xml");




Heres the xml document:

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<stuff>
<things>
<words>[ b ]This is bold text[ /b ]</words>
</things>
</stuff>
The spaces between the [] are there so the "this is bold text" won't actually go bold on the forum, there are no spaces in the original xml document.

Cheers,
-Inept

Desperate With Xml + Html Formatting
Hi guys...
Sorry if this a repetition... but this 2 days i've been searching this forum and cudn't get it right... here i attached the file with the post...
I've been trying to format the text data from xml file into the dynamic text field... but i came with no success... please help me.

Html Formatting In Flash Txt
quick question... loading an external .txt, would that accept html formatting

Html Formatting Problem
my html formatted textfield is acting strange.

im importing an html text variable from a php file
and loading it into an html formatted textfield in
flash.

the var is foo=<B>bar</B>foo

but flash only shows "foo" its skipping the <B>bar</B> part
like it doesnt recognise the tag or something.

any idea's

thanks,
thomas


I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!

Html Formatting Question
Hi all, I have a dynamic textfield in a movie clip. The flash movie loads a text file and displays the contents of a html file in a dynamic text field. In the html file (the file containing the content), I have a number of <br> tags

&article_content1=Some sample text <br> Some more sample test&
&article_content2=Article 2 sample text <br> This is a news article&
&no_of_feeds=2&

When I publish the flash, I see <br>'s displayed on my page, How do I get round this problem? If I remove the <br> tags and use the enter key, I see an additional line break. This is how the above text is displayed

1)
Some sample text
<!-- I don't want this additional line break -->
Some more sample test

2)
Article 2 sample text

This is a news article

I want to display it like this

1)
Some sample text
Some more sample test

2)
Article 2 sample text
This is a news article

If I enable html rendering the problem is solved, but by doing this the Italics text effect is lost.

Can you think of something?


Formatting Text In Html
Hiya guys.

Right this isn't as simple as it sounds I want to create a input text box for people to write in in which they can add html code formatting to the text without having to type in the formatting.

Bit like DreamWeaver (or Word) where they could type in normally and just highlight the required bit of text and hit the bold button.

The people who are going to use this are going to be completely non-computer savvy which is why i do not want any of the formatting code to be visable.

Now I can do it so it the effect works for all of the text using the standard textformat code but I am lost to how to get it to only apply to the highlighted section of text, I've seen it done on a website a couple of years ago (must have been flash 5) so it must be possible but have not seen it recently.

can anyone point me into the correct direction?

cheers

Zen

Input Text Boxes Now Passing Formatting With Variables?
Hello, All-
I've had a site running for a few months that takes four input text boxes (name, e-mail, subject and message) and posts the values to an ASP page which composes an e-mail with a CDO.Message command.

For some reason (nothing has been changed in the files or on the server), it stopped working and I've traced it down to Flash passing Input Text Box Formatting information along WITH the variable.

Help!

Can anyone explain what's happened and how to correct it?

For example, in my form I've set all the name, e-mail and message to static text and let the Subject variable be passed and in the e-mail subject line, I get this:

<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="American Typewriter" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">Explicitly?</FONT></P></TEXTFORMAT>

Obviously, I only want the string 'Explicitly?' which I entered in the subject field. My guess it that it's doing this to all the fields and it's not parsing a correct e-mail address as well.

Any and all help is greatly appreciated.
Thanks,
Steve

Problem With Formatting HTML In A Textfield
Hello everybody,

when i assign this html code to my textfield variable the text tht is suppossed to be "bold" dosent show.

pls help


with regards
kiran

----------------THE HTML -----------------------

It comprises: <br> <b>Quality Objectives </b> <br>This specifies the qualitative quality objectives in terms of the performance, classification of defects, phase wise acceptable level of defects, acceptable deviations from cost and effort. It may also contain the strategy to achieve these quality objectives. <br><b>Verification and Validation</b> <br>It mentions the schedule for various reviews and tests for the different phases of the development lifecycle. This also identifies different types of verification and validations to be used for the project. Review methodology, schedule, resources assigned and the approval authority is also mentioned. <br><b>Tools and Techniques</b> <br>The special software tools used, techniques and the methodology used for quality assurance are mentioned here. For example any tools used for testing, bug management etc. can be mentioned here. <br><b>Quality Records</b> <br>This specifies the project records and documents to be prepared, over and above the SDP, for the project on quality assurance activities. This may include the bugs in the tracking tool, test reports etc.

HELP With Dynamic Text & HTML Formatting
I am loading a text file into my flash website and I have formatted the .txt with HTML tags so I can do bold, font color, url's etc...

I have also clicked on the <> button on the textfield properties so Flash can read the formatting.

When I choose to embed all the characters, the only thing that doesn't work is Italics. When I don't embed, it works.

Anybody know a way around this??? Or why it does this?

Any help is appreciated.

Html Formatting In Imported Txt File
okay. i think this is possible, but does anyone know what you have to do to get html formatting in a txt file that is being imported into a dynamic text block?

it's been too long since i have tried to do anything like this.

thanks for your help.

HTML Formatting In External TXT File?
I have an external TXT file that is loaded into a dynamic text box. This is working fine, but when I use HTML coding within it, the dynamic text box only displays the actual HTML coding and not the real code. For example I have this in my text file:

&text=<font color="#000066"><u><a href="http://www.anywebsite.com">Here is the text to click on.</a></u></font>

When it is loaded to the dynamic text box, it is displayed exactly like this instead of displaying the hyperlink. Why is this? I have the format as HTML button clicked in the textbox properties so why is this not working?

--Thanks for any help

Kyle

Importing Text / Html Into MX And Formatting?
Hello

I am importing a text file into a text area in flash mx with loadVariable

According to Macromedia flash is not a browser and only supports a limited number of tags. A list of supported tags are here

My problem is that each time I hit enter on the text file, flash treats it like a new paragraph and adds a bullet infront of it too.

Is there anyway to do something similar to <br>, a line break, and any way to get rid of that bullet?

Thanks

ExtraB

Textarea Formatting - Color And Html
This is in MX 2004:

I've been baffled all day on this one. I'm trying to set up a textarea in a flash movie that will show content that is loaded from an external file. This external file should be able to include paragraph breaks, links, etc.

I've set up my textarea and to test, assigned this code to it:

main.scrolltext.html = true;
main.scrolltext.depthChild0._alpha = 0; //makes textarea transparent;
main.scrolltext.color = 0xFFFFFF;
main.scrolltext.fontSize = 14;
main.scrolltext.fontFamily = "_sans";
main.scrolltext.text = "test test < br >test";

With the above code, i'm seeing the third "test" wrap down to the next line, so the html code is being obeyed - but the color, size, and font specifications are ignored.

If I modify the first line to read:
main.scrolltext.html = false;
The color, size, and font are right, but the < br > prints out as is.

Also, I've noticed that paragraph tags don't seem to work. Why wouldn't they? I know I've used them in MX.

Thanks in advance.

HTML Text Formatting And Colors?
my text is set something like this:

mainText="I wouldl like to make my text red, to increase the impact of the links!<br><br><li><a href='asfunction:runVar,1'><b>I WANT THIS TEXT TO BE RED!</b></a></li>";

Is it possible, I know in the help file COLOR tags are not supported and I have had little success with CSS (I can set the color of the <a> tagged text but the other text seems unaffected by a CSS file!). I am also using a method of resizing the textbox which isn't so easy if mixing CSS with HTML formatting....

Cheers

Neil

Loading An Html File Then Formatting With Css...
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

Enhanced CSS Formatting For HTML/XML Source
Hi folks ...

I'm looking for any components that provide richer CSS stylesheet formatting of HTML and XML text displayed in a textField object or textArea component. In particular, at minimum I need a way to control line spaceing. Beyond that, better control of margin-top settings.

I know I can use some of the SWF2EXE tools, which enable you to embed a browser, but I'd prefer something that's cross-platform. Also, I'm really hoping to use XML source files rather than HTML.

Any pointers?

Thanks ...

[F8] Html Formatting In Dynamic Text...again
I know this has been covered ad nauseum but reading all the different posts has just spun me around in circles.

Why is it that this:
narratives_txt.html = true;
narratives_txt.htmlText = "<b>This is my BOLD text</b> and this is not.";

Returns:
"and this is not."

And what's the proper way to get it to display?

Thank you!
Layne

[F8] Turn Off HTML Formatting For SendAndLoad
Hi guys,

I'm using sendAndLoad to send some variables but the output is coming like this:
name=<TEXTFORMAT LEADING="-5"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="13" COLOR="#000000" LETTERSPACING="0" KERNING="0">arnie</FONT></P></TEXTFORM

email=<TEXTFORMAT LEADING="-5"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="13" COLOR="#000000" LETTERSPACING="0" KERNING="0">anrie@bigmuscles.com</FON
/P></TEXTFORMAT>
contact_no=<TEXTFORMAT LEADING="-5"><P ALIGN=

Is there anyway to turn off the HTML formatting?

Cheers
Matt

Html Textfield Formatting Problem..
I'm using Verdana on a html textfield to format it a certain way.
When i DO NOT embed the fonts, all formats work fine, bold, italic, etc.
When i embed fonts, nothing shows and i have to embed the fonts because the text field is masked. WtF?

Formatting HTML Text Fileds
I have been having problems when using the <a:hover> in HTML text. But what I thought was a StyleSheet issue has worked out to be a textField autoSize issue.


This is what im doing:Loading CSS formatted text using PHP
Loading the CSS
Creating the new TextField
Formatting the TextField
Displaying the TextField

When I use the following TextField formatting and I roll over an <a> link my text likes to jump around:



ActionScript Code:
with(TextField)
{
    width = 280;
    height = 10
    x = 0;
    y = 40;
           
    wordWrap = true;
    multiline = true
    selectable = false
    embedFonts = true;
    styleSheet = FORMAT_CSS
    htmlText = "<p>some text<a herf="www....">link name</a> some more text</p>";
    antiAliasType = AntiAliasType.ADVANCED
    autoSize = TextFieldAutoSize.LEFT
}

The text jumps?
But when I use:


ActionScript Code:
with(TextField)
{
    width = 280;
    height = 10
    x = 0;
    y = 40;
           
    wordWrap = true;
    multiline = true
    selectable = false
    embedFonts = true;
    styleSheet = FORMAT_CSS
    htmlText = "<p>some text<a herf="www....">link name</a> some more text</p>";
    antiAliasType = AntiAliasType.ADVANCED
    autoSize = TextFieldAutoSize.CENTER
}

(my <p> formatting = align = "left")
Everything is fine.

Has anyone come accross this problem before, or is it just my text that just likes to dance around the screen?

Thanks

Chris

Loading All Text/formatting From HTML
Hey,

I'm considering designing a site, both flash and regular html/css, where the flash movie would read all of the content and formatting from the regular html files. The idea is that updating the html would then update the flash movie, and everything should work pretty easily.

My basic ideas are:

1. Code the html pages using strictly XML compliant code,
2. All text formatting will be via CSS,
3. The Flash movie will then load the .html doc into an XML object which I can then tweak (remove certian tags, make <p> tags work correctly, etc.)

I've already written some basic AS functions for formatting the XML and my prototypes are working fine.

Does anyone who has tried this before have any comments, hints etc.??
Am I just plain crazy to try this ?

HTML Formatting In A Dynamic Text Box
Can't seem to get this to work. Some formatting works (<a>) but not well. <b> just drops the text all together.

I'm loading my text into a dynamic text box with:


ActionScript Code:
// loadVariables("blogText.txt", "_root.masker.contentText.blogtext");

myData = new LoadVars();
myData.onLoad = function() {
    _root.masker.contentText.blogText.htmltext = this.content;
};
myData.load("http://www.rjames.org/blogtext.txt");

The text box has the HTML property turned on.

Any idea what's causing this?

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