Using Actionscript With Html Tags... Please Help Me
hey actionscripters,
i got an html code to link to a page hit counter (like on htmlGear, for example). usually i would paste it into my thml file, but it would be more convienent if i could embed the code into a movieClip or something so i can place it into my site easily wherever i want. is there a way to load that into flash? using the loadVariables action to load a variabled text into a dynamic text box does not work. can anyone help me?
thanks for any help. please email me if you would like at arspy87@msn.com.
sincerely(,){ arspy(87); }
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-04-2002, 06:45 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
HTML Tags In Actionscript? Help
Ok, so this is probably a real easy one to solve - but i'm learning flash on the fly, so it's kinda difficult to keep track of everything...
Basically my problem involves HTML tags such as
[font family = "ariel, blah, blah"] etc... (basically any tags which use quotes inside the tag). If i put this into actionscript - it breaks the line of code - but even if i use the escape character () around the tag - the code accepts it - but doesn't show in the final document...
How can i do it??!!
How To Use HTML Tags In Actionscript?
Hi Guys,
I want to use use the html font tag (<font>) in action script. Here is my code.
labelName.text = "Service:" + result.servicestatus;
I want to change the font color for the text "Service:" to black. How can I do this in actionscrpt?
I'll really appreciate your help
Regards,
Allan
Inserting HTML Tags Using Actionscript
I want to build a simple text editor in flash using basic HTML tags such as <b>,<u>,<i>,<a>,...
Now I was wondering how to make a script that can insert a tag at the beginning and at the end of a selection in an input textfield. I tried to look for existing HTML editors made in flash, but they are all protected in some way.
Can somebody help me on the way?
Strip Html Tags From A Text, In Actionscript
Hello !
i'm building a search functionality that searches into an array containing sometimes html formatted text.
I would like to ask if you have any idea how to strip those html tags , so having only the core text to display has search results ?
thanks a lot in advance,
Alex
[Flash 8 ActionScript Help]-trouble With Stylesheets And HTML Tags
Got this tutorial off the net. My stylesheets and HTML dont seem to be loading. Did the stylesheets tutorial off Kirupa. That worked fine. But in my code below, the only thing that worx is the <b></b> tags.
My stylesheet should be fine as well. Dont see what the problem is?!
Please help. Desperate
posting the code (ignore the AMFPHP stuff)
====================================
function getStyle() {
// load stylesheet first, then get content (separate function)
var flash_css = new TextField.StyleSheet();
var path="sitestyles.css";
flash_css.load(path);
flash_css.onLoad = function(success:Boolean) {
if (success) {
categoryTitle.StyleSheet = flash_css;
pageContent.StyleSheet = flash_css;
} else {
pageContent.htmlText = "Style sheet appears to be rodgered";
}
};
};
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;
import mx.utils.Delegate;
NetDebug.initialize();
// ----------------------------
// create the responder object
// In this object we will define
// all the result function for
// the data received from server
// ----------------------------
mainResponder = new Object();
// echoString receiver
mainResponder.echoString_Result = function( data_pass ){
trace("echoString result");
trace("received: " + data_pass );
trace("----");
}
// echoPageTitle receiver
mainResponder.getCategoryTitle_Result = function( data_pass ){
categoryTitle.html = true;
categoryTitle.htmlText += "<p class='three'><b>";
categoryTitle.htmlText += data_pass;
categoryTitle.htmlText += "</b></p>";
}
// echoPageContent receiver
mainResponder.getPageContent_Result = function( data_pass ){
pageContent.html = true;
pageContent.wordWrap = true;
trace("in GetPageContent");
//data_pass type object
// pull out data loop build string
var data_pass_string="";
data_pass_ln=data_pass.getLength();
for (var i:Number = 0; i < data_pass_ln; i++) {
// for each person node:
trace(data_pass.getItemAt(i).Item_title);
data_pass_string+="<b>" + data_pass.getItemAt(i).Item_title +"</b>" + " R" + data_pass.getItemAt(i).Item_cost + i + " <BR> ";
}
pageContent.type="dynamic";
pageContent.htmlText += "<p class='two'>";
pageContent.htmlText += data_pass_string;
pageContent.htmlText += "</p>";
}
// generic onStauts responder, it will be invoked
// when an error is received from the server
mainResponder.onStatus = function ( data_pass ) {
trace("an error occurred")
trace("in line: " + data_pass.line)
trace("error level: " + data_pass.level)
trace("description: " + data_pass.description)
}
// define the path of our gateway.php
NetServices.setDefaultGatewayUrl( 'http://localhost/flashservices/gateway.php' );
// initialize a variable for the connection
conn = NetServices.createGatewayConnection();
// initialize the service for our class ModxTut
// an tell which is the responder object
// for all the calls to the server
serv = conn.getService("FontanasMenu", mainResponder);
serv.getCategoryTitle(1);
serv.getPageContent(1);
// flash stuff again
_root.createTextField("categoryTitle", getNextHighestDepth(), 2, 2, 300, 40);
_root.createTextField("pageContent", getNextHighestDepth(), 20, 40, 300, 200);
// scrollbar
this.createClassObject(mx.controls.UIScrollBar, "my_sb", 20);
// Set the target text field.
my_sb.setScrollTarget(pageContent);
// Size it to match the text field.
my_sb.setSize(16, pageContent._height);
// Move it next to the text field.
my_sb.move(pageContent._x + pageContent._width, pageContent._y);
getStyle();
====================================
[MX04] HTML Tags Needs To Be Disabled In Dynamic Html Enabled Text Fields
Hi Buddies,
Am loading some dynamic text from an xml which has html tags inside dat text. I jus loading dat specified texts into a dynamic text fields where html is enabled and assisgned as a htmlText instead of normal text.
It works fine, but the thing is, i want to disable certain html tags to be rendered but it shud display as it is as a normal texts.
Is there any way to do dat
Dont Want To Render < HTML > Tags In HTML Enabled Dyna Text
Hi All,
Is there any way to display < HTML > tags in the HTML enabled dynamic text field with out actually rendering it ? one constraint is, I want to enable the HTML feature for that text field all the time. because, i want to render some other tags.
The problem is in my text field unable to display msgs having <> characters i.e. even if I say < hello > it is not displaying anything, because, it is treating it as HTML tag and trying to render it. Is there any work around to display this text as it is ??
Thank all in adv,
Html Tags In Xml Tags
Hi,
i've got this XML file - in it the tag below:
<level.one name="ql2<br>na">
i'm loading the xml into flash and i want to display the value of the attribute "name" inside a dynamic text box, i marked the "render text as html" BUT: inside the xml i can't put "<br>" because of the "<" ">" - so what do i put instead so reading the xml will be ok and flash can read it right?
thanks in advanced,
Maya.
Embedding Html In Xml Tags, When Rednering Text As Html
Quick question,
I have a site that reads all content from an external xml. The text box that reads this info renders the content as html; does anyone know how to go about putting an html tag in an xml tag so that flash can read it?
So would it be possible to do:
<content>
" Welcome to the site<br>we are happy to have you here<br><img src="logo.jpg"> "
</content>
HTML TextFields Using Html Tags During Creation
OK, so I have an html formatted textfield, if i was loading external text in from a file I could put stuff like "<ul><li><b>bullet1</b></li><li>bullet 2</li></ul>" in the external file and it would render. However when you set the contents of a textfield during creation you can set things like font size, bold etc but you can't choose bullets?!? or am I totally missing something here? I can input bullets using 'Alt-0149' like this --> but then it doesnt do the indenting for you like the <li> tag would...
HTML Textfield Shows My Html Tags?
My html properties of my textfield are set on true and STILL he shows all my html tags? (property is set with actionscript AND in properties panel)
The XML with the html content looks like this:
====================================
<?xml version="1.0" encoding="utf-8" ?>
<texts>
<text><![CDATA[ <p>Vai kaut reizi esi</p>]]></text>
</texts>
====================================
Code:
var xmlTexts:XML = new XML();
xmlTexts.ignoreWhite = true;
xmlTexts.onLoad = function(ok) {
if (ok) {
var varText = this.firstChild.firstChild;
mvcText1.txt.html = true;
mvcText1.txt.htmlText = new String(varText);
//mvcText1.txt.htmlText = "<p> this is text </p><p> this is text </p><p> this is text </p>";;
trace("HTML set on "+mvcText1.txt.html);
}
};
xmlTexts.load("texts.xml");
HTML TextFields Using Html Tags During Creation
OK, so I have an html formatted textfield, if i was loading external text in from a file I could put stuff like "<ul><li><b>bullet1</b></li><li>bullet 2</li></ul>" in the external file and it would render. However when you set the contents of a textfield during creation you can set things like font size, bold etc but you can't choose bullets?!? or am I totally missing something here? I can input bullets using 'Alt-0149' like this --> but then it doesnt do the indenting for you like the <li> tag would...
[ --HTML And IMG Tags-- ]
Masters,
Could someone please describe how I might utilize the images embedded in an HTML document while keeping their relation? I am using loadVaribableNum to load the HTML into a text field and I would like to pull the images from the html into a movieclip. (Picture an MSN news article)
I am building a Flash front-end to a backend tool that will be kicking out html pages in pretty much whatever format I need. (the backend is SQL/XML driven and XSL is formatting the info in usable HTML)
I have been the XML path already, but I really find Flash's XML capabilities limited and clunky (and procssor intensive)
Additional questions:
1. Will there be a limit to the size of the HTML doc being passed into the Flash text Variable?
2. Can I pull in an entire html doc without popping up another window?
Thanks in Advance,
RASTERB8
||||| Avenge the Innocent, God Bless America |||||
Html Tags
Where can I find a list of html tags supported by Flash 5?
Html Tags
hi! i just wanted to ask how the hell i must use the html tags on the text fields, cause i cant get any results on this.
The flash help wasnt enough for this stupid argentinian! iŽm really sorry!
thanks a lot!
veddero9@hotmail.com
Html Tags In Xml
hello, i've been storing my data in xml files and loading their contents into flash.
what i'd like to do is be able to have tags in that data such as the "BR" tag and "A HREF" tag
the current format of my data is like this: (don't worry, i used < & >), it wouldn't post on the board correctly with the code tag...
[?xml version="1.0" encoding="UTF-8"?]
[root]
[entry]
[title]July 3rd[/title]
[body]today was boring.[/body]
[/entry]
[entry]
[title]July 2nd[/title]
[body]i ate food.[/body]
[/entry]
[entry]
[title]July 1st[/title]
[body]i visited this <u>site</u>.[/body]
[/entry]
[/root]
say for example, in the July 1st entry, the underlined word needs to be bold and a link.
i've been using an xml to object actionscript file in to make it easier to use xml, not sure if that would affect the data being parsed.
currently, the only method i know is to make up my own tags, like [b] and just parse the text with string fuctions/methods.
Still In Need Of Help...HTML Tags
Hy there!
Though linha direta has given me sample files (an I thank him for this) , I haven't solved the problem.
My problem is simple : I have two pages in HTML , both loading the same .swf file , wich contains only one field of dynamic text , with the variable named text.
The two pages have the titles (the tags corresponding) Home and Second page.
How can I read the tags (any of them , the titles are just an example)and initialize the text variable with them?
In , other words , how can I have the title of the current page in one flash file , loaded in both pages?
I use Flash 5.I don't have SSI or CGI acces for my server.
Tanks , in advance!Best regards!
XML And HTML Tags
Obvious you can't use HTML tags inside a node value in XML, right?
I come up with an idea inspired from this forum,
What if I create tags like in this forum and do a search and replace inside Flash when reading the XML file, that should work, right?
Other ideas
T
HTML Tags
I'm getting html based info (eg: <TABLE height="100" width="100%">) from a SQL database into flash. I figured out that flash does not understand all the html tags. Does anyone have an idea wich tags are understood by flash and wich ones are not?
Maybe a tutorial somewhere or a reference site?
Thx
Html Tags
Hi,
do you have experience with text formating? I'm using this script for dynamic text:
Code:
content_txt.htmlText += "<font size='12'><b>" + head + "</b>" + "<br>" + </font>" + body;
Strage is, that in one case it works fine, but in my recent project bold tag cause invisibility of "head". Without bold tag it's fine, I can change font size. It there any futiveness I have to be aware of?
Can These Html Tags Can Be Used ?
Hi buddies here are the html tags dat i have wimmi .... i jus wanna know whether these tags can be displayed in the specified format in a Flash Dynamic TextField or not
1. <pre>
2. <font face = arial size =2>
3. <br>
4. <i>
5. <u>
6. <b>
7. <p align="center">
8. <img src="/mtapplication/files/52352.jpeg"></img>
9. <a href="/servlet/MyFirstServlet">Make me say Hello World!</a>
10. <h1><h2>
.<h6>
11. <hr>
12. <center>
13. <!-- Line 1 --><!-- Line 2 --> Like this also exist
14. <strong>
15. <sub>
16. <sup>
17. <span>
18. <li>
19. <ol>
20. <table>
21. <tr>
22. <td>
23. <th>
24. <div>
And more can i dispaly an xml string in a dynamic text box ???
HTML Tags In XML
I'm having some problems when inserting html tags in my XML file. I thought that because of the textField.html option, i could simply insert my html tags into the xml strings.
Code:
<?xml version='1.0' encoding='utf-8'?>
<pages>
<page header="<c>Info</c>" ...
those center tags surely messed things up so how would I do it?
Thanks in advance.
Using HTML Tags With XML
Hello everyone,
I have an XML document that contains CDATA nodes with <BR> tags. I'm importing the XML and displaying it in a text box, but unfortunately the text box is actually displaying the <BR> tags, rather than inserting line breaks. I've set the text box to "Render text as HTML", and I've applied the XML data through htmlText, but it's still not working. If I insert text into the text box manually it will render as HTML, as in:
Code:
textBox.htmlText = "Testing...<br>Testing...";
But if I apply the XML node, it just displays the <BR> tags, like this:
Code:
textBox.htmlText = my_xml.firstChild.childNodes;
Does anyone happen to have any idea why this is happening? I've included a .zip attachment that contains a sample .xml and .fla file that illustrates the issue I'm having.
Thanks!
Html Tags In Xml
I've look everywhere, I've try many things but I can't get it right. I just want use html tags in a xlm file.
xml:
<news>
<newsNode newsTitle="Titel 1" newsText="This mthe first news. Look at www.blabla.nl. It's a quit nice site...."></newsNode>
<newsNode newsTitle="Titel 2" newsText="This mthe second news. Look at www.blabla.nl. It's a quit nice site...."></newsNode>
</news>
I'd like to be able to use some html tags (<a href+...>, <b>, <br>...)
Action in Flash:
news_xml = new XML();
news_xml.onLoad = startnewshow;
news_xml.load("news.xml");
news_xml.ignoreWhite = true;
//
// Show the first news and intialize variables
function startnewshow(success) {
if (success == true) {
rootNode = news_xml.firstChild;
totalnews = rootNode.childNodes.length;
firstnewsNode = rootNode.firstChild;
currentnewsNode = firstnewsNode;
currentIndex = 1;
updatenews(firstnewsNode);
}
}
//
// Updates the current news with new image and text
function updatenews(newnewsNode) {
newsTitle = newnewsNode.attributes.newsTitle;
newsText = newnewsNode.attributes.newsText;
targetClip.loadMovie(newsTitle);
}
//
// Event handler for 'Next news' button
next_btn.onRelease = function() {
nextnewsNode = currentnewsNode.nextSibling;
if (nextnewsNode == null) {
break;
} else {
currentIndex++;
updatenews(nextnewsNode);
currentnewsNode = nextnewsNode;
}
};
//
// Event handler for 'Previous news' button
back_btn.onRelease = function() {
previousnewsNode = currentnewsNode.previousSibling;
if (previousnewsNode == null) {
break;
} else {
currentIndex--;
currentnewsNode = previousnewsNode;
updatenews(previousnewsNode);
}
};
I hope someone can help me.
Thanks
Html Tags In Xml (one More)
I can' t find the solution of my problem in other thread. So I hope someone can help me.
My xml:
Quote:
<?xml version="1.0" encoding="iso-8859-1"?>
<news>
<newsTitle>
<![CDATA[
<a href="http://www.worfoual.com">Dit project biedt</a> nieuwe leden van de BNO <i>(Beroepsorganisatie Nederlandse Ontwerpers)</i> de mogelijkheid om ansichtkaarten te laten produceren bij Spinhex & Industrie. Voor spelregels zie www.bno.nl
]]>
</newsTitle>
<newsTitle>
tweede nieuws nieuwe leden van de BNO (Beroepsorganisatie Nederlandse Ontwerpers) de mogelijkheid om ansichtkaarten te laten produceren bij Spinhex & Industrie. Voor spelregels zie www.bno.nl
</newsTitle>
</news>
My actionscript:
Quote:
news_xml = new XML();
news_xml.onLoad = startnewshow;
news_xml.load("news.xml");
news_xml.ignoreWhite = true;
//
// Show the first news and intialize variables
function startnewshow(success) {
if (success == true) {
rootNode = news_xml.firstChild;
totalnews = rootNode.childNodes.length;
firstnewsNode = rootNode.firstChild;
currentnewsNode = firstnewsNode;
currentIndex = 1;
updatenews(firstnewsNode);
}
}
//
// Updates the current news with new image and text
function updatenews(newnewsNode) {
newsTitle = newnewsNode.attributes.newsTitle;
newsText = newnewsNode.attributes.newsText;
targetClip.loadMovie(newsTitle);
}
//
// Event handler for 'Next news' button
next_btn.onRelease = function() {
nextnewsNode = currentnewsNode.nextSibling;
if (nextnewsNode == null) {
break;
} else {
currentIndex++;
updatenews(nextnewsNode);
currentnewsNode = nextnewsNode;
}
};
//
// Event handler for 'Previous news' button
back_btn.onRelease = function() {
previousnewsNode = currentnewsNode.previousSibling;
if (previousnewsNode == null) {
break;
} else {
currentIndex--;
currentnewsNode = previousnewsNode;
updatenews(previousnewsNode);
}
};
The html tags are NOT working. WHY, what am I doing wrong?
HTML Tags In XML
is there a way to add simple text formatting HTML tags in an XML doc that gets loaded into a flash text field?
TIA
HTML Tags In XML
Hello:
Having a problem with italicizing words from an XML file. I read around the forums, but was unable to find a solution. Can anyone please help out with this?!
Using UTF-8 encoding for the XML file.
var dataLocation = "data.xml";
var siteXML = new XML();
siteXML.load(dataLocation);
siteXML.ignoreWhite = true;
var c = this;
var siteInfo;
siteXML.onLoad = function(ok){
if (ok){
c.parseXML();
}
}
function parseXML(){
siteInfo = new XMLSA(siteXML);
//textField.text = (siteInfo.4k.section[0].getValue());
}
function setText(type, n, sub){
if (sub != undefined){
copy.htmlText = siteInfo[type].section[n].section[sub].getValue();
} else {
copy.htmlText = siteInfo[type].section[n].getValue();
}
}
_root.empty.loadMovie("minisite_resources.swf");
function setWhyText(s, n, sub) {
body.copy.multiline = body.copy.wordWrap=body.copy.autoSize=true;
//body.copy.text = _root.setText(s, n, sub); //set xml here
body.copy.htmlText = _root.siteInfo[s].section[n].section[sub].getValue();
makeScrollc();
}
Please let me know if you require add'l info! Thanks!!!
HTML Tags In XML
Im trying to use HTML tags in an XML file, but not as nodeValues, I want to use HTML tags inside a node attribute string ie:
// test.xml contents
<?xml version="1.0" encoding="utf-8"?>
<root>
<item content="some text that should render as <b>HTML</b>" />
</root>
// flash AS
var xmlLoad:XML = new XML();
xmlLoad.ignoreWhite = true;
xmlLoad.load("test.xml");
xmlLoad.onLoad = function(success) {
if (success) {
trace("loaded");
var xmlContent = this.firstChild.childNodes[0].attributes.content;
testTextField.html = true;
testTextField.htmlText = xmlContent;
trace(xmlContent);
} else {
trace("error");
}
}
When the tags are in the attribute string, flash returns 'undefined', but when I delete them it works ok, but that's not what I want.
And yes, I've tryed <![CDATA[...]]>, and I think it doesn't work inside a node, or its attribute :/.
XML And HTML Tags ...
I am trying to remove HTML tags from a feed I am rendering. So it's like this:
Code:
var myText = myXML.childNodes[2].firstChild.nodeValue
But the node looks like this (containing HTML tags):
Code:
Applications and their development cycle<br /><br /> by Arthur Graham
So any suggestions for how to remove the HTML tags from the node. Maybe something like:
Code:
var myText = myXML.childNodes[2].firstChild.nodeValue.split("<br />").join(" ");
Please help if you can,
Thanks,
Stephen.
Xml And Html Tags
Does flash parse basic html tags from XML like <a> so in the flash text box I can click on it.
Add HTML Tags W/in XML?
Is it possible to add html tags to text in an XML doc?
When I attempt the obvious approach (adding tags around the text I want to format), the XML parsing in actionscript chokes.
So, for example if my XML is:
Code:
<strings>
<English>
<greeting>Welcome to the medeival future</greeting>
<thanks>Thank You</thanks>
</English>
<Fran?ais>
<greeting>Bienvenue</greeting>
<thanks>Merci</thanks>
</Fran?ais>
</strings>
Would it be possible to make the work Welcome bold?
Thanks.
Mitch
Actionscript Tags... What Are They?
How do you put in actionscript tags in FK posts? Seen it done... can't find the documenation on it... nor search results
I know the code tags... I want the as tags.
HTML Tags And LoadVariableNum
I'm using the loadVariablesNum command to load (URLEncoded) variables/texts to use in my dynamic textfields.
But when I try to use HTML code, it does not work. The only thing that works is <FONT SIZE="x"> and <U>.. And as soon as I put </FONT> or </U> after the text, it doesn't appear!
How come?! I mean, it can't be that the <>'s are URLEncoded, because the font size works, right?
HTML Tags In Flash
Loading a external txt, but the tag <b></b> does'nt seem to work, any ideas?, txt frame is set for HTML and the txt file is formatted as such
&_root.txt = <b>bold txt</b>
any ideas??
Using HTML - Which Tags Are Allowed?
Well, okay, I just started to use a HTML-Textfield. I want to know, which html-tags are allowed? Only <font>? Or even <img> and <table> and <a href>?
I saw that in "<font color=" there are only hex-colors allowed (like "#00FF00") but no html-colors (like "GREEN").
Where can I find an overview, which is allowed and which is not?
HTML Tags In Flash
Hi,
I'm having some problems in incorporating HTML text boxes in Flash.
I have put all the text on each page, and they are all in dynamic text boxes.
i have the text linking to certain pages (i select the text, and i give the url address in the character panel>url section in flash), but when i view the movie on the internet, it will open the page, but it will open it in the window that my movie is in.
is there any way to control the button so it opens a new window for the pages clicked, and to do this in the url section of the character panel?
As well, if i have some text that is reading from actionscripting, (ie. making a dynamic text box, then typing all the text in the actionscripting panel) i would like to change the font color at some points, but the html tags dont work?
thanks for all the help
peter
Html-tags And Scrollbar
hi,
I posted a thread before, with the same problem, but I found out more about it, so here's the story:
I want to have html-tags in my dynamic textfield with a scrollbar.
The following code (placed in the first frame of the scene) works fine for making a dynamic textfield with a scrollbar:
mijnLoadVars = new LoadVars();
mijnLoadVars.load("tekstwho.txt", 0);
mijnLoadVars.onLoad = function(success) {
if (success) {
tekstveldwho.text = this.tekstwho;
}
};
BUT: when I want to put html tags in it, they stay visible.
Next script works fine with text with html-tags in it:
loadVariablesNum("tekstwho.txt", 0);
BUT: then my scrollbar is gone......
Can't figure out how to combine those two, any clues?
Thanks in advance !
Maaike
Strip Html Tags?
please tell me this is possible.
can i start with an html formatted text line:
line=<tag>message</tag>
and strip out the html tags so i end up with:
newLine=message
thanks in advance,
nadav
Acceptable Html Tags
Either the new format at macromedia.com is wierd, or i'm just looking in the wrong place...
what are the acceptable html tags that can be used in Flash MX dynamic text boxes?
thanks,
-myk
Html Tags In Flash
Hi!
I managed to find a workaround (a component... eh) to make a working text scroller that can use html tags.
Now i'm having problems with the tags (sad )
I can get the links to work and change to color but i haven't been able to change the font sizes.
What is the correct tag for font sizes? also are there any tutorials about these things?
(i tried normal font size tags but they didn't work)
Html Tags And Properties
anyone know how to make a .swf not play when the page loads? i no longer have the fla file and would like to know if i can do this in the html that embeds the swf.
something like:
<EMBED src="banner.swf" menu=false quality=high {???{play=false}???} ... </EMBED>
understand the question?
HTML Tags Used In Flash
Hi there Im importing some text into a dynamic textbox ...the big question can I give the text html formatting so some of the words are links... or is there another way so I dont have to place the link outside the text box and make tons of Action script....
thanks fellow flashers
Html Tags Inside Of Xml
Can I add some html tags inside an xml document.
Like to format a small amount of text.
PHP Code:
<imageNode jpegUrl="progress/pic_1.jpg"><b>This is just a test for the text</b><br>this is just a test</br>
</imageNode>
thanks
XML Feed And HTML Tags ...
I am trying to remove HTML tags from a feed I am rendering. So it's like this:
Code:
var myText = myXML.childNodes[2].firstChild.nodeValue
But the node looks like this (containing HTML tags):
Code:
Applications and their development cycle<br /><br /> by Arthur Graham
So any suggestions for how to remove the HTML tags from the node. Maybe something like:
Code:
var myText = myXML.childNodes[2].firstChild.nodeValue.split("<br />").join(" ");
Please help if you can,
Thanks,
Stephen.
[MX04] Html Tags ?
Hi buddies here are the html tags dat i have wimmi .... i jus wanna know whether these tags can be displayed in the specified format in a Flash Dynamic TextField or not
1.<pre>
2.<font face = arial size =2>
3.<br>
4.<i>
5.<u>
6.<b>
7.<p align="center">
8.<img src="/mtapplication/files/52352.jpeg"></img>
9.<a href="/servlet/MyFirstServlet">Make me say Hello World!</a>
10.<h1><h2>
.<h6>
11.<hr>
12.<center>
13.<!-- Line 1 --><!-- Line 2 --> Like this also exist
14.<strong>
15.<sub>
16.<sup>
17.<span>
18.<li>
19.<ol>
20.<table>
21.<tr>
22.<td>
23.<th>
24.<div>
And more can i dispaly an xml string in a dynamic text box ???
[F8] Html Tags In Flash
hi, i have a problem; i have a code that has a link to a website and when i do a mouse over, i want it to change colors. Here is an example:
<a href="http://www.name.com/"><li>click here</li></a>
so basically i want the word click here change a specific color when the mouse is over it.
please help, much thanks.
AppendText() With Html Tags
Hi,
I would love to use
Code:
TextField.appendText()
instead of
Code:
TextField.htmlText+=..
but I can't get it working when I use html tags in my strings. For instance:
Code:
tField.htmlText +="<TEXTFORMAT LEFTMARGIN='14' LEADING='3'><FONT FACE='MetaPlusBold-Roman' SIZE='12.5' COLOR='#D9098C'>" +xml.*.@*[i].toString()+"<BR>"+ "</FONT></TEXTFORMAT>";
doesn't show the text.
Any ideas?
Thanks a lot,
Jerryj.
Can See Html Tags When Using Loadvars
I am following a tutorial to load text with html using loadVars
using the following code
Code:
var myLV:LoadVars;
myLV = new LoadVars();
myLV.onLoad = function(p_success:Boolean):Void
{
if(p_success)
{
txt_info.htmlText = myLV.info;
}
else
{
txt_info.text = "Error loading file!";
}
}
myLV.load("htmltext.txt");
the problem is in the one i have made i can see the html tags and the one from the tutorial i can not ...both use same code and same txt file
so somehting else must be selected in the properties panel ?... but for the life of me I can not see what
i have attached both fla in the zip
many thanks Neil
|