Pierinc.com A.S.
- Started
- Last post
- 9 Responses
- mrbee2828
Anyone know how the term rollovers were done in the body copy. I was trying to do this recently for dynamic textfields and it's impossible in F7 to catch a hover event or build a bullet proof clip placement with a events. Flash8 offers a bitmap option which you could use to catch color differences to place event clips. Anyone?
- enjine0
you mean the 'Continue Reading...' copy? and the full text that underlines on teh right column?
it's just css within flash. check out the StyleSheet Object. it supports hover just the same as css in any regular webpage.
- acescence0
maybe line metrics?
- mrbee28280
not the css but the definition pop ups. how are they catching the rollover or hover event in flash 8?
- acescence0
TextLineMetrics class.
get the width and height of each word.
add the widths (and heights) to find the position of a specific word.
use these coords to position whatever you'd like.
- chimchim0
On a slightly related note, this reminds me of the asFunction tag for text (allowing you to execute functions when clicking bits of text). I don't believe there was any way to capture mouse over just using asFunction? Anyone know... it would be nice to be flash player 7 compatible.
- mrbee28280
Well that's exactly where I was going with this. So I have a site with lots of terms and xml fed dictionary for them. The links SHOULD open on rollover just like Pier but in F7 without some massive buggy clip placement I can't do it. So my solutions are hardcoded clear clip with rollover events OR click term to open definition from XML hyper link.
- Hello-Sexy0
actually, it's pretty easy.
css to make the color / underline rollover
asfunction to call the tooltip
base the tooltip off the _xmouse and _ymouse...
- mrbee28280
I don't think you were reading the thread... we're discussing the "rollover" action here.... NOT the CLICK action. Hell yes click is easy.
- Hello-Sexy0
whoops.... did not read it correctly...