-
Links not working in scrollpane
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
-
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 in
Code:
scrollpane1.onEnterFrame = function(){
delete this.pane.content.onPress;
delete this.pane.content.onRelease;
delete this.pane.content.onReleaseOutside;
}
-
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.
-
Originally Posted by dborruso
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
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|