BCS AddThis MXML Component

The simplest way to include AddThis functionality in all Flash Builder pages is to install this component and use it on every page that you desire to share with social web services.
[codesyntax lang=”mxml” title=”BCS AddThis Component XMXL”]

<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
		 xmlns:mx="library://ns.adobe.com/flex/mx" width="127" height="18">
			public var Title:String;
			public var URL:String;
			protected function image1_clickHandler(event:MouseEvent):void
				var urlReq:URLRequest = new URLRequest("http://api.addthis.com/oexchange/0.8/offer");
				var variables:URLVariables = new URLVariables();
				variables.url = URL;
				variables.title = Title;
				variables.description = "This web site is for assisting technicians in ther technology endeavors";
			    variables.user = "description";
				urlReq.data = variables;
				navigateToURL(urlReq, "_blank");
		<!-- Place non-visual elements (e.g., services, value objects) here -->
	<mx:Image x="0" y="0" width="125" height="16" source="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" click="image1_clickHandler(event)"/>


Leave a Reply

Your email address will not be published. Required fields are marked *