The update will be out during this next week, so I'll check the method for sure before then.
2014年11月19日水曜日、Deepak MS<[email protected]>さんは書きました: > Sure. No worries. I'll wait. > > Thanks. > > Meanwhile, I'll see if I can tweak something. > > On Wed, Nov 19, 2014 at 3:07 PM, Neverbirth <[email protected] > <javascript:;>> wrote: > > > I'm out of my home pc for three days, I'll try to look at it this > weekend, > > but no promises since I have a lot of pending work. > > > > An update of the ANE is planned soon. > > > > 2014年11月19日水曜日、Deepak MS [via Apache Flex Users]< > > [email protected] <javascript:;>>さんは書きました: > > > > > Hi Neverbirth, > > > I was trying to use drawViewPortToBitmapData. > > > But not able to get it work right. > > > > > > I am trying to take a screenshot and open that image in email, as shown > > > here: http://pbrd.co/11s3Nux > > > > > > Code: > > > //method under myMapComponent to get bitmap data > > > public function getMapBitmapData():BitmapData > > > { > > > var bitmapData:BitmapData = new > > > > > > BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height); > > > > > > if(map) > > > { > > > map.drawViewPortToBitmapData(bitmapData); > > > } > > > return bitmapData; > > > } > > > > > > > > > // on click of 'Email' button > > > var pngSource:BitmapData = new > > > > > > BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height); > > > > > > pngSource = myMapComponent.getMapBitmapData(); > > > > > > > > > //code to attach the image and open email client > > > var file:File = > > > File.applicationStorageDirectory.resolvePath("screenshot.png"); > > > var extension:ScreenShot = new ScreenShot(); > > > extension.getScreenShotPNG(file.nativePath, > > > pngSource); > > > > > > email.removeEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT, > > > handleMailComposerEvent); > > > > > > email.addEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT, > > > handleMailComposerEvent); > > > var attachmentStr:String = file.nativePath + "|" + > > > 'image/png'+ "|" + 'screenshot.png'; > > > > > > email.sendMail(model.selectedViewLabel, "", > > > "", > > > "", > > > "",[attachmentStr]); > > > > > > > > > I think there is some issue with setting up width\height. But I'm not > > sure > > > what and where should I be changing it. > > > > > > Kindly let me know if there is a way. > > > > > > > > > > > > On Wed, Oct 29, 2014 at 7:31 PM, Neverbirth <[hidden email] > > > <http://user/SendEmail.jtp?type=node&node=8817&i=0>> wrote: > > > > > > > Yes, sorry for that. I submitted my reply and then realized I > > > misunderstood > > > > the problem. > > > > > > > > When using an ANE the view will always be placed over your Flash > > > content. > > > > The Maps ANE has a drawViewPortToBitmapData which may help you, I've > > > never > > > > used it myself. > > > > > > > > > > > > > > > > -- > > > > View this message in context: > > > > > > > > > > http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8542.html > > > > Sent from the Apache Flex Users mailing list archive at Nabble.com. > > > > > > > > > > > > > ------------------------------ > > > If you reply to this email, your message will be added to the > discussion > > > below: > > > > > > > > > http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8817.html > > > To unsubscribe from Google Map ANE Issue on Flex AIR iPad App, click > > here > > > < > > > http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=8523&code=bmV2ZXJiaXJ0aEBnbWFpbC5jb218ODUyM3wxMjc3NjY2NTIw > > > > > > . > > > NAML > > > < > > > http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > > > > > > > > > > > > > > > > -- > > View this message in context: > > > http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8818.html > > Sent from the Apache Flex Users mailing list archive at Nabble.com. > > >
