ActionScript 2.0 :: Loading A <html> Text Into The Textfield And Give A Tab/space?
Mar 19, 2004I am loading a <html> text into the textfield. I am wondering how do i give a tab/space. & nbsp ; is not supported I guess
View 2 RepliesI am loading a <html> text into the textfield. I am wondering how do i give a tab/space. & nbsp ; is not supported I guess
View 2 RepliesI am trying to load a html text from a XML with flash cs4 but It loads with huge whitespace before and after the text. In an older, different version of the site made in AS2 it loads the same xml with no whitespace.I've tried setting xml.ignoreWhiteSpace = true but it doesn't seem to change anything.
flash code:
Code: Select allvar XMLRequest:URLRequest;
var XMLLoader:URLLoader;
var xml:XML;
[code]....
I am loading a <html> text into the textfield. I am wondering how do i give a tab/space. & nbsp ; is not supported I guess
View 2 RepliesI'm loading a textField with addChild in a movieClip and want the external text file I am loading into this textField to render in the textField as HTML. I have attached the code I am using.
View 3 RepliesIs there a way to control the vertical space between two HTML paragraphs, in an AS3 TextField?
I understand and have successfully applied CSS styles via AS3 and have also utilized the TextFormat class.
I am still unable to control the vertical space between a closing and an opening <p> tag: txt.htmlText = "<p>First paragraph here.</p><p>Second paragraph here.</p>"; The example above renders with the correct font and letter-spacing, but the space between paragraphs is either two-times too tall if txt.condenseWhite = false or it is too condensed if txt.condenseWhite = true.
Since only margin-left and margin-right are available CSS attributes in AS3, and not margin-top or margin-bottom, I am at a loss.
I made a simpel textFiled with some text and a border. Does anyone knows how to get rid of the extra space betweenthe text and the border of the textField? I'm goning crazy withthis.I made the width of the textFiled the width of the text andthe height of the textField the height of the text. But because ofthe extra space the text will not show as I wanted to be.
View 2 RepliesI'm using loadVars to import text from a text file and then put it into a dynamic text field - rendered in HTML. There is an extra space in the first line of text for some reason. I've checked the dynamic text field and theres no spaces or returns in it - its empty before putting the text into it.
View 2 RepliesI'm using loadVars to import text from a text file and then put it into a dynamic text field - rendered in HTML. There is an extra space in the first line of text for some reason. I've checked the dynamic text field and theres no spaces or returns in it - its empty before putting the text into it.How can I get rid of that extra line?
View 2 RepliesHas anyone else ever had or heard of this situation? Its only happening around the edges of link tags,Code:Hello <a href="">world</a> my name is george.renders asHelloworldmy name is george.The link still works fine, Ive tried putting the spaces outside the link tags but it still happens.Im having to put double spaces in to get only one of them appearing its so wierd.I dont remember this happening when I was working in AS2 but cant isolate the problem at all.
View 7 RepliesDoes anyone know, why a textfield may become white when loading text + JPGs into it? Sometimes it happens to me, sometimes not. I haven't figured out why. If you have any clues... The AS I'm using:
[Code]...
When i use html in my xml it seems that as3 add the html text hidden to the textfieldcausing an y moving because of the html. How can i do to use html in xml without adding it to the textfield?
View 1 RepliesIs there any way to control the space between the bullet and the text in an HTML text field? When I use the <li></li> tags it causes the text to be about 40px from the bullet like:
�____bullet 1
�____bullet 2
but I want it to look like:
�_bullet 1
�_bullet 2
(ignore the underscorE)
I tried messing with indent, leftMargin and others but with no luck. I'm publishing for Flash 8.
I have a file with html text and html code. I load this (test.txt) into a dynamic textfield. Then I want to do this with String functions: String Str1 contains the value I want to search for in the textfield. Str1 = "<script language="javascript">AC_FL_RunContent = 0;</script> <script src="AC_RunActiveContent.js" language="javascript"></script>" Search textfield after Str1 remove Str1 value from textfield My goal is to clean my html-file/textfield after all script java tags. The tags that Flash CS3 automatic puts into HTML file to activate AC_RunActiveContent.js
View 0 RepliesI am wondering if it is possible to detect what kind of text is assigned to a texfield. There are 2 options to choose from .htmlText and .text
For example: mytextfield.htmlText = "hello <b>world</b>. This is some html text, but the text could also contain none html tags"
mytextfield.text ="Hello world, This is some plane textcontent"
Someting like trace(mytextfield.html) ?
I need to get the position (x,y) of the last char in a textField with html text inside. I try with numlines and getLineMetrics, but that only work for non-html text. If I have a text like
Code:
<p>text one</p><p>This is the other text</p><br><br>
I need to have the position on the stage of the last "t".
found that code to display html format text to dynamic textfield in as3:
var url:String = "http://edeejay.dyndns.org:8000/currentsong?sid=1";
var loadit:URLLoader = new URLLoader();
loadit.addEventListener(Event.COMPLETE, completeHandler);
[code].....
I have a web page which has a SWF file embeded. I have an issue with the focus.
Steps to reproduce:
1)Click on a HTML Text Field which is inside a Iframe
2)Click on a Flex Field.
3)Begin to type some text.
Expected Result is the entered text should go in the Flex TextInput field but the actual Result is it goes into HTML text field.
This is the bug which was filed but closed without any resolution. The workaround suggested there doesnt work. ( bugs.adobe.com/jira/browse/SDK-12377 )
This is happening only in IE 6.0 and IE 7.0. Below is the live example. [URL]
i am loading my text into a text box which is rendered as HTML. this works fine, except if i put this code
HTML Code:
<font color='#00FF00'>sfdg</font>
where it just says that, and doesnt change the colour, any way to get it working?
I already have the text loading working.The only thing I'm not sure how to do, is that I need the text to have different fields with different fonts.I'm specifically doing a blog. Each entry is comprised of the title, date and content. And I need to format the title and date to one font, and the content to a different one.How can it be done?
View 1 RepliesIs it possible to load text into a dynamic text field, and if yes how could I do this? I've searched a few tutorials on dynamic text fields but it concentrates on scrolling. I would like unique text to load in the dynamic text field depending on which navigation button I click on.
(i.e. I click on "button1" and "blabla1" text appears in the text field. I click on "button2" and blabla2" text appears in the same text field.)
I'm missing something really simple...Relevant code:
Code:
private function weeklyComplete(e:Event):void
{
[code]....
Is there a cross-browser solution available to give a flash banner an html link, without putting it into the flash itself? (i.e. the Flash has no clickable button in it). I tried giving the surrounding anchor tag a high z-index, but that did not work. I'm using the standard google swfobject to include the flash banner, but am not stuck on using that.
View 1 Replieshow to tell what is causing Internet Explorer to give a security warning for some flash videos on my site? I've looked through the HTML and can't find anything, so it appears to be somewhere in the Flash itself.
View 1 RepliesIam puting 4 in txt_inp.text and it doesn't give 2 in lolo.text.
txt_inp.addEventListener(TextEvent.TEXT_INPUT, someFunction);function someFunction(insTxtEv:TextEvent):void{
lolo.text = String(Math.sqrt(Number(txt_inp.text)));
}
I have a dynamic text box on my flash page called homepageText I've been able to import text from a .txt file into the Dynamic Text box and that's fine, but I want to be able to format certain parts of the text, like making parts bold/italic, adding links, adding images and all those things to the point flash will allow.
View 1 RepliesI want to load external png's through this code:
(for this code, check the mcBandPreloader in de .fla file)
ActionScript Code:
var imageLoader:Loader;
var RespJpeg:String = "images/arch1Proj.jpg"
[Code].....
Here the problem is that I can't type html in my external txt file. (I did checked the html button in Dynamic Text Properties.
.fla can be downloaded at [URL]
I am calling in HTML text into a dynamic textfield on stage and need to change font styles within the HTML text for my titles (to Arno Pro).I dont know HTML and think I might somehow need to embed the font I want to use?If so, do I do this in AS or the HTML text file.[code]
View 4 RepliesI'm making a four column layout with four dynamic text fields and text that loads from a html file. The structure of the site and which html file is to be loaded on which page is specified in xml, but the actual content on each page needs to be editable in separate html files (different people will do the editing, and I don't want them to go around messing with the structure).
The problem is that I need the four columns of text to be loaded from a single html file. I was thinking that I could make four paragraphs <p>paragraph1</p><p>paragraph2</p> etc., one for each column, but how do I load them each into a separate dynamic text field?
I was thinking of adding frame on top of my home poage to give users better navigation with a meun on top.But how do you make when you press the button in flash the hyperlink will make the frame at the bottom or specific frame page to change?
View 2 RepliesSo I have a dynamic text field that is loading an external .txt file with html coding in it.I can get the text to load and display properly, however I now want to make a custom scrollbar and I have no clue how to even get it to work.I've tried a few things and just can't figure it out. I want to make a custom one instead of using the component one. It doesn't even have to be a traditional scrollbar, I would much rather just use an up and down arrows. In the past I've just used buttons and placed AS directly onto them.The code that is loading the text into the text box is: (I don't know if that will help at all but I'm posting it anyways)[code]
View 3 Replies