Sorry, this is not well documented and there is no complete example. I will try to put one togther soon. But, wanted to put the code up for the talk. - doug

Add this to your main app...

private var browserScrollInjection : ResizeAndScrollInjection;
private function _addJavaScriptInjections () : void {
//Set up the stage
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

browserScrollInjection = new ResizeAndScrollInjection();
browserScrollInjection.flashContentContainer = flashContent;
}

//event fired by the chart group, reset swf height when it's received
public function handleResize (evt : EChartGroup) : void {
if (browserScrollInjection) {
if (evt.target == chartGroup) {
_chartGroupHeight = evt.height;
}
else {
_dvsHederHeight = evt.height + 20;
}
var newHeight : Number = _chartGroupHeight + _dvsHederHeight;
if (swfHeight != newHeight) {
browserScrollInjection.setActualWindowSize(newHeight);
}

swfHeight = newHeight;
}
}

 

And make sure all your content is added to a Canvas or Group with an id = 'flashContent'

 

Here are the other files

index.template.html (template file for embedding your swf)

ResizeAndScrollInjection.as (Deals w/ all the resizing)