Sending Html Text To Html Dynamic Text Field But It Dosnt Show
ActionScript Code:
theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);
The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.
Cheers
Paul
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 04-04-2005, 05:07 PM
View Complete Forum Thread with Replies
Sponsored Links:
Sending Html Text To Html Dynamic Text Field But It Dosnt Show
code: theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);
The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.
Cheers
Paul
View Replies !
View Related
Scroll Bar For Html Dynamic Text Field Won't Work With Html
Hi:
I'm trying to add a scroll bar to a dynamic text field that is populated with an XML file. (see attached scolltext.zip file).
If I populate the field with plain hard coded text, it works fine. However, in my application, I need the text to contain html formatting codes. When I change the hard coded string to include html, it doesn't appear to work.
Can anyone suggest an alternative way to create a scroll bar for this dynamic text field? I need the html to stay as is because eventually the glossary will be populated via XML through a CF server.
Thanks in advance for any assistance!
Dawnthea
View Replies !
View Related
Html Text - Dynamic Text Field - Escape?
I am trying to embed a link into a html external text document that I am importing into a dynamic text box.
The url is passing a variable to a cgi script and has a "?" and a "&" in it.
Is there a way to escape these characters or another way to get this url into my text field?
Thanks!
View Replies !
View Related
Load Html Text Into Dynamic Text Field
Does anyone know the action script I need in order to load an external html text file (e.g. mytext.htm) into a dynamic text box. The dynamic text box has an instance name of ArticleTxt. Also where do I apply the action script, is it frame based? or do I apply it to the text box?
View Replies !
View Related
Dynamic Html Text Under Mask Can't Show?
I set my html var with
var_title = "<p align='left'><font face='Verdana' size='9' color='#D9D9D9'><b>"+title_external+"</b></font></p>"
The filed var_title is BItmap Text NO anti-alias, embeded.
This var is in a clip, and this clip is under mask, while title_external is a var load form PHP.
why it does not visualize the text?
Please help me.
View Replies !
View Related
Html Text In Dynamic Text Field
Hey all
I've got a dynamic text box that pulls it's text from MySQL through PHP.
The text that it pulls is a mix of straight text and HTML code.
Everything works fine except the formatting. The main issue being text that follows a <img src=> tag.
www.simplecoat.tv - click the "BLOG" button on the remote control.
www.simplecoat.tv/blogIn.php - you can see that the HTML code is fine in the database.
Is it a problem with having images in a dynamic text field?
Thanks!
View Replies !
View Related
HTML DYNAMIC TEXT FIELD
Well, I have a news system where a txt file is loaded wit the dynamic text field content and it scrolls etc.
But!...I want to make it a font that is fully embedded, you know, when you click Embed all. If I do that then the friggin text doesn't show, is it something in the HTML or can't you embed all??
Thx in advance.
View Replies !
View Related
HTML Inn Dynamic Text Field
I am using a tooltip and in that tooltip is some dynamic text...the texxt is loaded in from a cfm page...the text shows up but now i want to be able to modify that text using html...the text appears but the html tags dont do anything...here is what i have.
this is what calls the tooltip function
_root.tooltip("<font color="red">Resident:</font> "+resident);
the next code is the tooltip function
function tooltip (string,tipColor) {
xmouse = getProperty("", _xmouse);
ymouse = getProperty("", _ymouse);
duplicateMovieClip ("_root.tooltip", "tooltip1", 1);
tooltip1.tooltip = string;
setProperty (tooltip1, _x, xmouse);
setProperty (tooltip1, _y, ymouse);
startDrag ("_root.tooltip1");
_root.tooltip1._alpha=ttAlpha;
//toolTipBG = new Color("_root.tooltip1");
//toolTipBG.setRGB(tipColor);
tooltip1.gotoAndPlay(2);
}
function remove_tooltip () {
stopDrag ();
removeMovieClip ("tooltip1");
}
any help would be appreciated
View Replies !
View Related
Dynamic Html Text Field
Ok I have always had problems with dynamic text fields and fonts but now I am at a crossroads as to a problem. I have a component that fills a dynamic text field created at runtime that is html enabled but it seems to be not "catching" the tags. Now before someone gets on here and says:
Did you set the txt.html = true?
Did you assign the txt.htmlText = "some text"?
Did you embed the fonts?
YES-YES-YES within the component with all the glyphs I need ...meaning also the bolded/italic and regular. The tags are catching at authoring time when I am using the compiled clip. But at runtime they are showing < characters here is what I am tracing for the dynamic field at authoring time:
<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial Narrow" SIZE="12" COLOR="#000000" LETTERSPACING="1" KERNING="1">HTML <B>text</B> goes here...</FONT></P></TEXTFORMAT>
Now when I do a trace at runtime this is what I am getting:
<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial Narrow" SIZE="12" COLOR="#000000" LETTERSPACING="1" KERNING="1">HTML <b>text</b> goes here...</FONT></P></TEXTFORMAT>
Now the only thing I can think of is that there is a race condition that is not catching the boolean or something before the text is rendered on the stage?
Now the funny thing is the component I am working on is version 2...version 1 is the EXACT same code nothing has changed and it works but for the longest time it was having the same problems but ...boom it just started working when I set the txt.border = true.
I was also thinking maybe the order of setting the particular properties was an issue or something so I did trace on the format and textfields and assigned them in order of which they are created. On other thing is I already tried embedding the fonts within the library that did not solve my issue.
I was curious of kglad or another developer would have an answer to this.
Attach Code
private function setInputText():Void {
_inputText.selectable = false;
_inputText.multiline = true;
_inputText.wordWrap = true;
//_inputText.border = true;
_inputText.html = true;
_inputText.embedFonts = true;
_inputText.htmlText = _boxText;
_inputText.type = "dynamic";
//_inputText.text = _boxText;
_inputText.autoSize = "left";
_inputText.antiAliasType = "normal";
_fmt = new TextFormat();
_fmt.letterSpacing = 1;
_fmt.kerning = true;
_fmt.leading = 2;
_fmt.align = "justify";
_fmt.color = _boxTextColor;
_fmt.size = 12;
_fmt.font = "Arial Narrow";
_inputText.setTextFormat(_fmt);
trace(_inputText.htmlText);
/*********Format Testing************
for (var prop in _fmt) {
trace(prop+": "+_fmt[prop]);
}
trace("---------------------------------------");
for (var prop in _inputText) {
trace(prop+": "+_inputText[prop]);
}
trace("---------------------------------------");
****************************************/
}
Edited: 02/22/2007 at 11:28:55 AM by poisoniver
View Replies !
View Related
Externally Loaded Dynamic Text Does Not Show In Html...
Hi. I'm new to this so don't be surprised if this is a stupid mistake. I went through a tutorial here called "Tutorial 34 - scrolling a text box II", in which text is read from a txt file into a dynamic text field. Everything worked fine.
The problem arises when I put the scroll box into a movie I was working on. It previews fine. It plays fine when uploaded (www.mysite.com/flash.swf). However when embedded into an HTML doc the movie doesn't show any text (www.mysite.com/flash.htm).
I wish I could discuss the code with you guys, but I have no script skills and pretty much copy-pasted the code. I have attached the files in the hope that someone will be able to look at them and tell me where I went wrong. Any help is most appreciated.
View Replies !
View Related
Format Dynamic Text Field To HTML ?
Hi all,
cant seem to format my actionscript created text field....
here is my code
=============================
this.createTextField("warningText",10,-97,-50,175,90);
warningText.html = true;
warningText.text = " < u > Assistance < / u > ";
=============================
Am trying to have the text say "Assistance" and make it underlined aswell.
At the moment the HTML tags are displayed too - "< u >Assistance< / u >"
??
Thanks in advance
gilesb
View Replies !
View Related
JavaScript In A Dynamic HTML Text Field
I am using the loadVariable action to bring in a string to a HTML text field in Flash. The string contains links. These links need to have a specific window size attribute (which can be done easily using JavaScript).
Will flash recognize JavaScript in a dynamic HTML text box? I can't seem to get it to work. Any suggestions?
View Replies !
View Related
Susbtitute For The & In A Dynamic Html Text Field
I am trying to add a map blast link to a .txt file that is loaded into my .swf. I am replacing all "&" with %26 but at certain points of the link, it is losing information and not passing everything to map blast. This is what the link looks like.
Code:
a href="http://www.mapblast.com/(hohbon45crdvkwiilqp1vr45)/map.aspx?L=USA%26C=40.09076%2c-82.98913%26A=7.16667%26P=|40.09076%2c-82.98913|1|1019+Mediterranean+Ave%2c+Columbus%2c+OH+43229|L1|" target="_blank"><font size="8"><u>get directions</u></font></a>
You can see certain areas of the link that there are parts that have this: %2c which are for some reason getting deleted when I click the link and view it in the URL of the map blast.
are there any substitutions for this so flash won't ignore them or any subsitution for the %26 to represent "&"?
Thanks
View Replies !
View Related
Can't Get My % Character To Appear In HTML Dynamic Text Field
I'm loading text from a text file into a dynamic text field that is set to render text as html, but my % signs won't show up.
I undertsand that in html, the % thing is not displayed as itself, but rather as an indicator for various other characters and string formats. This is most likely (?) the problem.
I knew there was an alternate method to display the % in html (%), however flash parses the & sign as the start of a new variable when you load variables in from an external text file, so I can't use this either! I'm stuck! Anyone have ideas? Thanks.
View Replies !
View Related
Using HTML Tags In A Dynamic Text Field
Sorry for having to ask this seemingly "frequently asked question" but I am never able to search for some reason. It doesn't work.
Anyways, I have a dynamic textfield that I've loaded an external .txt field into. My question is real simple: How do I make certain words bold with html? I'm a newbie...so please explain in idiot's terms.
Thank you all.
View Replies !
View Related
Html In Dynamic Text Field With Images
Hi, i'm trying to get this to work properly.
i have a dynamic text field, which loads an external txt file with html in it. everything works perfectly, but for some reason any text after the image keeps getting cut off.
HELP!!!
here's the link:
http://www.othersidecreation.com/mar...f_page_01.html
and the text file with the html in is attached
View Replies !
View Related
Dynamic Text Field Containing Html Page
Hi, i am creating a website, and i was wondering if anyone knows if you can have a dynamic text field that displays a html page containing text (formatted) and pictures . I want to do it so the client i'm making it for can easily update the pages, without having to go into flash. If anyone could help it would be much appreciated.. cheers!
conani
View Replies !
View Related
[F8]html NOT Rendered In Dynamic Text Field.
I'm loading in the following text file:
Code:
vartext1=<b>Happy+girl</b>++++++oil+on+canvas,+20x30+inches,++2002
Using the following code:
Code:
loadText = new LoadVars();
loadText.load("text1.txt");
loadText.onLoad = function() {
text1a.text = this.vartext1;
};
My dynamic text field is called "text1a" and the option to "Render text as HTML" is lit. The output of the .swf is:
Code:
<b>Happy girl</b> oil on canvas, 20x30 inches, 2002
Any clues as to why the bold tag is not rendered as html in the dynamic text field?
View Replies !
View Related
HTML Tags For Dynamic Text Field
I have a scrolling dynamic text field for a site I am developing, but I need more control on different words in the paragraph (to change color and or positioning). I think this is possible to do with HTML tags, but I cannot get them to work. Do they go in the actual dynamic text field paragraph? In scripts?
Can sombody help me figure this out? I simply want to change the color of some of the words in the dynamic text field.
Thanks
View Replies !
View Related
HTML Format In Dynamic Text Field
Could anyone shoot me a way to center the text using HTML
i usually do an align="center" in HTML, but flash doesnt seem to like that (i just get a blank screen when i try to load it with that in the HTML.
Also, if i use the "center" button in flash, it automatically centers all the thing i load into that field (which is no good).
Thanks
View Replies !
View Related
Dynamic Text Field Html Tags
Hello!
Issue: dynamic textfield created at runtime with html text doesn't display bold and italics.
Having the Font symbol in my library with the linkage name "Avenir" :
tf = this.createTextField('t', 0, 0, 0, 100, 300);
tf.html = true;
tf.multiline = true;
tf.wordWrap = true;
tf.autoSize = true;
tf.selectable = false;
tf.embedFonts = true;
txtFormat = new TextFormat();
txtFormat.font = "Avenir";
txtFormat.leading = 2;
txtFormat.color = 0xFFFFFF;
txtFormat.size = 12;
tf.htmlText = "bla <b>bla</b>"
tf.setTextFormat(txtFormat);
The textfield totally ignores the bold html tag. The right font is displayed but the html tags are ignored. So if I want one text field to be able to dynamically display bold and italics (html text) using a Font Face in my library...how do I do it? What am I missing?
Thanks!
View Replies !
View Related
HTML Format In Dynamic Text Field
Could anyone shoot me a way to center the text using HTML
i usually do an align="center" in HTML, but flash doesnt seem to like that (i just get a blank screen when i try to load it with that in the HTML.
Also, if i use the "center" button in flash, it automatically centers all the thing i load into that field (which is no good).
Thanks
View Replies !
View Related
Html Not Working In Dynamic Text Field
I've seen other posts asking this question but they never seem to get answered. I'm reading a text file into dynamic text field with simple html (bold tags for example) and it doesn't display. I'm using Flash MX. I have the "Render text as Html" button clicked but still doesn't work.
Also, can Hyperlink tags be used?
Any ideas?
View Replies !
View Related
HTML Links In A Dynamic Text Field
Hey folks,
I'm in the process of redesigning my weblog in Flash. All of the archived posts in my database are formatted using HTML. I'm displaying the content in a dynamic text field, and I have the HTML formatted text appearing just fine.
The problem is, the links are not underlined, or otherwise distinguished from the rest of the content. Most of the references I've read have recommended just putting u tags around the link to underline them, but that doesn't work well in this situation, as I have years of posts in the database already, and none of them have the u tags in place.
Is there a way to change the way a dynamic text field displays HTML links? Any help is greatly appreciated.
View Replies !
View Related
Bug With Html's Image In Dynamic Text Field?
I'm not sure if I'm encoutering a bug of some sort. What I have here is a dynamic text field with some texts and I want to insert the image in between them. Two problem I had encountered are...
1) The image is not correctly placed in between texts where it belong.
2) Unexpected spacing occur underneath the image but it goes away when I set the vspace = "-5".
Why is there too problem with Flash MX??
Code:
system.useCodepage = false;
var url_comment = "";
//Don't use the "_blank" as target link to open up new browser windows since IE doesn't create a new browser window, so use "new" instead...
//((http://www.actionscript.org/tutorials/intermediate/load_images_via_XML/index.shtml))
//Image's hspace and vspace must be at zero for the scroller to work properly...
url_comment = "At first glance, the company may appear to be in the business of selling computers and software. Let there be no doubt, company's product is service. With over 21 years of success, our clients will tell you that company prosperity is attributable to one simple notion – to provide the highest quality of service available in the industry.
(Photo of the building) At first glance, comp<img src='abc_bldg.jpg' width='100' height='63' hspace='0' vspace='-5' align='left'>any may appear to be in the business of selling computers and software. Let there be no doubt, company product is service. With over 21 years of success, our clients will tell you that company prosperity is attributable to one simple notion – to provide the highest quality of service available in the industry."
_root.CompanyMC.txtComment1.html = true;
_root.CompanyMC.txtComment1.multiline = true;
_root.CompanyMC.txtComment1.wordWrap = true;
_root.CompanyMC.txtComment1.htmlText = url_comment;
View Replies !
View Related
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
View Replies !
View Related
Problem: HTML Tags In Dynamic Text Field
well, i got a code as follow for a text field named "Csearch":
========================================
onClipEvent(data){
Csearch = "<U>CATEGORY</U>
";
counter = parseInt(count);
for (counter > 0) {
temp_cat = eval("cat_name"+counter);
Csearch = Csearch + temp_cat + "
";
counter -= 1;
}
}
onClipEvent(load){
blah blah blah...
.
.
.
==========================================
After i add the HTML tags (which is <U> here...), nothing is displayed. if i take away the HTML tag, everything work just fine. Basically, any HTML tags will just makes the text field disappeared.
Anyone know where's the problem lies or got similar exp before?
Terrorist winz,
Assaultor
View Replies !
View Related
Making A Dynamic Text Field Display HTML
I'm using Flash MX 2004
This is driving me insane and I'm sure I'm missing something obvious. I am loading an external txt file into a dynamic text field. The text file contains some simple HTML tags which I know are supported by Flash ( ie <b> <p>). However when I test the file the text is displayed with the HTML tags as part of the text rather than interpreting them. Selecting the Render Text as HTML button on the property inspector does nothing. I've tried to set it in the code but thats not working either - here is my code -
section1Text.wordWrap = true;
oneVars = new LoadVars();
oneVars.load("section1.txt");
oneVars.onLoad = function() {
section1Text.text = this.sectionOne;
section1Text.html = true;
}
thanks a lot
Naomi
View Replies !
View Related
Issues W/plaintext In Dynamic Html Text Field
I have a text field that I load some text into from an external text file. Because I wanted to do some text formatting on individual strings in the body of the text, I turned on the 'render text as html' option in the text box properties.
My problem is that only the text that has html tags around it shows up, so if i were to load teh string "<b>May 25th</b> is graduation day for seniors at local high school...", only the May 25th would show up in bold, and the rest would be left out.
I tried this:
code:
trace(textFieldName);
AFTER i loaded the string into the text field, and it echoed ALL of the text that it was supposed to, including the text that did not have html tags. it seems that the text box isn't rendering anything that isn't html. anyone have ideas? thanks for your time
View Replies !
View Related
Possible Bug: Scrolling A Dynamic Text Field With HTML Under A Mask
This is so weird. I have this dynamic text field under a mask, and I'm scrolling it using buttons with onEnterFrame. The hotspots on the A HREFs link to the correct place, until I move the textbox using the scroll buttons. It seems that the hotspots for the links on the first page are still there...they haven't moved up! They are mixed in with the hotspots for the current page.
Attached is a sample. Maybe someone can figure it out.
View Replies !
View Related
Load HTML Table Into Dynamic Text Field
Is there any chance I load HTML content in flash dynamic (html) field. I tried to use
loadVariables ("rates_hr.txt", "");
in that text file I have this
ratesHr=<table width="300" border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#ffffff"><tr><td colspan="2"><p align="center"><div align="center" class="content"><strong>BRITISH AIRWAYS - SUPER PONUDA!!!!!!</strong></div><div align="center" class="content">Od 09.05.2007. zapocinje prodaja super povoljnih tarifa za destinacije u USA i Kanadi</div></p></td></tr><tr><td align="center"><p align="center"><strong>NEW YORK - 80 EUR</strong></p></td><td align="center"><p style="border:1px" align="center"><strong>NEW YORK - 80 EUR</strong></p></td></tr></table>
It works fine but it wont show me the table and cells formating right.
View Replies !
View Related
Dynamic Text Field Ignoring HTML Formatting
Hello,
I have a dynamic text field set to multiline and render as html, but when I assign any text to it which contains simple HTML formatting like <b>boo</b>, Flash Player 9 simply ignores any text between the tags. eg <b>boo</b> doesn't display at all !!!
The text field has both an instance and variable name and I get the same results from both.
If I trace the variable I can see the <b>boo</b> but I can't get it to display.
If I uncheck the render as html option, it displays <b>boo</b> ... obvioulsy unrendered.
I'm obviously missing something simple ... please put me out of my misery.
Thank you.
View Replies !
View Related
HTML Links Won't Display In Dynamic Text Field
I am loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:
var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};
var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");
Here is a sample of the text file code:
&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="
View Replies !
View Related
Superscript Font For Dynamic Html Text Field
Hello Forum
I am loading in a bunch of text and format them in flash into a newspaper-like layout.
The problem I am running into and can't seem to solve are superscript characters. I've used the GG superscript fonts from this website: http://blog.ggshow.com/index.php/reference?cat=121
Tthe example works fine. But once I try to implement it into my application it fails to work or simply doesn't show up.
Here's my code:
--------------------------------------------
External XML file:
--------------------------------------------
[...]
<item type="text"><![CDATA[.This is a sample text <i>Italic Font here shows up right</i><font face="GG Superscript">superscript here doesn't work</font>, ]]>
</item>
</p>
[...]
--------------------------------------------
Reading the Texfield:
--------------------------------------------
[...]
public static function getNodeContent(_xml:XML):String{
return String(_xml.firstChild.nodeValue);
}
[...]
--------------------------------------------------
creating the textfield:
--------------------------------------------------
txtHolder = itemMC.createEmptyMovieClip("txt",1);
Textfield.create(txtHolder,XmlArticleData.getNodeContent(itemNode),"articleText")
--------------------------------------------------
The Textfield class:
-------------------------------------------------
public static function create(_movieClip:MovieClip,_str:String,_type:String){
switch (_type) {
case "articleText":
_movieClip.createTextField("txtMC", 1, 0,0, 1, 1);
_movieClip.txtMC.autoSize = "left";
_movieClip.txtMC.type = "dynamic";
_movieClip.txtMC.border = false;
_movieClip.txtMC.multiline = true;
_movieClip.txtMC.html = true;
_movieClip.txtMC.embedFonts = true;
_movieClip.txtMC.selectable = false;
_movieClip.txtMC.wordWrap = true;
_movieClip.txtMC.antiAliasType = "advanced";
_movieClip.txtMC.thickness = 1.2;
_movieClip.txtMC.sharpness = 0;
var fmt:TextFormat = new TextFormat();
fmt.font = "ArticleTextFont";
fmt.indent = 10;
fmt.bold = false;
fmt.italic = false;
fmt.size = 11.5;
fmt.leading = 10;
fmt.color = 0x000000;
fmt.align = "justify";
}
_movieClip.txtMC.htmlText = _str;
_movieClip.txtMC.setTextFormat(fmt);
-----------------------------------------------------------
Any ideas?
Thanks!
Cheers
StephanK
View Replies !
View Related
HTML Page Not Loading In Dynamic Text Field
Hi guys,
i referred the tutorials from newweb.co.uk to create a flash file with dynamicaly loaded text and images from an html file. This works very fine in my computer where the text and images are loaded into the dynamic text field..but when i check in other machines...the swf file is not loading the html file into it. The html files are stored in the same location as the swf file, so the question of wrong path does not come into picture....how do i rectify this problem....please help....
Thanks in advance
View Replies !
View Related
Duplicating Text From A HTML Page Into A Flash Dynamic Field
Hiya People!
Does anybody have any idea how to obtain text from an external HTML page, and display it in a Flash movie.
I have a client who wants me to replicate the text from his HTML site into a Flash site that I am creating. The information this text is displaying will be changing every few minutes so I need set up a loop in the code used to obtain the text, so that his Flash site will be updated automatically with his HTML site.
Hope you can help.
Deadhands
View Replies !
View Related
Duplicating Text From A HTML Page Into A Flash Dynamic Field
Hiya People!
Does anybody have any idea how to obtain text from an external HTML page, and display it in a Flash movie.
I have a client who wants me to replicate the text from his HTML site into a Flash site that I am creating. The information this text is displaying will be changing every few minutes so I need set up a loop in the code used to obtain the text, so that his Flash site will be updated automatically with his HTML site.
Hope you can help.
Deadhands
View Replies !
View Related
Dynamic Html Text Field And Image Loader Questions
hi all,
i have two questions to put to you. first: i have a dynamic text box in my fla with an instance name of contactTextField and a variable name of contactText. im drawing information in from an external xml, and id like to display this in the text box but with html enabled so i can use the <b> and <a> tags to display bold text and links respectivily. my problem is this. when i set the textfield to be html enabled and put in a test string of "<b> hello </b>" into contactTextField.htmlText it doesn't show up. using a for...in loop to trace out all the properties of the textfield shows that html=true but the test string is ignored. if i set the test string to contactTextField.text or contactText it gets the string yet doesn't display it. further fiddling about yielded the discovery that the text will appear, and bolded, if i don't embed the font used in the text field. this is only simple arial. if i don't embed it it displays but looks terrible, if i do it doesn't display at all. does anybody have any idea of why this is happening? im using flash mx2004 pro but exporting to flash 6 (i tried exporting to flash 7 but this makes no difference).
my second question is this. part of the site is a artists display area, where jpgs are loaded in of the artists pictures. currently when one picture is loaded in it replaces the previous picture. this means that if i go back to look at a previous loaded picture it has to load in again. if i coded it that each picture clicked created a new movieclip inside the display and loaded the jpg into that, could i then just turn the visibility of those clips on and off, ie: if i go back to look at a previously loaded clip, i just turn the visibility of that movieclip on, thus only having to load a picture once. will this eventually affect performance? there is a potential for quite alot of artists, each one with a maximum of 5 collections that can contain any number of pictures. if youre looking at the site for a prolonged period of time, viewing alot of artists and all of their pictures, would flash eventually grind to a halt, having hundreds of movieclips with jpgs inside them loaded in? hopefully youll get the jist of what i mean.
any help you could give would be much appreciated
View Replies !
View Related
Some HTML Tags Not Working In Dynamic Text Field? [MX04]
Hello,
I've searched the forum for an answer to this question but can't seem to find one. Maybe someone can help me. I am fairly new to Flash and am currently using MX2004. I have a field of text that needs to be scrollable and is, therefore, set to dynamic. I had some problems getting the text to appear when the movie was published but finally linked this my needing to export the font (Univers 45 Light), which I did. Everything seemed fine until I tried to add HTML tags to make certain words italic. Rather than making these words italic, the following code:
Code:
<i>it's patented!</i>
simply made the text within the tags dissapear. The bold tags gave me the same problem while tags like <br> worked fine. My gut feeling is that this is a problem with the italic and bold version of Univers 45 Light not being exported. However, I do not know this for certain and am clueless as to how to remedy the problem. The text is not being loaded from an external file, but is being assigned in AS with:
Code:
myText_txt.htmlText = "this is the text with <i>tags</i> that don't work";
Does anyone have any suggestions or leads on fixes for this problem?
Thank you for your time,
-ZR
View Replies !
View Related
Html Special Character Not Showing In Dynamic Text Field?
Hi - I am trying to get the the HTML special character for eacute to display in a dynamic text field. The symbol looks like é but does not show up at all when the movie is exported. Any idea why this is happening or how to make it show up?
*** The "e" in eS (see code below) is what needs to be replaced.
Thanks for your help!
on (rollOver) {
this.roll(100);
this.textvar = "<p align='center'>eS Guts 2.0 Tee<br/>202804 $19.99 <a href='http://shop.ccs.com/item.do?itemKey=202804' target='_self'><font color='#FFFFFF'> Buy Now></font></a></p>";
}
on (rollOut) {
this.rollout(52);
}
on (press) {
this.link("202804");
}
View Replies !
View Related
Html-formatting Of Dynamic Text Field With Embedded Font
If you're creating a htmlText field via the createTextField method, is there a way to get html formatting like <b></b> to show up if you are also embedding a font?
I'm guessing not, since you can only embed a single font in a TextFormat, and you would have to embed both italic and bold variants too to make it work. Is this true?
Maybe I'm better off creating a generic text field on the stage with both bold and italics embedded, and use the attachMovie method instead?
This is my code:
ActionScript Code:
myformat = new TextFormat();
myformat.font = "Akzidenz_Grotesk_BE_Light";
myformat.size = 20;
curr_image = curr_top.createTextField("largetext", 401, 242, 32, 682, 254);
curr_image.selectable = true;
curr_image.multiline = true;
curr_image.html = true;
curr_image.embedFonts = true;
curr_image.htmlText = "Hello <i>this</i> is a <b>text</b> field";
curr_image.setTextFormat(myformat);
View Replies !
View Related
|