Professional :: Remove The Underline On Button Links?
Feb 9, 2010how do i remove the underline on button links in flash??
View 14 Replieshow do i remove the underline on button links in flash??
View 14 RepliesI 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 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.
There 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?
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 created a button symbol, a new layer called actions. what the code is to link the button to "scene 2" "Fframe 3"? and start playing?
I was very familiar with frevious version of Flash, but now have a hard time figuring out the action library? Where can I find a great reference for action script commands?
i 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 Replieshere is the action script of one button that i wanna include a URL link so when a click on it would take me to www.page.com ...but i will also add the .fla file to make it easier..
on (rollOver)
{
if (_root.link != _parent.num)
[code]....
Is 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 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 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 want to put a link onto a *.fla file. I can see the "getURL" command (screenshot from my German Flash CS4),but unfortunately, I do not understand how and where I have to insert this command.
View 19 RepliesI'm building a site to showcase various engagement tools for the web. Most of what is involved is new to me. My biggest challenge is finding the right AS3 code to make buttons link to URLs. when I try to duplicate it and change the btn name, in order to make two, or three or four separate links to four unique buttons I get an error about trying to call the same function more than once. This is her code and as I said it works for one button link. Can it be made to work for multiple instances?
inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);function buttonClickHandler(event:MouseEvent):void { navigateToURL(new URLRequest("http://www.adobe.com")); trace("I'm clicked");}
Right now all of my links use the Properties text link feature, which continues to deliver target=blank function despite my having deleted the target and saved and republished way more than once.
[URL]
I have 6 buttons, for some reason only the first button(my_home) works
my_home.addEventListener(MouseEvent.CLICK, myBtnClicked1);
function myBtnClicked1(e:MouseEvent):void {var url:String = "http://www.weedwarriors.co.uk/";var request:URLRequest = new URLRequest(url);
[Code].....
Right now I have a static way that I set the url's to 5 buttons, here's a sample of what I am doing:
Object(root).grid_slider.links.twitter.addEventListener(MouseEvent.CLICK, fl_ClickToGoToTwitter);
Object(root).grid_slider.links.facebook.addEventListener(MouseEvent.CLICK, fl_ClickToGoToFacebook);
function fl_ClickToGoToFacebook(event:MouseEvent):void[code]......
I have everything working fine but I have been asked that the url's are loaded from a xml file instead of static. Not quite sure where to go from here..I've read how to read from xml but do I need to set the values in global variables?
we have a project that will be using a flash based 'flip book' to display approximately 3000 products.
The issue is that there needs to be a button placed on each product that will link to the main website.
With out publishing 3000 buttons with different actionscripted links, is there a more automated way to do this?
i have followed the complex button tutorial today to design a websites buttons..
I wanted each button to link to a seperate frame for each seperate page of the site.
The roll out effect is all in one movieclip, with the actions on frame one (below)
//stop(); this.onEnterFrame = function(){
[Code]....
but I have had no success, it works perfectly for URL's typically!
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.
So 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 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 Replieshow it was put together by making changes.
I have an .fla file where I'm trying to change some of the links. Say it currently goes to index-1.html and I want to change to aboutus.html.
I can't seem to locate where the actual link designation is .. from the documentation on Flash forums it should be in Actions, however I can't seem to find it.
i want to draw a map of a campus. then when you click on different buildings, the building pops up big (possibly with text alongside it)any links to a tutorial how to do this?
View 8 Repliesi have a bunch of diagrams that are exploded to show parts that we sell of athletic equipment. our company now has an online digital catalog that we want to put some flash into so when the user clicks on a part it will direct their browser to the webpage that they can order it from (hopefully in another window). i know there are plenty of ways to do this but i havent used flash in about a year and it was just one class and honestly i am a little fuzzy on what to do. i guess i would import the .ai files and make each part a button right? should i do these on different layers? some of the files are jpgs, so would i have to make an invisible button or something over the image?
View 6 Repliesusing the following action script on buttons to open links:URL...Trouble is they all just open new windows and not the link in the current window!
View 3 RepliesI'm relatively new and I've made a script on my banner for buttons to link internally to different pages on my webpage. The problem I'm having is every time I click on a link it directs me into a new window, it will redirect in the same window and new tabs wont keep poping up? The website is [URL] if you want to see the problem I'm having.
stop()
road.addEventListener(MouseEvent.ROLL_OVER,play1);
function play1(event:MouseEvent):void{ gotoAndStop("specroad");
[Code]....
I've tried a few things but I can't get anything to work. I shouldn't have any trouble fixing the rest of the script!
I have purchase this template http:[url].....html for a friend of mine and have changed everything they need and the last thing . changing the links in the navagation bar/Menu bar I have changed the links in Obj_36copy and it didn't work so I know I am surposed to do something else but can figure it out here is the fla file [url]...
View 1 RepliesI tried searching for an answer but did'nt have much luck. I decided to finally learn how to do a web page in Flash and everything is progressing except for text links. I'm importing a .psd file and I keep the text as editable, the page has 5 text links plus a text logo, the logo text link works when tested (returning to the home page) but the links to the other pages do nothing.
I have tried each one seperately, pointing to both the intended page as well as the home page with no luck, the only one that I can get to work is the logo text. I have also tried grouping the text for links seperate from static text in Photoshop. I'm sure it's something simple and I'm probably over thinking things but whatever the case I can't get it to work.