This content has been marked as final.
Show 1 reply
-
1. Re: How to use Social native events ?
nuno card May 22, 2014 9:12 AM (in response to Kobydo2)import com.adobe.ane.social.SocialServiceType;
import com.adobe.ane.social.SocialUI;
//-----------------FACEBOOK------------------------
//create a movieclip called print_fb and connect it to the m_bitmapData (this ovieclip will be posted on facebook)
var m_bitmapData = new BitmapData(print_fb.width, print_fb.height, true, 0x00000000);
//facebook button
fb_btn.addEventListener(MouseEvent.MOUSE_DOWN, face_post);
//facebook function
function face_post(Event:MouseEvent) {
var soc: SocialUI = new SocialUI(SocialServiceType.FACEBOOK);
soc.setMessage("Your message");
soc.addURL("Your URL");
m_bitmapData.draw(print_fb);
soc.addImage(m_bitmapData);
soc.launch();
}
This script was working until last FlashCC update (about a month ago).
