Dynamic text link hover color change.
I have some dynamic text in Flash and I have a link with the text. Is there a way I can change the hover color without CSS? Here is my code.
thanks.
data=EASTERN CANADIAN DISTRICT<br><a href='mailto:[email protected]'><font color="#51884B">Mike Linnen</font></a><br>905-430-0955<br>Cell: 905-409-7159
Disable the "Show border around text" option of your dynamic
text field.
Draw a rectangle with the color you want, & locate it
behind your dynamic text field.
Similar Messages
-
Dynamic text shifts when style changes
I have some dynamic text fields that are set up so that when
you rollover them (actually a button behind them), their formatting
changes. This is done with some basic actionscripting, setting up 2
different text format variables and attaching one or the other to
the text field when a button is rolled over. The only thing that
changes is color. When the text first appears all is well. But when
you rollover the text and the color changes, on certain browsers an
extra space can get inserted at the beginning of a new line, sort
of like the old bug where text wrapping messes up and moves a space
down to the beginning of a line. This happens on IE 6 and 7 and
Safari, not Firefox. The player is 9. THanks.Did not, I was happier with the browser's display than with
the embedded font version. May try it just to see if problem
remains. Seems like something I should be able to avoid without
having to embed though. -
All dynamic text links going to same link even though URLs differ
Hi,
I just made a flash news scroller where the news headlines are dynamic text and have different urls provided in the link section. But when I click on any of them, they all go to the first link only. Am I supposed to set something here to stop it from doing so?
Any help appreciated.Ok, I figured out why all the links are going to the same page. Well all the other links are under the first headline, which I am making transparent for the others to appear, but not removing from the stage. Hence even though the first headline is not visible, it is still the top link on the screen, causing everything to go there.
Any suggestions on how I can make it appear below the newly visible headline?? They are all arranged one below the other. -
Css link hover color not applied to last letter in safari
Im only seeing this in safari. Here is my site:
http://smartpeopletalkfast.co.uk/oo2/
If I click on the contact page its highlihgted as it should be. However if im not on the contact page and I hover over the contact link, the last bit of the 't' is not highlighted. How can I fix this?
Im assuming becuase its italic the last bit is outside of the div, and for some reason the hover color isnt shown. Ive tried applying both a:hover css aswell as li:hover a.
ThanksI'm seeing it in FF 3.6.13 as well on the PC.
Validate your page either throuth DW or the W3C. For one thing, you've got div tags inside li tags. Don't split up your styling . . . add the italic styling to the main styline for the li tag.
If fixing the coding doesn't work, try adding some padding to the right of that container -- a couple of pixels ought to do it. -
Numeric Control - Text and Background Color changes when operating inc/dec arrows
Hi,
I'm developing an application that has a panel with black background and green or red numbers. I've added numeric controls and configured the text color and text background color attributes accordinglingy. I set the numeric control to hot or validate control mode and show the inc/dec arrows, since I want to be able to incr/decr the numbers.
The problem is that when I run the application and I hit the inc/dec arrows, then the colors inside the numeric control frame become inverted: the black background becomes white and the green number becomes cyan. I've created a callback function assosicated with the numeric control and tried forcing the text and background color, in the EVENT_VAL_CHANGED section, using the SetCtrlAttrribute() function, but to no avail. Also added ProcessDrawEvents didn't help.
When I mouse click again outside the numeric control, then it reverts back to its original colors (green text, black background).
Any suggestions as to how I can fix this ?
I want it to keep its original colors at all times, even when I'm clicking the incr/decr arrows...
Kind regards,
pgriep
Solved!
Go to Solution.Ok, now I see what's happening.
The effect you are seeing is a resul of standard numeric control behaviour combined with the black bcakground: when you use arrows to increment/decrement a numeric control its value will be automatically highlighted; on the default background you'll see the white area and figures highlighted in black (white numbers on balck background). If you set the background to black the system will automatically change the colors used to highlight the text, and that's what you're seeing.
By the way, this does not happens if you use up and down keys on the keyboard: text is not highlighted so colors are not changing.
Additionally, this is not only valid for numerics: see the behaviour of the string controls on the bottom of your panel when you tab up to them. This effect does not happen on controls set as indicator like the big clock in the upper part of the panel.
The only way I can see to overcome this behaviour is to hide control built-in arrows and create your own up and down buttons with which you can manipulate the numeric control. I am attaching a modified version of your project with buttons on the left numeric; sorry for the poor aesthetic: I have used some arrow icons I had on my disk, you may want to create your own arrows with the colors and shape you prefer.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Attachments:
ModifiedApplication.zip 9 KB -
Can dynamic text links (XML) pass arguements to movie clips?
I have a dynamic text field that i'm pulling a XML file into,
but I need the URL links within the XML to control a movie clip.
I've read that you can pass an arguement inside flash from within
the XML doc but i'm not positive how it would be done.
Any love on this one?Hmm, this leaves a couple questions... Where would I put the
script/function, inside the <a href> tag? That could get out
of hand... like in-line CSS styles. And I have a URL node within
XML set-up so I don't know if this solution would work. -
Can anyone help with this? I'm trying to get text on a screen
to link to documents (that will be on a CD, currently on my hard
drive) such as pdf, txt etc. Using Flash 9.
Thanks.Thanks again for your reply. Since my last posting, I have
gotten mostly everything figured out except the main issue, which
is creating a link to documents from text. In the following code I
was able to load dynamic text from an external txt file and I
inserted an html link in the txt file but I don't want to open a
browser link, but rather a file on CD or hard drive:
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest = new URLRequest("test.txt");
function textLoaded(event:Event):void
getStart_txt.htmlText = textLoader.data;
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
So everything looks good, except how do I get the html link
in the text file to open a doc instead of a url? Or maybe something
in your post will work.
Regarding buttons and code, this is from a Flash website:
"So you just started AS3.0 full of excitement and ready for
some coding challenges, you start coding your first button and
suddenly, horror, you end up with "WARNING: Actions on button or
MovieClip instances are not supported in ActionScript 3.0. All
scripts on object instances will be ignored." or "1119: Access of
possibly undefined property onPress through a reference with static
type flash.display:SimpleButton.", indeed the good old AS2.0 event
system is not working anymore in AS3.0: onClipEvent, onPress,
onRelease, onLoad, onMouseDown ..etc, have become things of the
past!!!
What happened? well basically the whole event handling system
has been revamped in Actionscript 3.0 and we are going to have a
quick look at it."
When I select a button in Flash 9, the error message I get is
"Current selection cannot have actions applied to it."
Thanks. -
Download BLOB - dynamic text link
Hi apex users,
I have a report with a standard blob download columns, using the following SQL:
select a, b, filename, minetype, dbms_lob.getlength(blob_column) report_length
from table
*where [...]*
and the following format is applied to the "report_length" column:
DOWNLOAD:BLOB_TABLE:BLOB_COLUMNS:BLOB_ID::MIMETYPE:FILENAME:::inline:Download
It's work fine, but i'd like te personalized the "Download" link, and make it change dynamically:
I've read in the documentation that the link text supports substitutions strings, and try to test with:
DOWNLOAD:BLOB_TABLE:BLOB_COLUMN:BLOB_ID::MIMETYPE:FILENAME:::inline:#OWNER#
and it's work fine.
But what I want is to diplay the a column of my sql query:
DOWNLOAD:BLOB_TABLE:BLOB_COLUMN:BLOB_ID::MIMETYPE:FILENAME:::inline:#A#
DOWNLOAD:BLOB_TABLE:BLOB_COLUMN:BLOB_ID::MIMETYPE:FILENAME:::inline:#COL01#
But doesn't work. Am i missing something?
AkAHi,
Thanks KGLAD, I will give it a try. Much appreciated. This
XML stuff via Flash is a difficult learning curve for me. ;)
Kind Regards,
Boxing Boom -
I've created a dynamic (scrolling) text field in Flash MX
2004 Pro. The text contains links to webpages. The links work in
the published Flash SWF but not when I place the SWF in Director.
Please help?
LarsYou need to catch the getURL() message in Director and have
it open your
browser to the link. Try attaching the following as a
behavior to the
Flash sprite:
on getURL me, aLink
gotoNetPage(aLink)
-- better to use Buddy API:
-- OK = baOpenURL(aLink)
end -
Accordion Hover Color Change Not Working
Hi,
http://www.seminolewellnessfeed.com/new_sem_well/WellnessHorseFeeds.html
http://www.seminolewellnessfeed.com/SpryAssets/SpryAccordion.css
I believe I've got the CSS right for my hover over the panel tab to turn to 999, but it's not - anybody gotta clue?
Thanks!!! tttHave a look at your mark-up
<div class="AccordionPanelTab style3">
<h4><strong> Seminole Wellness® Safe & Lite Pellet</strong></h4>
</div>
If you want to style the text for the tab do so using the following rules
.AccordionPanelTab {
font-size: 1.1em;
text-align: center;
font-weight: bold;
and change your mark-up to
<div class="AccordionPanelTab">Seminole Wellness® Safe & Lite Pellet</div>
Also take note of what SnakEyez02 said.
I hope this helps.
Ben -
Visited link/ no color change
Hi everyone,
I just don't understand why it doesnt work. I want to have a
link black, that when it have been visited will become white.
Here are my codes. Why it is always white? thanks I really
need your help! P
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body link="#000000" vlink="#FFFFFF">
<a href="https://www.artic.edu/"
target="_blank">HELLO</a>
</body>
</html>Close your browser completely. Then reopen it.
You should be using CSS for these pseudo-class assignments
anyhow....
Pseudo-classes and container styles are what you need - here
are some
tutorials.
http://www.mako4css.com
http://www.thepattysite.com/linkstyles1.cfm
http://www.projectseven.com/tutorials/pseudoclasses/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Philomene" <[email protected]> wrote in
message
news:elpmd3$mgp$[email protected]..
> Hi everyone,
> I just don't understand why it doesnt work. I want to
have a link black,
> that
> when it have been visited will become white.
> Here are my codes. Why it is always white? thanks I
really need your help!
> P
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
> </head>
>
> <body link="#000000" vlink="#FFFFFF">
> <a href="https://www.artic.edu/"
target="_blank">HELLO</a>
> </body>
> </html>
> -
Ok, I'm a real novice when it comes to code so I'm hoping
someone out there can help me.
I have a band site that I has tour dates loading via xml into
the flash site. The tour dates can be clicked on to take you to the
Venue's website. The problem, and I'm sure it's insanely simple is,
I would like the link to open a new browser window (target =
"blank"), Where in my code can I put this? I've gotten it this far
and I'm going nuts now...
Thanks in advance,
Mike.
See attached code://line 25 in your script:
window += "<a href=\"" + myarray
.link + "\">" + myarray.header + "</a><br>";
//change to
window += "<a href=\"" + myarray
.link + "\" target=\"_blank\">" + myarray.header +
"</a><br>"; -
I have a dynamic text box call "color.txt" at the root and
two Movie clip buttons one called Red and one called Yellow.
When I press the button the name of the button is passed to
the text box. When I press the second button the
name is not replaced. Do I have to create a seperate function
to do this or is there another way?
Thanks,
_root.red.onPress = function(){
_root.colorTxt.text = "Red";
_root.yellow.onPress = function(){
_root.colorTxt.text = "Yellow";
}I got it working like this.
var colors:Array = ["red", "yellow"];
var currentColor:Number;
function changeButton(newColor:Number) {
currentColor = newColor;
_root.colorTxt.text = updateText();
_root.red.onPress = function(){
changeButton(0);
_root.yellow.onPress = function(){
changeButton(1);
function updateText():String {
var newText:String;
newText = colors[currentColor];
return newText;
} -
Change text "link" color only in Spry Tab content area
I need to have multiple text link colors in my site for light
and dark background colors. The only regions in my site that have a
white background are in the Spry Tab Panel content area. I can't
figure out how to change the text color for text links in the spry
content only. I tried to add a:link ..etc... to the style sheet,
but it did not effect anything
(I also need to clean my style sheet (s). But that comes
next.
Here
is a Link to a Sample Page in my site
nullHere is the SpryTabbedPanels style sheet in my site. I can't
seem to figure out the changes I need to make to effect the content
area.
I tried to add the following (see .TabbedPanelsContentGroup
below)
a: link {
color: #0099CC;
text-decoration: none
a:active {
color: #99CC33;
text-decoration: none
a:visited {
color: #0099CC;
text-decoration: none
a:hover {
color: #99CC33;
text-decoration: underline
@charset "UTF-8";
/* SpryTabbedPanels.css - version 0.4 - Spry Pre-Release 1.6
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights
reserved. */
/* Horizontal Tabbed Panels
* The default style for a TabbedPanels widget places all tab
buttons
* (left aligned) above the content panel.
/* This is the selector for the main TabbedPanels container.
For our
* default style, this container does not contribute anything
visually,
* but it is floated left to make sure that any floating or
clearing done
* with any of its child elements are contained completely
within the
* TabbedPanels container, to minimize any impact or
undesireable
* interaction with other floated elements on the page that
may be used
* for layout.
* If you want to constrain the width of the TabbedPanels
widget, set a
* width on the TabbedPanels container. By default, the
TabbedPanels widget
* expands horizontally to fill up available space.
* The name of the class ("TabbedPanels") used in this
selector is not
* necessary to make the widget function. You can use any
class name you
* want to style the TabbedPanels container.
.TabbedPanels {
margin: 0px;
float: right;
clear: none;
width: 82%; /* IE Hack to force proper layout when preceded
by a paragraph. (hasLayout Bug)*/
padding-top: 0px;
padding-right: 0px;
padding-bottom: 2px;
padding-left: 0px;
/* This is the selector for the TabGroup. The TabGroup
container houses
* all of the tab buttons for each tabbed panel in the
widget. This container
* does not contribute anything visually to the look of the
widget for our
* default style.
* The name of the class ("TabbedPanelsTabGroup") used in
this selector is not
* necessary to make the widget function. You can use any
class name you
* want to style the TabGroup container.
.TabbedPanelsTabGroup {
margin: 0px;
padding: 0px;
/* This is the selector for the TabbedPanelsTab. This
container houses
* the title for the panel. This is also the tab "button"
that the user clicks
* on to activate the corresponding content panel so that it
appears on top
* of the other tabbed panels contained in the widget.
* For our default style, each tab is positioned relatively 1
pixel down from
* where it wold normally render. This allows each tab to
overlap the content
* panel that renders below it. Each tab is rendered with a 1
pixel bottom
* border that has a color that matches the top border of the
current content
* panel. This gives the appearance that the tab is being
drawn behind the
* content panel.
* The name of the class ("TabbedPanelsTab") used in this
selector is not
* necessary to make the widget function. You can use any
class name you want
* to style this tab container.
.TabbedPanelsTab {
position: relative;
top: 1px;
float: left;
padding: 4px 10px;
margin: 0px 1px 0px 0px;
background-color: #CCCC99;
list-style: none;
border-left: solid 1px #CCC;
border-bottom: solid 1px #999;
border-top: solid 1px #999;
border-right: solid 1px #999;
-moz-user-select: none;
-khtml-user-select: none;
cursor: pointer;
font-family: sans-serif;
font-size: 12px;
font-weight: bold;
color: #000000;
/* This selector is an example of how to change the appearnce
of a tab button
* container as the mouse enters it. The class
"TabbedPanelsTabHover" is
* programatically added and removed from the tab element as
the mouse enters
* and exits the container.
.TabbedPanelsTabHover {
background-color: #99CC33;
color: #000000;
/* This selector is an example of how to change the
appearance of a tab button
* container after the user has clicked on it to activate a
content panel.
* The class "TabbedPanelsTabSelected" is programatically
added and removed
* from the tab element as the user clicks on the tab button
containers in
* the widget.
* As mentioned above, for our default style, tab buttons are
positioned
* 1 pixel down from where it would normally render. When the
tab button is
* selected, we change its bottom border to match the
background color of the
* content panel so that it looks like the tab is part of the
content panel.
.TabbedPanelsTabSelected {
background-color: #FFFFFF;
border-bottom: 1px solid #EEE;
color: #000000;
/* This selector is an example of how to make a link inside
of a tab button
* look like normal text. Users may want to use links inside
of a tab button
* so that when it gets focus, the text *inside* the tab
button gets a focus
* ring around it, instead of the focus ring around the
entire tab.
.TabbedPanelsTab a {
color: black;
text-decoration: none;
/* This is the selector for the ContentGroup. The
ContentGroup container houses
* all of the content panels for each tabbed panel in the
widget. For our
* default style, this container provides the background
color and borders that
* surround the content.
* The name of the class ("TabbedPanelsContentGroup") used in
this selector is
* not necessary to make the widget function. You can use any
class name you
* want to style the ContentGroup container.
.TabbedPanelsContentGroup {
clear: both;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
border-top: solid 1px #999;
border-right: solid 1px #999;
background-color: #FFFFFF;
color: #000000;
a: link {
color: #0099CC;
text-decoration: none
a:active {
color: #99CC33;
text-decoration: none
a:visited {
color: #0099CC;
text-decoration: none
a:hover {
color: #99CC33;
text-decoration: underline
/* This is the selector for the Content panel. The Content
panel holds the
* content for a single tabbed panel. For our default style,
this container
* provides some padding, so that the content is not pushed
up against the
* widget borders.
* The name of the class ("TabbedPanelsContent") used in this
selector is
* not necessary to make the widget function. You can use any
class name you
* want to style the Content container.
.TabbedPanelsContent {
padding: 4px;
/* This selector is an example of how to change the appearnce
of the currently
* active container panel. The class
"TabbedPanelsContentVisible" is
* programatically added and removed from the content element
as the panel
* is activated/deactivated.
.TabbedPanelsContentVisible {
/* Vertical Tabbed Panels
* The following rules override some of the default rules
above so that the
* TabbedPanels widget renders with its tab buttons along the
left side of
* the currently active content panel.
* With the rules defined below, the only change that will
have to be made
* to switch a horizontal tabbed panels widget to a vertical
tabbed panels
* widget, is to use the "VTabbedPanels" class on the
top-level widget
* container element, instead of "TabbedPanels".
/* This selector floats the TabGroup so that the tab buttons
it contains
* render to the left of the active content panel. A border
is drawn around
* the group container to make it look like a list container.
.VTabbedPanels .TabbedPanelsTabGroup {
float: left;
width: 10em;
height: 20em;
background-color: #CCCC99;
position: relative;
border-top: solid 1px #999;
border-right: solid 1px #999;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
/* This selector disables the float property that is placed
on each tab button
* by the default TabbedPanelsTab selector rule above. It
also draws a bottom
* border for the tab. The tab button will get its left and
right border from
* the TabGroup, and its top border from the TabGroup or tab
button above it.
.VTabbedPanels .TabbedPanelsTab {
float: none;
margin: 0px;
border-top: none;
border-left: none;
border-right: none;
/* This selector disables the float property that is placed
on each tab button
* by the default TabbedPanelsTab selector rule above. It
also draws a bottom
* border for the tab. The tab button will get its left and
right border from
* the TabGroup, and its top border from the TabGroup or tab
button above it.
.VTabbedPanels .TabbedPanelsTabSelected {
background-color: #CCCC99;
border-bottom: solid 1px #999;
/* This selector floats the content panels for the widget so
that they
* render to the right of the tabbed buttons.
.VTabbedPanels .TabbedPanelsContentGroup {
clear: none;
float: left;
padding: 0px;
width: 30em;
height: 20em; -
Dynamic Text and color changes......
In some cheap website creating software I have you can turn
text into rich text and change the color of individual words inside
the same text box full of text. Is there anyway to do that in flash
CS3?Thanks clbeech I actually found an easy way to do it. For
your dynamic text box you can click the "html" box in the
properties window for that text box. (Its a little square box with
this <> inside it and its just to the right of the singleline
and multiline box drop down.) You can then select the text you want
to edit inside the text box and change its font/size/color as well
as turn it into a dynamic link and it will do so without affecting
the rest of the text in your text box.
Maybe you are looking for
-
HP LaserJet Pro MFP M127fw installer stopped working
Have dificulty installing HP LaserJet Pro MFP M127fw drivers on hp 32bit laptop with windows 7 Build in printer software stops halfway Downloaded software stops halfway Standard windows 7 printer driver works fine and can print with it, but has no s
-
Error message when trying to create realm in OAS
I have deployed my app to OAS 10.1.3 from JDEV 10.1.3.3. I am trying to create a realm so I can set up roles and users but when I hit apply I get the following error message: An error has occurred. Error invoking method: addRealm on MBean: oc4j:j2eeT
-
Inserting exif in a custom info panel
how can i add exif details into a brand new custom info panel for cs4. i am trying to create a single panel which will consolidate information from several "default" panels into a single custom panel. morgan
-
Connection ofHP ENVY 4500 printer to Dell's laptop 3531
Hi! How can I connect HPENVY4500 printer to Dell's Laptop 3531 i fi have no CD room in my Laptop to connect it
-
Unable to create Import Declaration Prior to GR in GTS 10.1
Hello Experts need your help Unable to create Import Declaration Prior to GR in GTS 10.1 All Plug-In settings are in place All configurations in GTS are in place Till yesterday I was facing the issue of IBD not getting transferred to GTS. I was getti