PDA

View Full Version : More Scrollpains


Murr
02-20-2003, 12:43 AM
Hello all. I have searched the web and the forums to no avail. I need help in a big way.
I am trying to build a site where the content can be updated via changing text files and images in a directory with the swf. Tost's posts about this ScrollPane are getting me close but I'm not quite there yet.
Let us say that all my changing content is to appear within a Scrollpane like a small browser window. As if it were an HTML site with a seperate frame into witch new content gets laoded by clicking menu items. I can get text to update within a textfield (with loadVariables) and attach a ScrollBar, but I want my content to be a movie clip so I can have images scrolling with the text too.
Here's what I can't do::confused:

1: load a movieclip into a Scrollpane and then change it's [the movieclip's] content , like text in a dynamic text field, with a button press.

2: swap in a new movieclip with a button press and have the ScrollPane control it.

Any help is greatly appriciated. Here's a toast to all those who really know thier craft!

Thanks

level32
02-20-2003, 04:29 AM
You should create new movieClips in your library that load the info you need. Choose the linkage option and give them Identifier names. Give your scrollPane an instance name too. Your buttons can controll what's in it like this:

on (release) {
pane.setScrollContent("clip");
}


"pane" is the instance name of the scollPane and "clip" is the Identifier name of the movieClip in the library.

Put whatever you want in the "clip" movieClip and it should load in your scrollPane. Remember to embed your fonts though. They won't look right if you don't.

Hope that helped

level32
02-20-2003, 04:48 AM
Forgot about this. You can also load a new swf in the scrollPane too.


on (release) {
pane.loadScrollContent("YourSwf.swf");
}