This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > June 2005 > Link:hover on text field using CSS?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Link:hover on text field using CSS?
|
|
| paulpsd7 2005-06-17, 11:20 pm |
| I am putting together a lot of content into a Flash presentation. A good chunk
of this content will be scrolling columns of text containing a few inline
links. The inline links will contain actionscript commands to navigate around
the Flash presentation, rather than <a href> type links to open a new URL.
First of all, is it even possible to include actionscript commands attached to
small segments of text in a text field? The LINK field in the Property
Inspector seems to only want a URL, rather than actionscript. If not, how would
I achieve this?
Second, assuming I can have the links in my text columns triggering
actionscript, is it possible to apply CSS styles to get a hover behavior to
work? In looking through the online help files, I see that Flash supports a
limited range of CSS properties. I didn't see hover among them. Does anyone
have any experience doing this?
| |
| Laiverd.COM 2005-06-18, 7:26 am |
| 1. Check asfunction in the as dictionary
2. Not really possible. Dived into this at one point, but the only way to achieve something like a hover effect over a part of
dynamic text is to dynamically search and replace the text-to-have-hover with a movieclip to which one applies the hover effect. Not
that this can only be achieved voor Flash Player 7 which allow you to load linked movieclip into a textfield. An example (never
quite completely finished): http://home.hccnet.nl/john.mulder/f...eld_tooltip.zip
John
--
---------------------------------------------------------------------------------------
RESOURCES
http://groups.google.com/advanced_g...s_ugroup=*flash
---------------------------------------------------------------------------------------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
---------------------------------------------------------------------------------------
| |
| merlinvicki 2005-06-18, 7:18 pm |
| Hi Paul,
Hover properties are certainly possible in Flash MX04.
check out this sample:
http://www.merlinvicki.com/samples/textenhancements.zip
just add this in the .CSS file
a:hover
{
font-family: Arial,Helvetica,sans-serif;
font-size: 10px;
font-style: bold;
color: #3366CC;
display: inline;
}
| |
| Laiverd.COM 2005-06-18, 7:18 pm |
| Definitely true ;-) What I meant in my post is that (afaik) it is not possible to trigger an event using hover, such as showing a
tooltip. In other words afaik it is not possible to trigger asfunction from a hover.
John
--
---------------------------------------------------------------------------------------
RESOURCES
http://groups.google.com/advanced_g...s_ugroup=*flash
---------------------------------------------------------------------------------------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
---------------------------------------------------------------------------------------
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|