ActionScript 3.0 :: Selecting And Formatting Text?

Nov 8, 2010

I'm currently looking into selecting and formatting text but I think I need someone to point me in the right direction.What I would like to achieve is this : So after clicking the button: the text "This selected....." should be red. Only red in the output box would be ok too, but preferably in both.

The input text is an input textfield and the output a dynamic textfield.I have been looking into TextSnapshot but this only seems to apply to static text. Using the htmlText property I could input a string with html tags but that's gonna be complicated I guess. Is there any way of achieving this using TextField.setTextFormat() ?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Text Format Input Text Bold Without Selecting Text?

Feb 4, 2009

Trying to format input text fields using format buttons in Actionscript has been challenging. I've been able to put some pieces together, however I am still missing some things. Here's my code:


Code:
function selectText() {
startSelect = Selection.getBeginIndex();[code].........

I need the ability to click the Bold button and it bolds or unbolds at the cursor so if I hit the bold button what I type from that point on will be bold until I hit the button again and then it goes back to regular. I am able to change it to bold or unbold by selecting the text and clicking the button but I also need to do it without selecting.

View 3 Replies

WYSIWYG Text Editor For Hyper-links / Text Formatting That Exports To Swf?

Jun 12, 2009

Anyone know of a good program such as:WYSIWYG text editor for hyperlinks and text formatting that exports to swf.

View 2 Replies

ActionScript 3.0 :: Set Focus On TI Component Without Selecting Text?

Mar 19, 2010

Is it possible to set focus on a text input component that contains text without selecting the text? I want to be able to focus on the component and have the cursor flashing after the last letter in the field.I am currently using:myTi.setFocus();That correctly focuses myTi but it also selects all of the text currently in the field. What would I need to add to just have a cursor flashing at the end of the characters currently in myTi?

View 1 Replies

Flex :: Selecting Multiple Text Objects

Oct 5, 2010

Consider there are two text field objects:

TextField1="texta";
TextField2="textb";

Output: texta textb Now I want to select from "ta" in TextField1 to "tex" in TextField2. By the drag of a mouse. I know that by conventional methods it is not possible? Is there any other way to achieve this? And I need to highlight the text also.

View 1 Replies

ActionScript 3.0 :: Textfield Scrolls When Selecting Text?

Aug 10, 2011

I 've got a textfield that is inside a movieclip scroller. I've got an issue though, when selecting the text, and dragging down the text moves one notch, is it possible to disable that?

Basically it does it with mouseWheel to, but I've set that on off, so it's ok.
But is it possible to disable it when selecting, too?

The text comes from an XML file, and I suppose that scroll happens because of white space on the XML. I tried disabling white space using AS3 but it doesn't seem to work.

View 9 Replies

ActionScript 2.0 :: Formatting External Images And Text In The Text Field?

Jan 3, 2010

I make RSS reader in flash. I have a text field and when I place RSS text and images in that text field I need to have a text in the new line after picture. But now I have image from the left and text from the right.

View 1 Replies

ActionScript 3.0 :: Formatting Html Text In A Dynamic Text Field

Jul 4, 2009

I'm building this flash site for a friend and he wants to be able to edit the contents and maintain the site by himself later on. So naturally, I used a dynamic text field that uses URLloader to link to an external html, dandy. Problem is, my friend wants to use dreamweaver to edit the contents of html (or even just a word document exported as html) and it's just driving him nuts because the text look nothing like that way it did in DW when it's loaded into the dynamic text field (extra spacing and line break popping up randomly everywhere). Is there an alternative solution other then telling him to just edit it in notepad? What if I switch over to XML?

View 2 Replies

ActionScript 2.0 :: Text Formatting Part Of A Dynamic Text Field?

Sep 18, 2009

make one word in a dynamic text field bold WITHOUT using the htmlText property? Everything I have read seems to indicate that you can only make the whole field bold.

View 3 Replies

ActionScript 2.0 :: Formatting External Images And Text In The Text Field

Jan 3, 2010

I make RSS reader in flash. I have a text field and when I place RSS text and images in that text field I need to have a text in the new line after picture. But now I have image from the left and text from the right.

View 2 Replies

ActionScript 3.0 :: Selecting Text When AIR Window Dragging Is Enabled?

Jul 28, 2011

I made an AIR app and enabled it so the user can move it around the desktop where they want. One problem is on a page of textfields, if the user tries to select text (click, drag cursor to select the text) the app drags instead.

Any easy solutions other than having to set up listeners for every textfield and "interrupting" dragging?? (AIR 2.7)

View 1 Replies

Professional :: Selecting TLF Text Sorta Freezes Flash?

Oct 11, 2010

When I use TLF text in CS5 flash seems to use to capacity / I cannot do any clicks for around 10 secs when selecting/deselecting textfield. What could be the reason for flash slowing down so extremely?
 
Im using WinXP, SP3 System: HP xw6600 Workstation @ 2.50GHz, 3,25 GB GB of RAM,

View 3 Replies

ActionScript 3.0 :: Accessing The Text Inside A Row From A DataGrid Without Selecting The Row?

Jan 31, 2011

I am developing a coverflow application where I have populated a data grid from an xml file. Now when I click on the cover flow , it generates a pop up with a result drawn from a random number generate function.This random number matches with the index of the data grid and displays the row in the pop up. I could not access the text inside the row. How to do it?

[Code]...

View 0 Replies

ActionScript 2.0 :: Text Formatting In Text Brought In From ASP Page?

Feb 6, 2003

I'm trying to pull a variable from an ASP page that's pulling it's info from a database. The ASP page has a response.write that outputs &ScrollText = text that comes from the database. The ASP page works fine, but when I try to pull in the variable in Flash, it takes in all the html URL escapes, i.e.: %20 for a space %22 for a ", etc. I've tried using Server.URLEncode in my ASP page, but that didn't help any. I'm displaying this text in a dynamic text box with a scroll bar.

View 1 Replies

ActionScript 2.0 :: TEXT Formatting When In Dynamic Text?

Jul 18, 2004

why can't i format my text when i am in the dynamic text setting. i mean justifying and all that?

View 1 Replies

Flash :: "append" Html Text To Text Area In Flex And Flex Mobile Project To Display Sprite And Text Formatting?

Jun 7, 2011

I'm playing around with a messaging type of application. Does anyone know how, or of any tutorials on to "appending" html text to text areas in flex and flex mobile projects? And specifically how I could take that and basically "append" a sprite inline to the text when i need to? Something simple like:Username: some text right here!So, Anyone have any experience "appending" sprites or simple text formatting?how to solve these issues!EDIT:Based on an answer below it was sugguested that it's as simple as...textAreaInstance.htmlText += "<b>Username:</b> some text right here!";But its not. you can't do .htmltext with a text area. you can on a text field, so i tried

var TF:TextField = new TextField();
TF.width = 200;
TF.height = 200;

[code].....

View 3 Replies

ActionScript 2.0 :: CS3 Text Formatting?

Jan 4, 2010

I am working on a project where I have made a Text Formatter by which I can format the text of three input text field.My formatter works fine, but the problem is that when I format the first text field it works good, but in the second or third textfield I have to press the formatting button twice for each format option (such as bold , italic or alignment).Another problem is that when I reopen the formatter it format the text field with last option I have used.

View 4 Replies

ActionScript 3.0 :: Formatting Text Via XML

Apr 29, 2011

I'm trying to format an XML file so I can have HTML tags on it for bold, italic, underline, etc... but its not working. When I'm not using any HTML tags my subtitle works great but when I put the tags the player reads the time tag not the sutitle!!

[Code]...

View 6 Replies

ActionScript 3.0 :: Xml Text Formatting With Css

Jul 3, 2011

i have set a textfield's text from an XML and now I am trying to format it with css. the xml text loads all fine and the css loads but they are not working together.

[Code]....

i am not too familiar with css or html but studied up on css and based on all of the searching i did i am not able to find out what i am doing wrong here. do i need to set the xml with standard html language/nodes?

View 4 Replies

ActionScript 2.0 :: Formatting Xml Text With CSS?

May 3, 2010

I have a file where I am importing info from an XML file using atttributes. It works fine, except I no longer want the font to be embedded. I want to either call if in from a stylesheet or set it in the actionscript, so it uses same arial or san serif used on the rest of the web site it is a part of.

my code.......

var myImages:Array = new Array();
var myXml:XML = new XML();
//

[Code].....

View 0 Replies

ActionScript 2.0 :: Loading Text And Formatting?

Sep 20, 2009

I need now is, to load it and format certain parts of it automatically.For example, I have a blog with lots of posts, and the posts are:

---------begin-------
TITLE
DATE
Content
----------end--------

And so, I need the title and the date to be one font, with different colors between them, and the content is another font, on a third color.I have to do this because I've been putting the posts directly inside flash, and they got so long after a while, that I can't have all of them on my screen at any one time, they exceeded flash's height limit...so, to edit the older ones, I need to keep scrolling everything up, which is a pain.

View 4 Replies

ActionScript 3.0 :: Formatting Text Is Not Working?

Sep 3, 2009

Why is the following not working to set my text style?

private function createTF():void
{
tipTxt = new TextField(); 

[code].....

View 2 Replies

ActionScript 3.0 :: Dynamic Text Box Formatting?

Jun 22, 2010

I'm running into issues with using HTML formatting for a dymanic text field. I know these are quirky and I cannot figure out how to get the formatting proper.I have on my stage a dynamic text box called "content_txt" inside of a movie clip instance "content_mc". When it enters the frame, I fade the "content_mc" from alpha 0 to 100 using a timeline animation. In order for this to work, I have to embed the font in my "content_txt" text field. However, the only way I get get the HTML formatting to work is if I do not embed the font.
 
The dymanic text field is set to render as HTML. In my actions layer, I set the text:

this.content_mc.content_txt.htmlText = "<b>Hello world,</b> it is me again."
 
In summary: 1. If I do not embed the font, the alpha fade does not work but the HTML formatting does.
 
2. If I embed the font, the alpha fade works but the HTML formatting does not.
 
How do I resolve this? It's driving me nuts!

View 16 Replies

Professional :: Flash And Text Formatting?

Nov 12, 2011

I have a dynamic TextField with very wide letter spacing in my .fla. However, whenever I change the text in the TextField using actionscript, the letter spacing resets. Is there a way to keep that from happening? And why does it happen in the first place

View 1 Replies

Mysql :: Formatting Text In Flex?

Jun 8, 2010

basically I have an admin flex page that allows the user to enter text into database. Then the frontend app will take the database entries and display them to the user. However there is no formatting. Do I need to insert html into the database then read that html again?For the user using the admin, they probably wont know html, so is there a simpler way to format?

View 1 Replies

Flash :: Text Box Formatting Differences

Feb 14, 2011

I have two text boxes on the same window. They are both set to Arial 14 Regular but they both appear very differently. To see what I am referring to: [URL] and go to the Conversion Tools at the bottom of the page. Click on Surface Finish and type in a value in the two different fields and click calculate. I really don't see anything that could be causing this difference in appearance.

View 2 Replies

Flex :: Text Formatting For A String?

Jun 6, 2011

Can I set the font size for string? I want to do text formatting for string, Is it possible in flex?

View 3 Replies

ActionScript 2.0 :: Text Formatting Gone Bad ... Well Null Actually

Sep 2, 2009

If I create an html textfield and give the text the bold tags, when I run a getTextFormat() the bold returns null. Here is the scenario I made up to replicate this.

1. I created a textfield where I set the html text to

Code:
<b>Some bold text</b>

2. I take the html formated text from the first textfield which is

Code:
<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B>Some bold text</B></FONT></P>

3. I apply the html text to another textfield and check for bold.
4. The bold is null instead of true

View 0 Replies

ActionScript 3.0 :: Way To Add Formatting To Dynamic Text

Sep 27, 2009

is there a way to add formatting to dynamic text, e.g. make stuff bold, add a new paragraph, what should i search Google, are there any good websites? notes.text = "Baetica and Lusitania: Roman possession of Spanish territory began with the Second Punic War."i need to know how to make "Baetica and Lusitania" bold, and add a new line after the colon.

View 4 Replies

ActionScript 3.0 :: Complete TLF Text Formatting?

Mar 14, 2011

I am struggling with TLF text, I searched and searched and can't find a GOOD tutorial or complete method on how to format TLF text with AS3, I need to:

- Load dynamic text into dynamic TLF text field
- Set custom fonts
- Set formatting including letter spacing, margins, leading, sharpness
- Set links, link hoover color, link decoration
- Get a method that supports HTML tags (those supported by Flash CS5)

tutorial, book, e-book that explains all the steps needed to set, format and control TLF text?

I need something that explains how to do this, logically, step by step, I'm a designer not a programmer

View 0 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved