Skip to main content
August 21, 2012
Answered

scroll Pain - content shows outside frame

  • August 21, 2012
  • 1 reply
  • 638 views

I'm creating a zooming window using the scrollPane component with AS2.  It will contain a large diagram scaled to fit the scrollPane.  A resizing button will scale it back up to original size.  The point is to show the whole diagram and be able to zoom in and pan to read details.

The scrollPane content is a Library clip and I'm using loadMovie to dynamically load the image into that clip using a variable.

ScrollPane.contentPath="picHolder";

ScrollPane.content.loadMovie (imgFile);

Problem:  the content shows outside the frame. Look slike it's under the frame and scroll bars but bleeds outside the boundaries.

This topic has been closed for replies.
Correct answer kglad

if sp is the instance name of your scrollpane, use:

sp.contentPath = imgFile

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
August 22, 2012

if sp is the instance name of your scrollpane, use:

sp.contentPath = imgFile

August 22, 2012

that works. Thanks!

kglad
Community Expert
Community Expert
August 22, 2012

you're welcome.