ActionScript 2.0 :: [F8] : Underline Text On Rollover?
Jan 8, 2009Is there a way to have an underline appear when you rollover text links in a sentence?Wondering if there is a way to do this without having an external CSS file.
View 6 RepliesIs there a way to have an underline appear when you rollover text links in a sentence?Wondering if there is a way to do this without having an external CSS file.
View 6 RepliesI used to have a little text panel (that sat with the color, swatches, and align panels) that I was able to open up and edit text size, color, underline, etc with. It had a much better text editing ability then the properties panel, seeing as the properties panel does not even bother to allow me to underline text or to highlight and edit a single word in a whole text box. Now I don't have it, I can't find the damn thing anywhere, and I want it back. How can I get it?
View 1 Repliesi am working on flash menu. in this menu i make a 4 tabs.. in each tabs i have 2 text.. in this text i have to give a link on google.com. and i also have to add a underline when my mouse over the text.
View 1 RepliesThere doesn't seem to be any clearcut instructions on how to underline text in Flash. I did a search and there seems to be many solutions by adding code, etc. I tried using the Line Tool to underline some text and it shows up fine on the stage but when I preview it, the line does not show up.
how to underline text for someone new to Flash?
How do I underline dynamic text in Actionscript 2.0?
I tried wrapping the text with <u> and </u> but it didn't work, so I guess that's just for Actionscript 3.0.
I have created a RSS feed viewer, parsing the RSS feed with actionscript 3.0 and viewed on the stage in dynamic text boxes. The text in these dynamic boxes is scripted to link to web addresses contained in the RSS feeds in the same node as the text being displayed. So far so good. Now I need the text in these boxes to act as if they were HTML links and show an underline and color change when rolled over and clicked on.
View 3 RepliesSo if I want to imitate a link in as3, when I set
myFormat.underline = true;
the underline is directly underneath my text. Is there any way I can set the spacing of that underland?
I have some text in a Flex 3 application defined as follows
<mx:Text id="textbutton"
text="Link Text"
click="doSomething()"
[Code]....
It does not seem to work however as the text does not underline when I mouse over it.
Is there a way to do this purely through CSS or do I need to programmatically capture the mouse events and set the styles accordingly (seems like overkill)?
I use the setStyle("textDecoration", "underline"); for showing an underline on text hover. This works fine but the underline is touching the text itself. Is it possible to put some spacing between text and the underline?
Update: 02/072012 I'm using Flex SDK 3.5 so I cant use the spark solution for now. Im using Label component and setting the textfield's style.
I am very new to flash, but definitely not new to programming. Having a little trouble getting started, guess there is a steep learning curve... I want to make a simple rectangle with text in it, and on mouse over the text should be underlined.
I made a rectangle. I right clicked it and made it a symbol (button). I gave the button instance name "butt". I double clicked the button and added text. I made the text dynamic text and gave it the instance name "buttText". Then I got out of the symbol editor and went back to the main scene. In my first keyframe, I added this [code]...
I am trying to something very simple but I can't find an option to do that. I have a button that updates the ElementFormat, it can take care of bold and italic but the problem is underline. I can't find an option to set it as "underlined" or "not underlined".
View 2 RepliesI have a text box that will be updated by my client. I want them to be able to include links in their text, but I really don't want to require my "not-so-computer-savy" client to have to remember to type this out everytime they need to add a link[code]...
View 2 RepliesI am trying to something very simple but I can't find an option to do that. I have a button that updates the ElementFormat, it can take care of bold and italic but the problem is underline. I can't find an option to set it as "underlined" or "not underlined".
View 0 RepliesI have made a simple button using static text. On the over state I have changed the colour of the text and in the properties inspector typed in the email commanAnyway the text becomes underlined and when I test the movie and mouseover the text jumps up a little and is not smooth. Is there anyway to get rid of this underline. VERY ANNOYING.
View 2 RepliesUnderlined Text On (rollOver) Is there an action script to do on (rollover) underline text? It would be on a button that would also, on (release) gotoAndPlay a frame. I know you can have a movie with AS like this:
[Code]....
But when I add the on (release) to the movie it doesnt advance the timeline on (release). And when I change the file to a button instead of a movie clip it doesnt do the underline on (rollOver).
I have some htmlText with a stylesheet applied. Have set text-decoration: underline to the links but there is no space between the text and the underline--the underline is stuck right on to the bottom of the characters. Makes reading the underlined text very hard. Any trick to making this render properly or are we just stuck with crappy underlines in Flash?
View 3 RepliesI have a button with a text in it called Test1.
I want to change the text of the button in Test2 on RollOver over this button which instance name is btn1.
Initially the color of text of button is black. I also want on rollover to change it to white.
[Code]...
i have asked this question before and it was closed because i was unable to provide the language it was written in. currently i am looking at these AS3 codes and the variables are prefixed with _ , may i know why? is it because of a convention, if so , why put a _? why do you even need to put a _?
/**
* Enemy AI - Random movement
* ---------------------
[code]....
how do i remove the underline on button links in flash??
View 14 RepliesI have just a simple code
import fl.text.TLFTextField;
var tlf:TLFTextField = new TLFTextField();
tlf.x = 20;
tlf.y = 20;
tlf.width = 400;[code]....
and want the link underline to be removed and in best case format the line.
Its an mx:Text object. (The Text object is actually being used as a mask so don't know if that's the problem.) If underline is set with the <u> tag in Text.htmlText, or Text.textField.setTextFormat, the underline thickness is always just one pixel which is not acceptable. (There are other problems with <u> so I'm limited to using setTextFormat currently.)
Can the thickness of an underline be set through CSS? (textField.styleSheet, etc.)
I may have another problem as I already use setTextFormat extensively, and the documentation says you can't use textField.setTextFormat if you use textField.setStyleSheet.
I primarily need the underline to simulate correctly the look for an anchor tag.
Basically I discovered its no problem at all to draw lines or shapes or whatever directly onto an mx:Text object using its graphics property (Text.graphics.lineTo, etc.). If just displaying that text, then any such drawn lines are displayed as well. However, if that Text object is used as a mask, then any drawn lines on that text object are merely ignored when the mask is rendered. And its hard for me to see the reason behind this, if anyone else is able to. I mean you're designating the Text object itself as the mask. It seems like any visual change to that text object should be part of the mask.
View 1 RepliesI am creating a photography website, and I wanted to have captions below my photographs appear on the rollover of an info button, and disappear when its off. How do I do that? Also, I used an image array to load the images, and there are 18 images in the gallery, when there is a new image the caption has to change....
View 7 RepliesI am new to flash. I have had this flash header up on my companies website for live for over a year now[url]...
I want to be able to change the text for the different menu options. (ie. swap About Us with Products).
I am fairly computer literate, yet having a hell of time trying to figure it out in the flash editor. All of the button just say Home and they seem to be drawing from some root, but cannot figure out where that is or how to edit.
If I have static text and I have converted one line within the text to an active email link...can I indicate a subject line also in the Properties, under Options --> Link?
Like: mailto:emailme@emailme.com?subject=My Subject Line Here
Can this be done in that panel? If not, how do I do that?
Also, how can I change this email line to rollover to a different text color on hover, without separating it out as a button graphic?
This is killing me - I have looked everywhere and cannot find a truly actionscript solution to creating a hyperlink in text and to have the color of the text change on rollover. I am doing the following
ActionScript Code:
menu1TXT.htmlText = '<a href="event:featured">featured</a><br/>'
I am not really excited about doing css solutions so I was hoping for a different solution. In fact a better solution then htmlText would be even better. I really like the power of the "addEventListener".
I watched all 3 Carousel tutorials but can not figure out how to use an image instead of dynamic text for the rollover bubble that appears above each icon.
View 3 RepliesIs there an action script to do on (rollover) underline text? I know you could make two instances of the text one with the line and one without and then have them switch on (rollOver) but is there an AS for it?
View 11 RepliesOk I have a bunch of buttons that represent a different restaurant. When I roll over the button I am the name of the restaurant to appear in a dynamic text field. Now I can get this to work, but I feel that I am doing this the long way and that there should be a more efficient way of doing it. Is there a way of setting up an var object that would contain the names and when the button is rolled over , it would pull that name from that object and place it into the text field? Here a sample of the code that I am using:
function offName(event:MouseEvent):void
{
MovieClip(root).names_mc.gotoAndStop(1);
}
[Code].....
I have a dynamic text box that follow the mouse, giving information on rollover.
Code:
on (press, release, rollOver, dragOver) {
_root.mouse.info = "Coins per second: "+_root.cps1+newline+"Coins collected: "+_root.coins1;
}
_root.cps1 changes very quickly (+3 per second), the text box only re-updates (changes the value) everytime I roll in / out, how can I make it constantly update.