Click to See Complete Forum and Search --> : Links not working in scrollpane
dborruso
08-24-2005, 07:17 PM
Hi
I have a scroll pane box in my page and in the scrollpane is an .swf that has links on it. When i open the page and click the links on the scrollpane .swf they dont work. They work in the .swf before it iis in the scrollpane.
Does anyone know if there is a way to get this to work?
Thanks
w.brants
08-25-2005, 12:12 PM
The scrollpane was designed in a way that clicking on its content allows you to drag that content. This also results in the fact that your links won't work. The only solution is to disable some things. There's no easy way to do this. You'll need some actionscript.
If your scrollpane is named scrollpane1, add the following code to the frame it first appears inscrollpane1.onEnterFrame = function(){
delete this.pane.content.onPress;
delete this.pane.content.onRelease;
delete this.pane.content.onReleaseOutside;
}
dborruso
08-25-2005, 01:36 PM
wow, thanks, that did the trick.
I wish I knew some action script so I could do things like this on my own. I really appreciate the help. I have a book on action script but it didnt say anything about scrollpanes. I'm not sure how this works, but it will come in very handy for me.
Thanks a lot.
w.brants
08-25-2005, 02:08 PM
I have a book on action script but it didnt say anything about scrollpanes.
The KoolMoves components are specific for KoolMoves so you won't find anything about them in a Flash MX book. Since I'm the one who coded the scrollpane I know it's internal structure otherwise you wouldn't know how to disable the drag functionality without decompiling it. But I'm glad it works for you :)
dborruso
08-25-2005, 03:42 PM
Oh ok
I really like the scrollpane component. I'm glad you made it. A cool feature in it would be able to have just a vertical scroll bar or just a horizontal one. Just a suggestion. The extra bar doesnt bother me too much. I am just glad to be able to use it.
Thanks again.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.