stageWebView / BitmapData (iPad Retina Issue) [PLEASE HELP]
this has been driving me nuts months now.. i've been hoping magically fix each new release of air. still no luck.
so what's happening when have button close out of stagewebview, taking screenshot of webview can animate out. on ipad1, ipad2, desktop, etc performs should... on ipad3.. seems capturing screen @ non-retina resolution , blowing image x2. result zoomed in image animates out.
here code ... doing wrong ?
function closebrowser():void {
enableallbrowsercontrols();
// hide preloader
socialpreloader.visible = false;
// make sure remove if exists know we're getting fresh bitmap every time
if (socialviewbitmap != null && contains(socialviewbitmap)) {
removechild(socialviewbitmap);
socialviewbitmap = null;
}
socialbitmapdata = new bitmapdata(socialwebview.viewport.width, socialwebview.viewport.height);
socialwebview.drawviewporttobitmapdata(socialbitmapdata);
socialviewbitmap = new bitmap(socialbitmapdata);
sharefacebookbtn.visible = false;
addchild(socialviewbitmap);
//resize bitmap ipad3
socialviewbitmap.width = 1024;
socialviewbitmap.height = 664;
socialviewbitmap.x = 0;
socialviewbitmap.y = 42
trace("bitmapdata worked" + socialviewbitmap.y);
browserremovedelay = new timer(0, 0); // 1 second
browserremovedelay.addeventlistener(timerevent.timer, animatebrowserclose);
browserremovedelay.start();
}
hi,
did log bug via bugbase.adobe.com, request so. also, please share bug number here reference.
thanks reporting it.
-pahup
More discussions in AIR Development
adobe
Comments
Post a Comment