ActionScript 3.0 :: One Textfield Have Multiple Text Backgrounds?
Oct 6, 2009
I have been trying to find a way to color the backgrounds of different words in a single textfield with different colors.
For an example, lets imagine the whole text is a story which has nouns and verbs...etc Now I want to show the full text which is my story and highlight the background of nouns in blue, verbs in red.
Then I have dedicated toggle buttons for each types. The use of those buttons is removing or showing those backgrounds. For an example and when user clicks on noun button it will remove or show the background of all the nouns. Same for the button for verbs.
Then you may ask why I can't achieve this by using separate textfield for each word in the story and line them like a paragraph. The problem is user should be able to edit those text. So those are INPUT typed textfields. So all the words should move within the boundaries of paragraph when user keep changing one word. see the second attachment and you may see that I have changed the first word by typing "abcde", so as I type all other words should move like you type inside a textfield. So thats why I think if we can achieve it using single textfield rearranging words as user types is taken care of the textfiled so we don't need to place all the words manually.
When I was trying to think of a way to do it, I found that background is only a property of TextField, but not TextFormat. If it was a property of textformat then I could have set different formats for different words in same textfield. So that option is out.
Also I thought of using CSS with htmlText. But unfortunately text-background is not supported by actionscript stylesheet class.
View 1 Replies
Similar Posts:
Dec 21, 2005
how can i make a movieclip and a textfield to resize to the content of the text in the textfield? I mean, if I have a textfield with 3 letters font name XXX and then the content of the field change, how can i resize te textfield so the text dont autoadjust to the 3 letter space?
View 3 Replies
Jun 18, 2008
Does 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]...
View 3 Replies
Aug 29, 2011
in as3 how do i get the text of a textfield to know when to line break according to the width of the textfield.
View 4 Replies
Mar 12, 2010
I have MovieClip with TextField in, how can I dispatch when change text in TextField or remove TextField or add something else.
View 3 Replies
Mar 2, 2011
As the title states, I need to know how to save multiple text files, from multiple text boxes on the screen. Each textbox has the instance name of t1, t2, t3... and so on. Here is the code I have now:
[Code]....
View 3 Replies
Jul 10, 2009
I'm creating flash site which will have different backgrounds for each page. I'll load the individual pages with "MovieClipLoader." My understanding about MovieClipLoaders is that, it doesn't matter the background of your mc, the page to which you are loading will maintain it's background.
View 3 Replies
Feb 8, 2009
Im building a website fully with flash and there is the typical navigation bar to get to the other parts of the site..
each part of the site has a different background photo and I would like to fade out/In each background of the site...
if it would be linear on the time line its obviously just a matter of motion tweens and alpha values.. .but how to do it if one wants to jump say from section 6 to 1 and have background 6 blend with background 1 ?
I guess there is a way to create an if statement in ActionScript ?
View 6 Replies
Dec 10, 2009
an image is smaller than the stage, is it possible to tile it?
View 3 Replies
Jan 13, 2004
If there is anyone out there, and im sure there are, who has any good methods for creating clean looking seamless pattern looking backgrounds for the web?!
View 1 Replies
Nov 12, 2010
I'm building a game that is relatively heavy. I load the essential assets before rendering the game, such as sounds, classes, movieclips and bitmaps. Now my question is... There are some none essential assets that I want to load in the background and not in the main load to speed things up for the user. But, apart from consuming the user's bandwidth...I have the feeling the animations slow down if they are running while the assets are loading in the background.
View 2 Replies
Jul 2, 2010
I've successfully created a class which extends List to create a List with different coloured backgrounds depending on a colour property of the ArrayCollection used as a dataProvider. Technique is described here:
[URL]
I'm now trying to do the same thing in a ComboBox. I know it's possible with either a classFactory or extending the ComboBox but I really can't work out how - there is so little information on things like the classFactory around.
View 4 Replies
Jan 20, 2009
I've been tasked by a client to make a scaling flashsite that changes background through the various pages. In addition some of the other objects need to scale to page as well.
[URL]
This is the page in its current form. The background and the buttons on that layer scale with the size of the browser window. But if you click "who is the Rabblerouser" the box with text opens and I'd rather that not scale or atleast scale to a smaller size. I realize its scaling because its on the movie that the action script is set to scale... so I don't know what the best practice is here. All of the example sites with scaling pages had one background
I still need to code a PHP mailer and put in a video when the client supplies it.
Here is the link to the FLA file: [URL]
View 0 Replies
Aug 4, 2005
i have seen floating flash movies and also flash movies with transparent backs to them
View 2 Replies
Apr 30, 2006
I don't know whether anybody here's been to [URL] before, but if you'll notice, the site's background doesn't appear to tile, yet continually re-fills the browser window upon re-size while still loading quickly.
View 2 Replies
Aug 9, 2006
from this tutorials, instead of duplicating both X and Y planes, I want it to only duplicate Xfor example, http://nano3.orgyou can see the grey fading into white, I just want the fade in my flash which is already an image.
View 3 Replies
Feb 28, 2008
Is it possible to load backgrounds for the thumbnails in tutorial http:[url]...Now I have a mc containing multiple white backgrounds at 65x65px, which loads and places it under the loaded thumbnails (like a mask), but I would rather like it to load a singel mc, seperatly for each thumbnail. How can I do that?
View 1 Replies
Mar 9, 2006
I'm making a flash banner for a client, it has a button to switch between backgrounds, however, how do I say something like
[Code]...
View 7 Replies
Jun 7, 2010
I'm having an issue with solid backgrounds showing up behing transparent PNGs in Flash. I know this isn't a lot to go on, but I have no idea what is going on here, My client sent me the attached image.. This is what they are seeing (the green box behind the top of the vehicle). I am not seeing this. Apparently this box, and other similar boxes show up during image transitions.
I am using Tweens to fade between different models and colors of the vehicle. I was originally using Caurina/Tweener, and experienced similar issues myself, but since switched to using the built in tween class, and am not seeing any problems anymore, but apparently my client is.You should be able to see the attached image. You can also view the demo link, to see if you see any issues yourself with the PNGs fading in and out....(you'll have to sit through the intro, then click EXPAND on the final frame)
View 1 Replies
Aug 7, 2009
Basically here is what I want to do[code]...
But I got something wrong in the declare statement.
View 1 Replies
Aug 1, 2011
Having a bit of trouble getting embedded fonts to work. The inconsistency with this is driving me crazy. I've gotten this to work before but not since going to cs5.[code]...
View 1 Replies
Mar 31, 2012
I'm adding a TextField with html text. I'm applying a StyleSheet to it.
How do I apply multiple classes on my html element like so
<span class='classOne classTwo'>my text </span>
I tried this and it looks like flash can't handle this, it renders text without any styles.
View 3 Replies
Apr 23, 2011
I'm trying to Have multiple buttons that when clicked on, they display a text unique to each button. I don't want it to simply throw a textfield on top of the old one but rather to hide the other text field and insert a new one.
ActionScript Code:
var fl_TF:TextField;
var fl_TextToDisplay:String = "Text 1";
var fl_TextToDisplay2:String = "Text 2";
[code]....
Clicking on 'button', it displays the proper text.Then when I click on 'hider' button, it displays the right text and takes the text from 'button' away.However, the file crashes when I click on 'hider' first. Also, clicking on 'button' a second time doesn't take away the text that 'hider' symbol produces.
View 4 Replies
Feb 12, 2005
I have multiple mc's that contain input textfields. I want the results of these to appear one after another in the same dynamic textfield. Later they will be sorted alphabetically.
So far, I've been able only to get one item to appear at a time in the dynamic textfield--the next item replaces the first. A for loop didn't work.
Can anyone point me in the right direction to get the new text string to be added to the previous text string rather than to replace the first text string?
Anything at all similar I've seen creates a shared object instead of writing multiple strings to one dynamic text field.
View 2 Replies
Mar 3, 2008
I know fonts and flash are always an issue
How am I supposed to add fonts to a textfield that loads the info dynamically trough XML say I want to be able to have Arial, Verdana and Tahoma in both bold and Italic
View 1 Replies
Feb 12, 2005
I have multiple mc's that contain input textfields. I want the results of these to appear one after another in the same dynamic textfield. Later they will be sorted alphabetically.
So far, I've been able only to get one item to appear at a time in the dynamic textfield--the next item replaces the first. A for loop didn't work.
Can anyone point me in the right direction to get the new text string to be added to the previous text string rather than to replace the first text string?
Anything at all similar I've seen creates a shared object instead of writing multiple strings to one dynamic text field.
View 2 Replies
Jul 11, 2009
i've created this class:[code]..........
but qhen i instence an HTMLText it says tom me:
TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set htmlText()at classi::HTMLText() at intro_sito_fla::MainTimeline/frame117()0
1) How can i set this parameter?
2) How can i get request.data value? It's not a string, so...?
View 1 Replies
Oct 25, 2010
When applying text formatting to a comboBox, the text formatting appears perfectly on the dropdown menu items but the textField text disappears.Removing the text formatting from the textField makes the textField text reappear but of course there is no text formatting.
Is there a trick to this.
View 9 Replies
Aug 19, 2006
how to tell the cursor(vertical text flasher) to jump to the end of the text in a input textfield - so that you can continue typing from the end of existing text?
View 5 Replies
Mar 6, 2011
Some might know by know that I am working on a school project.But my knowledge of AS3 is not so big.My game is doing what it is supposed to do (for now).But the place where I declare (or something.It now looks like this:
Code:
public class game extends MovieClip
{
[code]......
View 2 Replies