Creative Flash Scroller Forum


box Creative Flash Scroller
With Creative Flash Scroller you can scroll any kind of Flash Content: static text, dynamic text, pictures, animations, movies. It comes with multiple scroll behaviors: touch scroll, mouse gesture scroll, scrollbar scroll and even supports mouse wheel behavior. You can add smooth scrolling or motion blur effects and customize it to suit your design, from an easy to use interface.

Find out more about Creative Flash Scroller

Thread: Scrollbar redimensioning on loading external SWF

title left
User Details
message
title right
Hans

post date:
2011-06-05 06:15:57
Hi,

I'm trying to load an external SWF file from disk on a button click:

btn.onPress = function():Void {
var loader_mc:MovieClip = container_mc.createEmptyMovieClip("loader_mc", this.getNextHighestDepth());

var loaderListener:Object = {
onLoadInit: function() {
scroller.redim();
}
};

var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(loaderListener);
loader.loadClip("c:/test.swf", loader_mc);
};

The scroller's target is 'container_mc'. Loading and scrolling by mouse dragging works fine. But the scrollbars don't seem to be updated properly, although I am waiting for the first frame of the loaded movie clip to be executed (onLoadInit event). When I use a Classic Scoller no scrollbars are displayed at all. When I am using a Scroll Area and a Scrollbar, the scrollbar is updated, but somehow incorrectly: the arrows are placed very close to each other, and the bar is many times longer as the distance between the arrows.

Any idea? Thanks.
Andrei Rinciog [Extend Studio]

post date:
2011-06-06 05:12:27
Hello Hans,

Use this method when the load finishes:

scroller.cDimCheck();

Regards,
Andrei Rinciog