Code: Select all
var stageListener:Object = new Object();
stageListener.onResize = function () {
_root.MyDoc.setSize(Stage.width, Stage.height);
}
Stage.addListener(stageListener);
LoadPrint2FlashDoc("sample.swf",0,0,Stage.width,Stage.height,"MyDoc",_root,P2FListener);
See the following examples:
Load the new sample: http://dev.vivisimo.com/~pesenti/docapi ... sample.swf, resizing messes up everything.
Load old sample (it's exactly the same code): http://dev.vivisimo.com/~pesenti/docapi ... sample.swf, works fine.
The new sample: http://dev.vivisimo.com/~pesenti/newsample.swf
The old sample: http://dev.vivisimo.com/~pesenti/sample.swf
I suspect some bug in the newer version of flash2doc...