ScrollPane External Control from Buttons in Flash 8

Posted on 2006-06-05
Last Modified: 2011-09-20
I give up before I pull all my hair out.......I am simply trying to load a large movieclip into a scrollpane so I can scroll the movie...and I want to be able to control frames from external buttons...I've googled, i've yahooed, and I've almost tossed a brand new 19" LCD across the

I'm fairly new, but in a bind. The code I'm working with can be found at

It should be simple...One file main.swf (I only included the .fla) has a scroll pane and loads a movieclip into the pane. It then has an external button that "should" move frames and control the movieclip within the scrollpane...but obviously it doesn't  or I wouldn't be typing this....

below I will post what I found as the closest solution googling around...

FYI...what I am trying to accomplish...This will be a form based app. The forms are already in pdf I am going to import (and already have) into seperate swf...either as scenes or frames...I can't get either to work in the scroll pane. I would like to use an outside dropdown to decide which form swf to load. The use the external buttons to go from page to page....That way, when I fill out the form and go to print...I can resize and print just the area inside the scrollpane easily.

thanks in advance
Question by:chuckbeats

    Author Comment

    What I found googling:

    you need to set a reference to target the contents of a scroll pane. you cannot reference it directly. you need to use the getScrollContent() method.

    say you want to send the the movieclip inside of your scroll pane to a frame labeled "chihuahua".


    ActionScript Code:

    ActionScript Code:
    myMovieClipRef = _root.myScrollPane.getScrollContent();
    LVL 34

    Expert Comment

    by:Aneesh Chopra

    just replace your button code with the following:
    btn.onRelease = function() {
          myMovieClipRef = _root.myScroll.content;

    you are done, enjoy

    LVL 34

    Accepted Solution

    following Issue were in your code:

    onRelease were not declared properly...

    use need to use ScrollBar.content property, instead of ScrollBar.contentPath

    I hope all would be clear


    Author Comment

    Thank you, thank you, thank you!!! This isn't the first  time you've bailed me out.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
    Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now