[help] Highlight Text
hey guys,
I've searched the board and cannot find anything. What I'm wanting to know is: "is there any way to make the textField highlight when the frame that the imput textBox is in is shown? and also when the user clicks on the text box?"
small quick example
www.leightfgc.com/flash_files/click.swf
thanks guys!
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-29-2004, 06:37 AM
View Complete Forum Thread with Replies
Sponsored Links:
Highlight Text.
Hi everybody,
i have a problem, i want the user to imput a text in a text box and then i will change the collor of the first five letters.
Can somebody help me do this?
View Replies !
View Related
Highlight Text
Hi,
Is there a away to display text, into a textfield, with a “dynamic” background (Highlight). I mean as if the text was selected.
Context:
With some AS I create a textfield and load text, from files, into it.
Due to the background of my mc, I want to put a background just for the text. But the background has to have the specific length of each line, as if you select a block of text in a text editor or on a web page.
I have tried with textformat, html tag, css but nothing.
Is there a way to do this ? I’m sure there is…..
For sure I can try to find the font I’m using in a “inverse” mode, but I would prefer to avoid that.
Thanks,
View Replies !
View Related
Highlight Text
Is there a way to highlight text in a dynamic text field?
For example I have text: "The quick red fox jumped over the lazy brown dog."
Say I want to highlight "jumped". Can that be done? If so, how? Thanks.
View Replies !
View Related
Text Highlight
Hi guys
How can I change the highlight color of a text? its black when I highlight a text but I'm using a black background which doesn't show the highlight
thanx in advance
View Replies !
View Related
Text Highlight
CAn anyone help guide me where to begin in creating a rolling text highlight?
example:
I would like to learn how to do a title highlight that rolls across text. example: http://www.2kgames.com/civ4/news.htm
View Replies !
View Related
Highlight Text
I need help, I've wasted way too many hours on this issue, and I am no longer able to see the forest from the trees.
I've made a Text Editor (just a simple one) for a grd 3-5 math quiz system. It can do everything but highlight text.
I can't figure out how to highlight small block of text in larger blocks.
IE: this is a test sentance
in the above I would like test to have a different background colour than the rest of the sentance.
help
View Replies !
View Related
OnSetFocus Highlight Text?
How can I have the text in an input field highlighted when the input field is given focus (much like when you click the address bar of your browser, and the address is highlighted so you can type right over it)?
I was thinking something like:
myText_txt.onSetFocus = function(){
Selection....what??
}
Thanks.
View Replies !
View Related
Highlight Text In A Textfield?
Hi,
doe's anybody know's if there's a why to make text in a text field highlighted(beckground color)?
I know there isn't any property like that for textfield or text foramt but there is an action named highlight in flash and I dont know what it's for.
I'll apreaciate any help,
Thanks,
Oz.
View Replies !
View Related
Text Highlight Color
Hi yall,
Does anyone know if there is a way to change the text highlight color for a text box?
I have white text on a black background that is selectable...the only problem is it highlights the selection in black so it isnt visible. Any workarounds for this?
thanks in advance.
JTK
View Replies !
View Related
Allow User To Highlight Text
Hi,
I want the user to see a pencil/highlighter tool on screen which they can click on if they wish and use to highlight text on the screen.
I've been looking for ages but can't find a simple answer to this.All help appreciated.
Fran
View Replies !
View Related
XML Menu Text Highlight
Regarding this tutorial:
http://www.kirupa.com/developer/acti...pdown_menu.htm
Does anyone know how to highlight the menu text rather than the button background (on rollover)? I tried using a color object, TextFormater, and finally, I tried making two frames for the menu text item (one for default and one for highlighted text) but nothing is working. I think the real problem is in finding the correct name for the menu items. I'd appreciate it if someone could figure out the correct clip name to use (for the above tutorial file).
View Replies !
View Related
Highlight Within A Text Block
Very New at Flash, so please help...
Heres the deal, I have a WAV file I am trying to synchronize Highlighted text to.
For example Base layer is one text block, Black text
Each word Layer is A single word, as Maroon Text, directly overl base
Goal .. as word is heard, text highlights til next Word..
This File is maybe 200 layers and already huge 500k... How can I do this with 3 instead of 203 layers
As Example....
Sound__Voice Layer - Speech Wav saying "This is the Text Sample"
Maroon_Word5 Layer_________________Sample
Maroon_Word4 Layer____________Text
Maroon_Word3 Layer________the
Maroon_Word2 Layer______is
Maroon_Word1 Layer__This
Black___Base__Layer__This_is_the_Text_Sample
PS trying eval flash mx 2004
View Replies !
View Related
Selected Text Highlight Colour
is it possible to change the highlight colour of selectable text in a dynamic text field. I have a black background and white text and the default highlight colour of the selected text is black so it looks like nothing is selected
Thanked in advance
searched forum and i can't get an answer to this
View Replies !
View Related
Can't Highlight Text In Textinput Component.
Hi all,
I'm having a problem with some of my text input fields. After I fill out one of these fields and then click in it, the cursor jumps to the beginning of the field no matter where in the field I really clicked. That's OK, but...
If I then try to highlight the text that's in the field by using my mouse, it doesn't highlight. I can only highlight using the keyboard, by using SHIFT + one of the arrow keys.
Has anyone else experienced this? Thanks for any help!
View Replies !
View Related
How To Highlight Certain Text In Dynamic Textbox
Hi, is it possible for me to highlight certain paragraph or lines in a dynamic textbox?
I only know how to highlight all the text in the dynamic textfield.
Here is my codes:
function colorText(myTextField)
{
var myTextFormat = new TextFormat();
myTextFormat.color=0x00FF00;
myTextField.setTextFormat(myTextFormat);
myTextField.setNewTextFormat(myTextFormat);
}
colorText(myTextfield);
View Replies !
View Related
Auto Highlight Single Text Box
I just completed a Flash site but am stumped on how to force hightlight a single text box (area). Let me explain the site (or game interface).
This site is a game interface for a campaign my work place is running. What will happen is a user will come into the branch with a pre-print "ID CARD" and scan that card into this system to see if they won a prize.
I used simple "password" actionscript to get the users "ID Card" barcode read out tp bring them to one of four pages. Those pages let the user know what they have won, if any thing.
Where I'm stumped is that I want the single text entry area on the "SCAN YOUR CARD" page to be automatically highlighted when the user hits this page. I'm sure there is a way but I'm not finding it.
The site I built is a 5.5 FLA file but I could upload a smaller example of the site and/or upload the SWF to my servers if this would help.
Thanks,
Jenny
View Replies !
View Related
Text-selection Highlight Problem
I am using MX2004 / AS2 and I have an application with an assortment of textfield objects that are color coded. I use code of the form
Code:
var oColor:Color = new Color (textFieldReference);
oColor.setRGB(0x009900);
It colors the textfields fine, but I allow the user to select the text with their mouse; the color effect when the text is selected is to highlight the background with the same color as the text-color, but not to change the text color (to white for example) so that it can still be read -- highlighted text becomes a solid block of color that makes the letters essentially invisible.
Is there an extra step I'm missing to make selected text work as expected -- reverse the color of the foreground when the background is selected/highlighted?
thanks,
BR
View Replies !
View Related
Highlight Text Based On RegExp
I'm trying to highlight certain text based on a regular expression. I am getting the lecture and the "keywords" (those to be highlighted) from XML and I have it coverted to a string. I'm using the regular expression to look for the given words in the lecture. How would I return a string with styling modifications?
View Replies !
View Related
Highlight Specific Text In A Textfield
Hi all
My client wants a search facility on his flash site. You type in the search phrase or word and a list of pages appears, you click on the link and it takes you to that page. so far so good.
What I want to be able to do is highlight the phrase everytime it appears on the page. There are several textfields on each page containing text. I would like to be able to make the searched for phrase stand out in some way, preferably using a coloured box around the words.
Any suggestions? Im nearing the deadline and need help on this.
View Replies !
View Related
Selectable Text Highlight Colour
Does anyone know if you can change the colour used to highlight text in a selectable text field? It's cause the background colour of the site is black and the highlight colour is also black, it's white text so ideally I'd like to set the highlight colour on selected text to 50% grey. Any help would be much appreciated.
View Replies !
View Related
Highlight TextInput Component When Editing Text
I have several textInput components on the stage and would like to somehow show the characters
that are selected for editing with a highlight of some sort. Basically like what happens with most
standard text editors. The characters/chunk can be selected, but there's no visual feedback as to which chunk
of text is active. Any help on this would, as always, be greatly appreciated.
jH
View Replies !
View Related
[Actionscript] Pre-filled Text That Dissapears When You Highlight
I wonder how you can get text in input textfields that dissappear when you click in them to write something. Something similar to what's on http://www.aortic.se
I understand how you get the text there with variables but not how you make it dissappear when you highlight them.
I've tried to find a tutorial on it but I can't find any. Please don't tell me to google it because I've tried that for several hours. So if someone please would be nice enough to tell me how to do it I would be soooo happy. Thanks.
View Replies !
View Related
Highlight Text / Text Background
This is currently sending my crazy!
I would love if anyone could help me find a way in which I can highlight text in flash.
The css property background-color isn't accepted by flash.
The text is also going to be dynamic so I can't just draw it in.
It has to support multi line as well, so simply getting the width of the text box is also a no.
If anyone could help me here it would be greatly appreciated, I am going loco over something so simple!
Cheers.
View Replies !
View Related
"Highlight" Text In A Text Field
I am trying to think of a good way to do this. I have a field that you can start to type someone's name into and it retrieves a list of names starting with your string. An example would be you type "A" and it returns a list of "Alex, Allen, Able", then if you type "l", it would then send the string "Al" and return only "Allen, Alex". That works fine. But what I'm wondering about, is there any way I could return the the rest of the string back to the text field, but still let people continue typing from where they left off. It would have to highlight the rest of the text so you could type over it. Getting back to my example, if you've typed "Al", it would return "Alex" to the text field, but is there a way you could keep typing and write over the "ex" so if you typed a second "l", the string would be "All" and it would then return the next result, which would be "Allen". I know features like that exist in programs like Lotus Notes, but is there any way to do it in Flash?
Thanks for any input!
-k
View Replies !
View Related
Highlight Bar
I'm trying to create a Flash-based emulation of an electronic device UI that I'm helping to develop. Here's what I have so far to give you a better idea of what I'm going for (very early in the process):
http://www.phreshdesign.com/mg/flashDevice.html
If you look at that link, you'll notice a "Highlight Bar" - the blue horizontal bar that will move up and down upon pressing the Up and Down arrow keys. I'm planning to have a lot of screens with text like this one and every time the highlight bar goes "over" the text (although in the document it's actually under the text layer), the text needs to change to white. Can someone give me an idea of how to do this?
Also, since there will be many instances of text that needs to change when the highlight bar is over it (on many other screens after this, similar to an Ipod), I'd prefer to have a "programmatic" solution to this - meaning I don't want to have to manually make each line of text a symbol and refer to each one of them, I'd rather have a function written along the lines of "If highlightBar is under Text, then Text.color = white" (not exactly actionscript, but you get the idea). Is that possible?
Any help would be greatly appreciated.
View Replies !
View Related
Highlight Box
Hello,
I'm trying to make a box in Flash that will highlight a portion of the screen and then disappear. I would like it to work the same way that highlight boxes work in Captivate. Is there a way to do this?
Thanks.
View Replies !
View Related
Highlight Box
Hello.
I have a flash movie where I want to have the ability to highlight text. I have a movie clip of a 50% yellow transparent box using the following code:
Code:
box.onMouseDown = function() {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = this._yscale=0;
this._visible = true;
this.onMouseMove = function() {
this._xscale = _root._xmouse-this._x;
this._yscale = _root._ymouse-this._y;
updateAfterEvent();
};
};
box.onMouseUp = function() {
delete this.onMouseMove;
this._visible = true;
}
}
This works great, but I need to be able to draw more than one highlight box, and I need these boxes to attach themselves to a specifc mc so that they move along with it. Hope this makes sense. Any help would be much appreciated.
View Replies !
View Related
Highlight Box
Hello. I'm trying to build a flash file that allows the user to highlight certain pages (documents), I then need that highlight box that was made to attach itself to that page (movieclip). I currently have a yellow box movieclip on the stage with the following code:
[as]
box._visible = false;
box.onMouseDown = function() {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = this._yscale=0;
this._visible = true;
this.onMouseMove = function() {
this._xscale = _root._xmouse-this._x;
this._yscale = _root._ymouse-this._y;
updateAfterEvent();
};
};
box.onMouseUp = function() {
delete this.onMouseMove;
this._visible = false;
};
[as]
This works great, but I need to be able to create multiple highlight boxes, and these boxes need to attach themselves to a movieclip. Any ideas?
View Replies !
View Related
Color Highlight
onClipEvent (load) {
_parent.colSetUp(this, "0xFFFF00");
}
This is for a color that a pen is writing. How would I write this so the color has a transparency to it? Like a highlighter.
I tried writing it as:
_parent.colSetUp(this, "0xFFFF00", _alpha=50);
But that didn't go over too well.
Thanks for the help.
Jo
View Replies !
View Related
Moveable HighLight
Hi,
I am simulating an interactive tv inferface and need to move a selection box round the screen, using flash buttons (up, down, left and right) - The same way the Tab selection works ( can move it round the screen using the cursor keys) but I want to do it with actionscript. I've been trying to figure out the best way to do it, but am getting nowhere fast.
Has anyone got any sugestion on how to do this.
Thanks
Kaan.
View Replies !
View Related
Moveable HighLight
Hi,
I am simulating an interactive tv inferface and need to move a selection box round the screen, using flash buttons (up, down, left and right) - The same way the Tab selection works ( can move it round the screen using the cursor keys) but I want to do it with actionscript. I've been trying to figure out the best way to do it, but am getting nowhere fast.
Has anyone got any sugestion on how to do this.
Thanks
Kaan.
View Replies !
View Related
Object Highlight
i am trying to accomplish a highlight like koves.net and 2A (previous site) have done to their navigation. But everytime I do it my gradient makes it look so cheesy. I hate it. Does anyone know how to make it look more professional?
another question: say you are using a mask, it is a square. you put a gradient to it and the outsides of the box are alphaed to 0%. is there any way to make the mask alpha?
cheers,
View Replies !
View Related
Simple Highlight Eh?
hi
is it possible in an MX dynamic text box to indicate text highlight - basically i am attempting to have text appear in typewriter style but i want the background behind the text to change colour like a highlight... i've tried
backgroundColor = true;
backgroundColor= 999999;
or something to this effect but it changes the colour of the whole text are Not just the actual lines of text - is this possible anyone
cheers
monkonfire
View Replies !
View Related
Button Highlight
Hello
I have a series of four buttons. Once pressed a text box fades in. What I am trying to do is once the button is released I want it to change the font colour of the text within the button, this is to show what button is selected. When I click on the other buttons I want the existing colour to fade back to normal.
Can you guys please help me.
View Replies !
View Related
Scrollpane Highlight?
Hi, I've got a prob, and i don't know why it actually is doing it. I used a scroll pane and uploaded a movieclip in it to beable to scroll it. It works fine. The working swf is at, They might take long to load cause i haven't yet given them a prelaoder.
http://www.y-lime.com/index.swf
when you click on the first image button, it loads.
As you can see it scrolls and everything is fine. I maked it so that the square doesn't show and the scroll bar, having onl the text and the small buttons which so to fit with my layout. I also masked it thinking it would solve the problem for the green highlight that shows up when u click on the area to scroll. When it loads it looks ok, but when u give it a first click a sort of green highligh showup around the actual aread of the box. Is there a way to remove that?
Thanks in advance!
View Replies !
View Related
Highlight Menu
Hi
I've got a tree menu and i want that the different points highlight after been clicked.
I've got this running by using the buttons as html coded text and that every button has 2 actions.
one says to set the font color to white and to underline it self
2nd says to set all other buttons to regular
for example: (i use set variabel)
aa = "Hallo";
ab = "Tag";
ac = "<font color ="#FFFFFF"><u>Bonjour</u></font>;(made with html code)
ad = "Moin";
this works fine but my problem now is that if i add another button i have to change the script of every button, up to day this means changing 30 scripts.
I wonder if there is no other way to to it. I've tried with
on (release){
ca = 3;
}
on (releaseOutside){
ca = 4;
}
This works but u have to click on the button and then drag outside and release an no one uses this.
So do u have a clue???
thanx
Gilo
View Replies !
View Related
Button Highlight
I have some buttons on screen. I want to give a highlight or "active" look to the button when it's picked. And the other buttons are in the normal state.
When a different button is clicked that button gets the highlight/active look and the others have the normal state.
Currently I am using a movieclip of the highlight/active state and use setProperty visible to true of the movieclip and position it over the button. And when a different button is clicked setProperty visible to false and setProperty visible to true for the other button's highlight/active movieclip.
Is there an easier way to do this? Like create a new state within the button itself?
I attached a simplified version of what I am doing. The actual application has 5 buttons.
View Replies !
View Related
Overall Highlight Color
I never use components, but I decided to on this one... I'm using the scrollpane and I want to change the overall color scheme instead of green.
I know that I can setStyle and change borderColor, buttonColor, etc etc....
But is there one global color variable that I can change???
So much for components being easy to work with... I liked the 1.0 ones better!
By the way if anyone knows of a list of all the properties etc.. please shoot me a link, documentation is HORRIBLE!
View Replies !
View Related
Highlight And Copy
I have a flash movie where after a few options are made, text is produced at the end. I know how to highlight the text in the text field,
I was just wondering if there is any way to copy the highlighted text and copy it to the clipboard. I am using Flash MX to create this flash movie.
Thanks in advance
View Replies !
View Related
|