A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Links not working in scrollpane

  1. #1
    Member
    Join Date
    Sep 2004
    Location
    New York
    Posts
    35

    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
    Dennis Borruso

    www.penguinfrog.com

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    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;
    }

  3. #3
    Member
    Join Date
    Sep 2004
    Location
    New York
    Posts
    35
    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.
    Dennis Borruso

    www.penguinfrog.com

  4. #4
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Quote 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

  5. #5
    Member
    Join Date
    Sep 2004
    Location
    New York
    Posts
    35
    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.
    Dennis Borruso

    www.penguinfrog.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center