setSize issue with newer version of print2flash
Posted: Sun Jul 05, 2009 10:41 pm
I embed an existing document using your code + some resizing:
This works perfectly when "sample.swf" is a document created by an older version (I downloaded a sample that you provided in a previous post http://print2flash.com/forum/download/file.php?id=3 and it works perfectly) BUT for newer documents that I generate (or even the sample.swf provided in your SDK) I get very weird behavior.
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...
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...