| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > actionscript - onrollover causing movieclips to act like buttons |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
knocking heads
Join Date: Jul 2003
Location: London, UK
Posts: 1,914
|
actionscript - onrollover causing movieclips to act like buttons
I need to have an onrollover/onrollout function on a movieclip. Unfortunately, adding these functions causes the movieclip to act like a button. This means that I can't click any of the links contained within the movie clip because the onrollover creates a "force field" over the top of the movie clip. Is there a way to disable this "feature"? [edit] You can see the problem here (mouse over indonesia, and then look at the popup, the links are noticing the hover status for the CSS but i cant click on them) [/edit] Last edited by stealthcow : 05-04-2007 at 07:15. |
|
|
|
|
|
#7 (permalink) |
|
+
Join Date: May 2005
Location: Tropical Networks
Posts: 1,584
|
wow, your flash must be a hell. inside the movie clip, below al contained elements, place a transparent button. yourClip.transparentButton.onRollover = function(){...}; yourClip.InsideItemButton.onRelease = function(){...}; no probl. Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
|
|
|
|
#8 (permalink) |
|
Read between da lines!
|
Mate use the onClipEvent (rollover) {} function. You can attach this to movieclips and get them to act like buttons. Then put your parameters within the wavey brackets. Gets round the transparent button lark (even though that works too). I've done it on a client site for my 9 - 5 job. Let me know if you want to see an example. Better yet, Actionscript.org Macromedia Flash Resources and Tutorials. Check it out. |
|
|
|
#9 (permalink) |
|
+
Join Date: May 2005
Location: Tropical Networks
Posts: 1,584
|
using clip events is just totally wrong. (just like table coding ;-)) but do what you please, both will work. btw : actionscript.org is one of the best online resources for crap codes Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
|
|
|
|
#10 (permalink) | |
|
Read between da lines!
|
Quote:
Not if you create them as function then, and refer to it generically. What source would you reccommend JG? |
|
|
|
|
#11 (permalink) |
|
+
Join Date: May 2005
Location: Tropical Networks
Posts: 1,584
|
generic function is also a nonsense. I would recommend to code by hand every single line. people who share share their crap. maybe I would not trash everything on layer51. I've been there once or twice, nothing usefull as is but some good ideas. Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
|
|
|
|
#13 (permalink) |
|
knocking heads
Join Date: Jul 2003
Location: London, UK
Posts: 1,914
|
johngood, that wont work, if i put a transparent button behind the html input area then as soon as i mouseover the input area i'm mousing out of the transparent button, if i put the button on top, then i wont be able to click the text stupid fucking flash |
|
|
|
#14 (permalink) |
|
knocking heads
Join Date: Jul 2003
Location: London, UK
Posts: 1,914
|
source file
you can download the source file from http://www.kdwebserver.co.uk/~serica...rc/fla/map.fla if that helps! |
|
|
|
#17 (permalink) | |
|
+
Join Date: May 2005
Location: Tropical Networks
Posts: 1,584
|
Quote:
you have to call the event for the bottom element when the upper element is rollovered stupid fucking you ! Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
|
|
|
|
|
#19 (permalink) |
|
+
Join Date: May 2005
Location: Tropical Networks
Posts: 1,584
|
it's possible, but it's a pain. wow, I'm looking at your fla. looking like the whole thing is to move to trash... give me a minute. Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
|
|
|
|
#20 (permalink) |
|
+
Join Date: May 2005
Location: Tropical Networks
Posts: 1,584
|
#1 why dont you put your texts in movieclips, with a getURL when it's released ? #2 don't use on(rollover), use instead : yourLevel.yourMovieClip.onRollover = function(){} you'll have a better control. #3 dont use the var for the text. use instead : yourLevel.yourTextField.text = yourText; (edit : obviously htmlText if you specified html in the field...) Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
|
|
![]() |