Share is a native extension that allows application to share data using whatever sharing apps are available on the user’s device. It’s possible to use general sharing methods such as shareMessage()
or shareFile()
that automatically searches for the available sharing apps installed on user’s device.  The result is displayed to the user in a dialog box.
If the application requires a more specific sharing method, there are plenty of pre-defined methods available to be invoked, allowing the application to share data via email, Facebook, Twitter, Google+, YouTube, Browser, SMS and MMS.
Sample
_ex = new Share(); _ex.addEventListener(ShareEvent.RETURNED_TO_APP, onReturn); _ex.addEventListener(ShareEvent.ERROR, onError); var userAccountArr:Array = _ex.emailAccounts; var sharingAppsArr:Array = _ex.supportedSharingApps; trace(_ex.isSimcardAvailable); trace(_ex.isNetworkAvailable); trace(_ex.checkFileExist("exShareBtn_assets/myappsnippet.jpg")); _ex.shareMessage("Dialog Title", "Message Title", "Message body"); _ex.shareFile("Dialog Title", ["exShareBtn_assets/party.mp4", "exShareBtn_assets/myappsnippet.jpg"]); // ... and more and specific ways to share files or message: // shareViaGmail, shareViaFacebook, shareViaTwitter, // shareViaGooglePlus, shareViaYoutube, shareViaBrowser, // shareViaMMS, shareViaSMS
Be careful with the seller of this extension : I ordered it via Paypal 48h ago, and I don’t have heard from them since. Perhaps are they on vacation, but it’s kind of strange since they don’t answered my emails nor message I posted on Facebook. So be advised this might be a scam :-/
It’s really sad to read that, Catmembert. I hope they are busy or on vacation… Let’s hope for the best.
Thanks for the heads up!
UPDATE: it seems their Twitter handler is active and their e-mail servers are malfunctioning. Try to ping them via Twitter.
They answered me! It seems that they are experiencing issues with their mail server.
I maybe overreacted, but I am in the middle of a deadline for an app, and the stress can grow fast there…
Do i have to copy any image or assets to root directory of the phone if i wanted to share ??
How would i share an image which is placed in assets folder of the air application ??
I am using this share tool but unable to share an image from assets folder of the application.
Thanks,
Irfan
I think the ANE is able to share an image anywhere in the filesystem, but I’m not sure. Try to ask @myflashlab for help.