This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > May 2006 > links not working in draggable?
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 |
links not working in draggable?
|
|
| epitomegirl99 2006-05-23, 3:42 am |
| does anybody know why links may not be working in a draggable?
in this file - when you click on the small images, they all bring up
draggables. Many of the draggables have multiple views of items (i.e. the
numbers 1,2,3,4 etc at the bottom of the draggable) and those are links that
should take you to other views. The links work when I test the .swf file on
it's own, but when i test it as a draggable in the other window the links stop
working? I have no idea why this might be happening - I even made sure to make
nice big hit areas for those numbers (which are buttons)
any advice would be greatly appreciated - thanks :)
<a target=_blank class=ftalternatingbarlinklarge
href="http://www.epitomegirl.com/design.swf
Carrie">http://www.epitomegirl.com/design.swf
Carrie</a>
| |
| tralfaz 2006-05-23, 3:42 am |
|
> any advice would be greatly appreciated - thanks :)
>
> <a target=_blank class=ftalternatingbarlinklarge
> href="http://www.epitomegirl.com/design.swf
It's the old 'button inside of a button' problem. One button object intercepts all the button events. If you need the box to be
draggable, make it a movieclip and use hitTest on it for startDrag. Then the button events of the buttons inside of it won't get
trapped.
tralfaz
// the picture box as a movieclip instead of a button with this code attached to it..
onClipEvent (mouseDown) {
if(hitTest(_root._xmouse,_root._ymouse))
{
startDrag (this, false);
}
}
onClipEvent (mouseUp) {
stopDrag();
}
| |
| epitomegirl99 2006-05-23, 6:37 pm |
| thank you so much - that was it! :)
Carrie
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|