all groups > flash actionscript > november 2006 >
You're in the

flash actionscript

group:

Second request for help on scrollpane


Second request for help on scrollpane stevew
11/14/2006 10:56:12 PM
flash actionscript:
Sorry for the duplicate no answer from my first post.

I have a scrollpane Scroll1.
I set its contentpath to "movie1"

When run movie1 shows within the scrollpane.

I need to progam a button to replace the contentpath with "movie2"

I have tried:
_root.Movie1.loadMovie("movie2.swf");
_root.scroll1.loadScrollContent("movie2.swf");

I cannot get it to work. ANyone have a step by step example please?

Cheers

SteveW


Re: Second request for help on scrollpane Glazer
11/15/2006 1:20:47 PM
Hi Steve,
drag-n-drop a button component onto your stage and name it "Button1" (or
whatever). Select the frame where you keep all your actionscript and simply
type the following:

Button1.onRelease = function():Void
{
Scroll1.contentPath = "movie2.swf";
};
AddThis Social Bookmark Button