<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>i-create &#124; therefore-i am &#187; Flex</title>
	<atom:link href="http://i-create.org/tag/Flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://i-create.org</link>
	<description>i-create &#124; therefore i-am &#124; a blog about opensource technology and rich internet applications</description>
	<lastBuildDate>Thu, 05 Aug 2010 04:19:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Twitter and Google Maps</title>
		<link>http://i-create.org/2009/08/03/twitter-and-google-maps/</link>
		<comments>http://i-create.org/2009/08/03/twitter-and-google-maps/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 22:37:29 +0000</pubDate>
		<dc:creator>Brendon Smith</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[MashUp]]></category>
		<category><![CDATA[i-create]]></category>
		<category><![CDATA[Flash Develop]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter api]]></category>

		<guid isPermaLink="false">http://i-create.org/?p=642</guid>
		<description><![CDATA[Google Maps and Twitter example, grab the user location and map it on Google maps. Please note that the Google Maps api for flash now has full 3d support this does not go into how to use that but I will make my way back to this tutorial in a bit and elaborate on how [...]]]></description>
			<content:encoded><![CDATA[<p>Google Maps and Twitter example, grab the user location and map it on Google maps.  Please note that the Google Maps api for flash now has full 3d support this does not go into how to use that but I will make my way back to this tutorial in a bit and elaborate on how to execute a 3d map in flash put for now this is just a ridiculously simple example of how to integrate a twitter map with Google quickly.  For this example I simply picked up the Google map api swc and followed the geocoding example.  I simply pass in the twitter location of the user to the geocoding services and it automagically maps my results no real frills just simple and quick example.</p>
<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3NlYWNsb3VkOS5vcmcvYXF1YVQv" target=\"_blank\" title=\"Simple Google Maps and Twitter Geocoding\"><br />
<img src="/actionscript/twitterUserMappedonGoogle.jpg" alt="Simple Google Maps and Twitter"/></a></p>
<p>Flash Twitter and Google Map Integration:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Canvas xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;300&quot;</span>  xmlns:maps=<span style="color: #ff0000;">&quot;com.google.maps.*&quot;</span> initialize=<span style="color: #ff0000;">&quot;init()&quot;</span><span style="color: #66cc66;">&gt;</span>
 <span style="color: #66cc66;">&lt;</span>mx:VBox <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #66cc66;">&gt;</span>
 <span style="color: #66cc66;">&lt;</span>mx:HBox <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #66cc66;">&gt;</span>
  <span style="color: #66cc66;">&lt;</span>mx:TextInput
     id=<span style="color: #ff0000;">&quot;address&quot;</span>
     <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Sydney AU&quot;</span>
     dropShadowColor=<span style="color: #ff0000;">&quot;0x000000&quot;</span>
      <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;false&quot;</span>
  <span style="color: #66cc66;">/&gt;</span>
 <span style="color: #66cc66;">&lt;/</span>mx:HBox<span style="color: #66cc66;">&gt;</span>
  <span style="color: #66cc66;">&lt;</span>maps:Map 
    id=<span style="color: #ff0000;">&quot;map&quot;</span> 
    <span style="color: #0066CC;">key</span>=<span style="color: #ff0000;">&quot;yourAPI Key&quot;</span> 
    mapevent_mapready=<span style="color: #ff0000;">&quot;onMapReady(event)&quot;</span>
    <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #66cc66;">/&gt;</span>
 <span style="color: #66cc66;">&lt;/</span>mx:VBox<span style="color: #66cc66;">&gt;</span>
 <span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
	  <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">SampleTitleWindow</span>;
	  <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;
	  <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">MenuEvent</span>;
      <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">collections</span>.<span style="color: #66cc66;">*</span>;
      <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">managers</span>.<span style="color: #006600;">PopUpManager</span>;
      <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
	  <span style="color: #0066CC;">import</span> nl.<span style="color: #006600;">demonsters</span>.<span style="color: #006600;">debugger</span>.<span style="color: #006600;">MonsterDebugger</span>;
	  <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #66cc66;">*</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">services</span>.<span style="color: #006600;">ClientGeocoderOptions</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">LatLng</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">Map</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">MapEvent</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">MapMouseEvent</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">MapType</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">services</span>.<span style="color: #006600;">ClientGeocoder</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">services</span>.<span style="color: #006600;">GeocodingEvent</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">overlays</span>.<span style="color: #006600;">Marker</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">overlays</span>.<span style="color: #006600;">MarkerOptions</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">InfoWindowOptions</span>;
      <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
      <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">ZoomControl</span>;
	  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> nc:<span style="color: #0066CC;">NetConnection</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">NetConnection</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> resp:Responder = <span style="color: #000000; font-weight: bold;">new</span> Responder<span style="color: #66cc66;">&#40;</span>onResult, onError<span style="color: #66cc66;">&#41;</span>;
	  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> resp1:Responder = <span style="color: #000000; font-weight: bold;">new</span> Responder<span style="color: #66cc66;">&#40;</span>onError<span style="color: #66cc66;">&#41;</span>;
      <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> obj:<span style="color: #0066CC;">Object</span> = <span style="color: #66cc66;">&#123;</span> <span style="color: #66cc66;">&#125;</span>;
	  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> tweetLocN:<span style="color: #0066CC;">int</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">int</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> geoLocationTwit:<span style="color: #0066CC;">Array</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
	  <span style="color: #66cc66;">&#123;</span>
			nc.<span style="color: #006600;">objectEncoding</span> = ObjectEncoding.<span style="color: #006600;">AMF3</span>;
			nc.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://yoursite.com/toYour/zendEndpointAMF/index.php&quot;</span><span style="color: #66cc66;">&#41;</span>;
			nc.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;TwitService.getfriendsTimeline&quot;</span>,resp<span style="color: #66cc66;">&#41;</span>;
	  <span style="color: #66cc66;">&#125;</span>
&nbsp;
	  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> onResult<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>
      <span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> arr:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;
				<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> <span style="color: #0066CC;">e</span>.<span style="color: #006600;">friendsTimeline</span>.<span style="color: #0066CC;">length</span>; i++ <span style="color: #66cc66;">&#41;</span>
				<span style="color: #66cc66;">&#123;</span>
&nbsp;
					<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">locTwit</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">!</span>= <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">&#41;</span>
					<span style="color: #66cc66;">&#123;</span>
					<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">locTwit</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>+<span style="color: #ff0000;">&quot;----------------Pushed!!!!!!!!!!!!!!!!!!!!&quot;</span><span style="color: #66cc66;">&#41;</span>;
					<span style="color: #0066CC;">try</span>
					<span style="color: #66cc66;">&#123;</span>
					address.<span style="color: #0066CC;">text</span> = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">locTwit</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;
					doGeocodeTwit<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">locTwit</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>, <span style="color: #0066CC;">e</span>.<span style="color: #006600;">userTwit</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>,<span style="color: #0066CC;">e</span>.<span style="color: #006600;">friendsTimeline</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span>;
					<span style="color: #66cc66;">&#125;</span>
					<span style="color: #0066CC;">catch</span> <span style="color: #66cc66;">&#40;</span>epicFail:<span style="color: #0066CC;">Error</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
					<span style="color: #66cc66;">&#125;</span>	
					<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;EpicFail Caught&quot;</span><span style="color: #66cc66;">&#41;</span>;
					<span style="color: #66cc66;">&#125;</span>
					<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">locTwit</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>+<span style="color: #ff0000;">&quot;Result Fired++++++++++&quot;</span><span style="color: #66cc66;">&#41;</span>;
					tweetLocN = geoLocationTwit.<span style="color: #0066CC;">length</span>;
                    arr.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>obj<span style="color: #66cc66;">&#41;</span>;
				<span style="color: #66cc66;">&#125;</span>
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>obj.<span style="color: #006600;">loc</span>+<span style="color: #ff0000;">&quot;Result END++++++++++&quot;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #808080; font-style: italic;">//datagrid.dataProvider = arr;</span>
	  <span style="color: #66cc66;">&#125;</span>
      <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> onError<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>
	  <span style="color: #66cc66;">&#123;</span>
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;And the Error is !!!!&quot;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span><span style="color: #66cc66;">&#41;</span>;
	  <span style="color: #66cc66;">&#125;</span>	  
      <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onMapReady<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
        map.<span style="color: #006600;">enableScrollWheelZoom</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
        map.<span style="color: #006600;">enableContinuousZoom</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
        map.<span style="color: #006600;">addControl</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> ZoomControl<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
       <span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
	  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> doGeocodeTwit<span style="color: #66cc66;">&#40;</span>event:<span style="color: #0066CC;">String</span>, userTwitter:<span style="color: #0066CC;">String</span>, userTweets:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #808080; font-style: italic;">// Geocoding example</span>
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>event+<span style="color: #ff0000;">&quot;String is+++++++++++++++++&quot;</span><span style="color: #66cc66;">&#41;</span>;
        <span style="color: #000000; font-weight: bold;">var</span> geocoder1:ClientGeocoder = <span style="color: #000000; font-weight: bold;">new</span> ClientGeocoder<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
        geocoder1.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>
          GeocodingEvent.<span style="color: #006600;">GEOCODING_SUCCESS</span>,
          <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>event:GeocodingEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
			  <span style="color: #000000; font-weight: bold;">var</span> placemarks:<span style="color: #0066CC;">Array</span> = event.<span style="color: #006600;">response</span>.<span style="color: #006600;">placemarks</span>;
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>placemarks+<span style="color: #ff0000;">&quot;+++++++===== Ran PlaceMark&quot;</span><span style="color: #66cc66;">&#41;</span>;
          <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>placemarks.<span style="color: #0066CC;">length</span> <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
            map.<span style="color: #006600;">setCenter</span><span style="color: #66cc66;">&#40;</span>placemarks<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">point</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #000000; font-weight: bold;">var</span> marker:Marker = <span style="color: #000000; font-weight: bold;">new</span> Marker<span style="color: #66cc66;">&#40;</span>placemarks<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">point</span><span style="color: #66cc66;">&#41;</span>;
            marker.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MapMouseEvent.<span style="color: #006600;">CLICK</span>, <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span>event:MapMouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> mainTweet:<span style="color: #0066CC;">String</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>userTwitter + <span style="color: #ff0000;">&quot; - User - Tweet:&quot;</span> + userTweets<span style="color: #66cc66;">&#41;</span>;
                marker.<span style="color: #006600;">openInfoWindow</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> InfoWindowOptions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>content: mainTweet<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
            map.<span style="color: #006600;">addOverlay</span><span style="color: #66cc66;">&#40;</span>marker<span style="color: #66cc66;">&#41;</span>;
          <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
		geocoder1.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>
          GeocodingEvent.<span style="color: #006600;">GEOCODING_FAILURE</span>,
          <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>event:GeocodingEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
            <span style="color: #808080; font-style: italic;">//Alert.show(&quot;Geocoding failed&quot;);</span>
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>event<span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #0066CC;">status</span><span style="color: #66cc66;">&#41;</span>;
          <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
        geocoder1.<span style="color: #006600;">geocode</span><span style="color: #66cc66;">&#40;</span>address.<span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#41;</span>;
      <span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
  <span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>mx:Canvas<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=L2FjdGlvbnNjcmlwdC9Ud2l0dGVyRmxvY2tFeGFtcGxlLnppcA==" target=\"_blank\" title=\"Simple ZendAMF Twitter Gateway\">Code</a></p>
<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3NlYWNsb3VkOS5vcmcvYXF1YVQv" target=\"_blank\" title=\"Simple Google Maps and Twitter Geocoding\">Simple Google Maps and Twitter Geocoding</a></p>
<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9hcGlzL21hcHMvZG9jdW1lbnRhdGlvbi9mbGFzaC9zZXJ2aWNlcy5odG1s" target=\"_blank\" title=\"Simple Google Maps Geocoding\">Simple Google Maps Geocoding</a></p>
 <img src="http://i-create.org/wp-content/plugins/feed-statistics.php?view=1&post_id=642" width="1" height="1" style="display: none;" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi-create.org%2F2009%2F08%2F03%2Ftwitter-and-google-maps%2F&amp;linkname=Twitter%20and%20Google%20Maps"><img src="http://i-create.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://i-create.org/2009/08/03/twitter-and-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZendAMF and the Twitter API</title>
		<link>http://i-create.org/2009/08/03/zendamf-and-the-twitter-api/</link>
		<comments>http://i-create.org/2009/08/03/zendamf-and-the-twitter-api/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 22:08:44 +0000</pubDate>
		<dc:creator>Brendon Smith</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[MashUp]]></category>
		<category><![CDATA[i-create]]></category>
		<category><![CDATA[amf]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[socialnetworking]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[zendamf]]></category>
		<category><![CDATA[zendframework]]></category>

		<guid isPermaLink="false">http://i-create.org/?p=640</guid>
		<description><![CDATA[Have you ever had the urge to roll your own twitter? Well I have and I have tried a number of methods to come to the conclusion I needed to write everything from scratch. So I did and I wouldn&#8217;t say that I wasn&#8217;t without help. I did study Lee Brimelow&#8217;s gotoandlearn.com ZendAMF tutorial. So [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever had the urge to roll your own twitter?  Well I have and I have tried a number of methods to come to the conclusion I needed to write everything from scratch.  So I did and I wouldn&#8217;t say that I wasn&#8217;t without help.  I did study <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2dvdG9hbmRsZWFybi5jb20v" target=\"_blank\" title=\"Lee Brimelow\">Lee Brimelow&#8217;s gotoandlearn.com ZendAMF tutorial</a>.  So I went about downloading and install zend on my server and I found it was extremely easy to use.  One of the many things that attracted me to the <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ZyYW1ld29yay56ZW5kLmNvbS8=" title=\"zendFramwork\" target=\"_blank\">Zend framework</a> were the prebuilt services.  The zend framework is a mature framework that has a great deal to offer developers so I will briefly show you a simple amf flash gateway built with zend to fetch the twitter service.  Also please note you will have to create your own classes if you want to extend this but it should be pretty easy to do considering..<br />
<a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3NlYWNsb3VkOS5vcmcvYXF1YVQv" target=\"_blank\" title=\"Simple ZendAMF Twitter Gateway\"><img src="/actionscript/UserUpdatesTwitter.jpg" title="zend_amf_twitter" alt="Click to go to example" /></a></p>
<p>So first off download the zendframework.  Configure your zendAMF endpoint.<br />
Create your own ZendAMF endpoint:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">error_reporting</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">E_ALL</span><span style="color: #339933;">|</span>E_STRICT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;display_errors&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;include_path&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">ini_get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;include_path&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;:/home/toYourZend/FrameWorkHome/frameworks/zendFramework/library/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Zend/Amf/Server.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'TwitService.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$server</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Amf_Server<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//adding our class to Zend AMF Server</span>
<span style="color: #000088;">$server</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setClass</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TwitService&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$server</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">handle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Now configure your zend Twitter Service<br />
Create Your Twitter Service Class:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">error_reporting</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">E_ALL</span><span style="color: #339933;">|</span>E_STRICT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;display_errors&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;include_path&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">ini_get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;include_path&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;:/home/toYourZend/FrameWorkHome/frameworks/zendFramework/library/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Zend/Service/Twitter.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'VOgetFriendsTimeline.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//connection info</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> TwitService <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$tmp</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$twitter</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$response</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
     <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getfriendsTimeline<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #000088;">$twitter</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Service_Twitter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'YourUserName'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'YourPassword'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 <span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$twitter</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">friendsTimeline</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 <span style="color: #000088;">$tmp</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> VOgetFriendsTimeline<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">18</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">// array_push($tmp-&gt;userTwit, $response-&gt;status[$i]);</span>
	 		<span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">userTwit</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span>string<span style="color: #009900;">&#41;</span><span style="color: #000088;">$response</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">screen_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 		<span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">statusPic</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span>string<span style="color: #009900;">&#41;</span><span style="color: #000088;">$response</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">profile_image_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 		<span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">locTwit</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span>string<span style="color: #009900;">&#41;</span><span style="color: #000088;">$response</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">location</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     		<span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">friendsTimeline</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span>string<span style="color: #009900;">&#41;</span><span style="color: #000088;">$response</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 	<span style="color: #009900;">&#125;</span>
	 <span style="color: #b1b100;">return</span> <span style="color: #000088;">$tmp</span><span style="color: #339933;">;</span>
	 <span style="color: #009900;">&#125;</span>
&nbsp;
	 <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> UserPostUpdate<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tweet</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	 <span style="color: #000088;">$twitter</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Service_Twitter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'YourUserName'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'YourPassword'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 <span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$twitter</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">update</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tweet</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	 
	 <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Now configure your flash variable object that is exposed by the service.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">class</span> VOgetFriendsTimeline <span style="color: #009900;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$user_twit</span><span style="color: #339933;">;</span>
     <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$pass_twit</span><span style="color: #339933;">;</span>
     <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$locTwit</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$friendsTimeline</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$statusPic</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$userTwit</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$text</span><span style="color: #339933;">;</span>
     <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Finally configure your flex project to consume the service.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Canvas xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;300&quot;</span> initialize=<span style="color: #ff0000;">&quot;init()&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
        	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">SampleTitleWindow</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">MenuEvent</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">collections</span>.<span style="color: #66cc66;">*</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">managers</span>.<span style="color: #006600;">PopUpManager</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
			<span style="color: #0066CC;">import</span> nl.<span style="color: #006600;">demonsters</span>.<span style="color: #006600;">debugger</span>.<span style="color: #006600;">MonsterDebugger</span>;
			<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #66cc66;">*</span>;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> nc:<span style="color: #0066CC;">NetConnection</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">NetConnection</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> resp:Responder = <span style="color: #000000; font-weight: bold;">new</span> Responder<span style="color: #66cc66;">&#40;</span>onResult, onError<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> resp1:Responder = <span style="color: #000000; font-weight: bold;">new</span> Responder<span style="color: #66cc66;">&#40;</span>onError<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
			nc.<span style="color: #006600;">objectEncoding</span> = ObjectEncoding.<span style="color: #006600;">AMF3</span>;
			nc.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://yoursite.com/toYour/zendEndpointAMF/index.php&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;I was ran!&quot;</span><span style="color: #66cc66;">&#41;</span>;
			nc.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;TwitService.getfriendsTimeline&quot;</span>,resp<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> onResult<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Recieved Object...&quot;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #808080; font-style: italic;">//userPosts.dataProvider = e.friendsTimeline;</span>
				<span style="color: #000000; font-weight: bold;">var</span> arr:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;
				<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> <span style="color: #0066CC;">e</span>.<span style="color: #006600;">friendsTimeline</span>.<span style="color: #0066CC;">length</span>; i++ <span style="color: #66cc66;">&#41;</span>
				<span style="color: #66cc66;">&#123;</span>
                    <span style="color: #000000; font-weight: bold;">var</span> obj:<span style="color: #0066CC;">Object</span> = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;
                    obj.<span style="color: #0066CC;">text</span> =  <span style="color: #0066CC;">e</span>.<span style="color: #006600;">friendsTimeline</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;
                    obj.<span style="color: #006600;">from</span> =  <span style="color: #0066CC;">e</span>.<span style="color: #006600;">userTwit</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;
					obj.<span style="color: #006600;">pic</span> = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">statusPic</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;
&nbsp;
                    arr.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>obj<span style="color: #66cc66;">&#41;</span>;
				<span style="color: #66cc66;">&#125;</span>
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span><span style="color: #66cc66;">&#41;</span>;
				datagrid.<span style="color: #006600;">dataProvider</span> = arr;
			<span style="color: #66cc66;">&#125;</span>
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> zendPost<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> tweetPost:<span style="color: #0066CC;">String</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				tweetPost = twitPost.<span style="color: #0066CC;">text</span>;
				nc.<span style="color: #006600;">objectEncoding</span> = ObjectEncoding.<span style="color: #006600;">AMF3</span>;
				nc.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://yoursite.com/toYour/zendEndpointAMF/index.php&quot;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;I was ran!&quot;</span><span style="color: #66cc66;">&#41;</span>;
				nc.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;TwitService.UserPostUpdate&quot;</span>,resp1,tweetPost<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> onError<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;And the Error is !!!!&quot;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:VBox <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> minWidth=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:VBox <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> minWidth=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;80%&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:DataGrid id=<span style="color: #ff0000;">&quot;datagrid&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> minHeight=<span style="color: #ff0000;">&quot;150&quot;</span> maxHeight=<span style="color: #ff0000;">&quot;200&quot;</span><span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;</span>mx:columns<span style="color: #66cc66;">&gt;</span>
            <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn headerText=<span style="color: #ff0000;">&quot;Tweet&quot;</span> dataField=<span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #0066CC;">wordWrap</span>=<span style="color: #ff0000;">&quot;true&quot;</span>  <span style="color: #66cc66;">/&gt;</span>
			 <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn headerText=<span style="color: #ff0000;">&quot;Avatar&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;150&quot;</span> id=<span style="color: #ff0000;">&quot;imgAvatar&quot;</span> itemRenderer=<span style="color: #ff0000;">&quot;mx.controls.Image&quot;</span> dataField=<span style="color: #ff0000;">&quot;pic&quot;</span> <span style="color: #66cc66;">/&gt;</span>
            <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn headerText=<span style="color: #ff0000;">&quot;@user&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;150&quot;</span> dataField=<span style="color: #ff0000;">&quot;from&quot;</span><span style="color: #66cc66;">/&gt;</span>
        <span style="color: #66cc66;">&lt;/</span>mx:columns<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>mx:DataGrid<span style="color: #66cc66;">&gt;</span>
&nbsp;
&nbsp;
	<span style="color: #66cc66;">&lt;/</span>mx:VBox<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:VBox <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:HBox <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;98%&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;10%&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:TextArea id=<span style="color: #ff0000;">&quot;twitPost&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;90%&quot;</span> horizontalCenter=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #66cc66;">&gt;&lt;/</span>mx:TextArea<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Button</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> label=<span style="color: #ff0000;">&quot;Post&quot;</span> click=<span style="color: #ff0000;">&quot;zendPost()&quot;</span> <span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:HBox<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:VBox<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:VBox<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;/</span>mx:Canvas<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=L2FjdGlvbnNjcmlwdC9Ud2l0dGVyRmxvY2tFeGFtcGxlLnppcA==" target=\"_blank\" title=\"Simple ZendAMF Twitter Gateway\">Code</a></p>
<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3NlYWNsb3VkOS5vcmcvYXF1YVQv" target=\"_blank\" title=\"Simple ZendAMF Twitter Gateway\">Thats it! View the live example here!</a></p>
<p>Other Cool Twitter Mashup links can be found:<br />
<a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2RlbGljaW91cy5jb20vQnJlbmRvbi5TbWl0aF9TZWFDbG91ZDkvdHdpdHRlcg==" target=\"_blank\" title=\"Twitter MashUPs\"><br />
Twitter MashUp Links</a><br />
<a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2dvdG9hbmRsZWFybi5jb20v" target=\"_blank\" title=\"Lee Brimelow\"><br />
Don&#8217;t forget to check out Lee Brimelow&#8217;s GotoandLearn AMF video.</a><br />
<a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ZyYW1ld29yay56ZW5kLmNvbS8=" title=\"zendFramwork\" target=\"_blank\">Zend framework</a><br />
<a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ZyYW1ld29yay56ZW5kLmNvbS9tYW51YWwvZW4vemVuZC5zZXJ2aWNlLnR3aXR0ZXIuaHRtbA==" title=\"zendFramwork\" target=\"_blank\">Zend Services</a> </p>
 <img src="http://i-create.org/wp-content/plugins/feed-statistics.php?view=1&post_id=640" width="1" height="1" style="display: none;" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi-create.org%2F2009%2F08%2F03%2Fzendamf-and-the-twitter-api%2F&amp;linkname=ZendAMF%20and%20the%20Twitter%20API"><img src="http://i-create.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://i-create.org/2009/08/03/zendamf-and-the-twitter-api/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using ScaleNine Skins in Flash Develop3</title>
		<link>http://i-create.org/2008/10/30/using-scalenine-skins-in-flash-develop3/</link>
		<comments>http://i-create.org/2008/10/30/using-scalenine-skins-in-flash-develop3/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 23:45:21 +0000</pubDate>
		<dc:creator>Brendon Smith</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Develop]]></category>

		<guid isPermaLink="false">http://i-create.org/?p=480</guid>
		<description><![CDATA[Have you ever wanted to use a Scale Nine Skin in your Flash Develop environment? Well its easy. Here is an example you can download. Here are few easy steps to accomplish your goal: Install Flash Develop by Downloading it here. Configure your compiler and download the Flex SDK if you haven&#8217;t yet. Go to [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to use a Scale Nine Skin in your Flash Develop environment? Well its easy. Here is an example you can <a title=\"Flash Develop Project Download template that uses ScaleNine\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9teG1sY19Qcm9qZWN0cy56aXA=" target=\"_blank\">download</a>.  Here are few easy steps to accomplish your goal:</p>
<ul>
<li>Install <a title=\"Flash Develop Releases\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5mbGFzaGRldmVsb3Aub3JnL2NvbW11bml0eS92aWV3Zm9ydW0ucGhwP2Y9MTE=" target=\"_blank\">Flash Develop</a> by Downloading it here.</li>
<li>Configure your compiler and download the Flex SDK if you haven&#8217;t yet.</li>
<li>Go to<a title=\"ScaleNine.com Flex Skins\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3NjYWxlbmluZS5jb20v" target=\"_blank\"> Scalenine.com</a> find a skin.</li>
<li>Now create a new Flex Project AS3.</li>
<li>Connect all libraries or SWC by adding them to the project.</li>
<li>Go through the css and make sure everything is linked to the correct asset, image, etc.</li>
<li>Copy the MXML in the sample and place it in the Main.mxml of your project.</li>
<li>Now build. It&#8217;s that easy.</li>
</ul>
<p><a title=\"Flash Develop Project Download template that uses ScaleNine\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9teG1sY19Qcm9qZWN0cy56aXA=" target=\"_blank\"><img title="ScaleNine Skin in Flash Develop3" src="/Scale9_Skin_in_FlashDevelop.jpg" alt="" /></a><br />
So now you can examine the template and modify it if you like. It is a fairly painless process and with flash develop you can now see how to use the skin with the default .mxml file. So that should be enough to get you working on building cool interfaces for your flash develop project.  You can see this <a title=\"ScaleNine Skin in Flash Develop Example\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL1NlYUNsb3VkOS5vcmcvZmxleC8=" target=\"_blank\">example here</a> and you can download the flash develop <a title=\"Flash Develop Project Download template that uses ScaleNine\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9teG1sY19Qcm9qZWN0cy56aXA=" target=\"_blank\">project here</a>.</p>
<p>Links of Interest:<br />
<a title=\"Flash Develop Releases\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5mbGFzaGRldmVsb3Aub3JnL2NvbW11bml0eS92aWV3Zm9ydW0ucGhwP2Y9MTE=" target=\"_blank\">Flash Develop</a><br />
<a title=\"ScaleNine.com Flex Skins\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3NjYWxlbmluZS5jb20v" target=\"_blank\">ScaleNine</a><br />
<a title=\"Silverlight Skins\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5jb2RlcGxleC5jb20vU2lsdmVybGlnaHQ=" target=\"_blank\">Silverlight Skins</a><br />
<a title=\"Flash Develop Project Download template that uses ScaleNine\" href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9teG1sY19Qcm9qZWN0cy56aXA=" target=\"_blank\">Flash Develop Project Files to Download</a></p>
 <img src="http://i-create.org/wp-content/plugins/feed-statistics.php?view=1&post_id=480" width="1" height="1" style="display: none;" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi-create.org%2F2008%2F10%2F30%2Fusing-scalenine-skins-in-flash-develop3%2F&amp;linkname=Using%20ScaleNine%20Skins%20in%20Flash%20Develop3"><img src="http://i-create.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://i-create.org/2008/10/30/using-scalenine-skins-in-flash-develop3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FlashDevelop Quick Start</title>
		<link>http://i-create.org/2008/04/22/flashdevelop_quick_start/</link>
		<comments>http://i-create.org/2008/04/22/flashdevelop_quick_start/#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Brendon Smith</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[What is Flashdevelop and why should I care? <a href="http://www.flashdevelop.org/community/viewtopic.php?t=23" target="_blank">FlashDevelop</a> is an <a href="http://svn1.cvsdude.com/osflash/flashdevelop/Trunk/FD3/" target="_blank">opensource</a> integrated development environment (IDE). It was created using C# on the .net 2.0 so it runs on any windows box that has <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&#038;displaylang=en" target="_blank">.net 2.0</a> or higher and <a href="http://www.java.com" target="_blank">Java 1.6 runtime</a>. .Net 2.0 and Java 1.6 are already on most windows computers. The user also needs to have the <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3" target="_blank">Flex SDK</a> to install FlashDevelop IDE properly. You can use this IDE to write action script 2/3, flex MXML, and <a href="http://haxe.org/" target="_blank">HAXE</a>. You can actually pick from several compilers. It is a wonderful open source program and if in the right hands can be utilized to write ActionScript quickly.<p>The people of Adobe have all been working hard on improving the features of ActionScript and they have a lots of open source libraries that allow developers to rapidly create highly functioning and quick rich internet applications (RIA). This example is only a beginner example note this is just suposed to be informative and quick. In regards to  use the FlashDevelop IDE and it is based off of <a href="http://www.mikechambers.com/blog/2008/01/22/parsing-rss-20-feeds-in-actionscript-3/" target="_blank">Mike Chambers</a> example.</p><p>Step 1: Install the <a href="http://www.flashdevelop.org/community/viewtopic.php?t=2893" target="_blank">FlashDevelop IDE from their site here</a>. Also make sure you follow the <a href="http://www.flashdevelop.org/community/viewtopic.php?t=2540&#038;sid=c7351f758f261ea53ea6da7c8efb30e3" target="_blank">requirements</a> found here.</p><p>Step 2: install the Flex SDK <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3" target="_blank">here</a>.</p><p>Step 3: Insert the Flex SDK location here by selecting Tools from the drop down then go to Program Settings navigate to the AS3 Context panel and insert your Flex SDK location as shown below (click to enlarge):</p><div style="clear: right; float: left; width: 450px;" class="IMGClear"><a href="http://i-create.org/start.png" target="_blank"><img src="http://i-create.org/start.png" width="320" height="198" border="0"></a></div><p>Step 4: Create a new ActionScript 3 Flex 3 project name it and then hit OK as shown below:</p><div style="clear: right; float: left; width: 450px;" class="IMGClear"><a href="http://i-create.org/rss.png" target="_blank"><img src="http://i-create.org/rss.png" width="320" height="198" border="0"></a></div><p>Step 5: Minimize your FlashDevelop IDE. For this you will also have to download and install 2 ActionScript libraries written by the Adobe Developers and located on Google Code here: <a href="http://code.google.com/p/as3corelib/" target="_blank">CoreLib</a> , <a href="http://code.google.com/p/as3syndicationlib/" target="_blank">XMLsyndication</a> Lib. Download the code extract and place the code on your computer. You will need the path so do not place it in a temporary location place it ether in its actual program directory or a place of your own choice. Once you have done that open FlashDevelop again. To your new Flex 3 project. Navigate to tools and drop down to Global Class paths. Place the paths to the code you just download and installed in the dialog window as shown below:</p><div style="clear: right; float: left; width: 450px;" class="IMGClear"><a href="http://i-create.org/step2.png" target="_blank"><img src="http://i-create.org/step2.png" width="320" height="198" border="0"></a></div><p>Step 6: Navigate to the SWC files right click on them and select add to library as shown below:</p><div style="clear: right; float: left; width: 450px;" class="IMGClear"><a href="http://i-create.org/step3.png" target="_blank"><img src="http://i-create.org/step3.png" width="320" height="198" border="0"></a></div><p>Step 7: Once you have done that you need to create your RSSExample.mxml document. To do this right click on your project drop down to add, select the new .MXML file name it RSSExample.mxml. Then right click on the project again add new ActionScript class name it RSSExampleClass.as.</p><div style="clear: right; float: left; width: 450px;" class="IMGClear"><a href="http://i-create.org/step4.png" target="_blank"><img src="http://i-create.org/step4.png" width="320" height="198" border="0"></a></div><p>Step 8: Now Place this code into the RSSExample.mxml file:</p><p>&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;<br />&#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;absolute&#34;&#62;</p><p> &#60;mx:Script source=&#34;RSSExampleClass.as&#34; /&#62;</p><p> &#60;mx:TextArea left=&#34;20&#34; top=&#34;10&#34; bottom=&#34;40&#34; right=&#34;10&#34; id=&#34;outputField&#34;/&#62;<br />&#60;mx:Button label=&#34;Load RSS&#34; right=&#34;10&#34; bottom=&#34;10&#34; click=&#34;onLoadPress()&#34;/&#62;</p><p>&#60;/mx:Application&#62;</p><p>Step 9: Now Place this code into the RSSExampleClass.as file:</p><p><br />import com.adobe.utils.XMLUtil;<br />import com.adobe.xml.syndication.rss.Item20;<br />import com.adobe.xml.syndication.rss.RSS20;</p><p>import flash.events.Event;<br />import flash.events.IOErrorEvent;<br />import flash.events.SecurityErrorEvent;<br />import flash.net.URLLoader;<br />import flash.net.URLRequest;<br />import flash.net.URLRequestMethod;</p><p>private var loader:URLLoader;</p><p>//url of rss 2.0 feed<br />private static const RSS_URL:String = &#34;http://i-create.org/node/feed&#34;;</p><p>//called when user presses the button to load feed<br />private function onLoadPress():void<br />{<br />loader = new URLLoader();</p><p> //request pointing to feed<br />var request:URLRequest = new URLRequest(RSS_URL);<br />request.method = URLRequestMethod.GET;</p><p> //listen for when the data loads<br />loader.addEventListener(Event.COMPLETE, onDataLoad);</p><p> //listen for error events<br />loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);<br />loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);</p><p> //load the feed data<br />loader.load(request);<br />}</p><p>//called once the data has loaded from the feed<br />private function onDataLoad(e:Event):void<br />{<br />//get the raw string data from the feed<br />var rawRSS:String = URLLoader(e.target).data;</p><p> //parse it as RSS<br />parseRSS(rawRSS);</p><p>}</p><p>//parses RSS 2.0 feed and prints out the feed titles into<br />//the text area<br />private function parseRSS(data:String):void<br />{</p><p> //XMLSyndicationLibrary does not validate that the data contains valid<br />//XML, so you need to validate that the data is valid XML.<br />//We use the XMLUtil.isValidXML API from the corelib library.<br />if(!XMLUtil.isValidXML(data))<br />{<br />writeOutput(&#34;Feed does not contain valid XML.&#34;);<br />return;<br />} </p><p> //create RSS20 instance<br />var rss:RSS20 = new RSS20();</p><p> //parse the raw rss data<br />rss.parse(data);</p><p> //get all of the items within the feed<br />var items:Array = rss.items;</p><p> //loop through each item in the feed<br />for each(var item:Item20 in items)<br />{<br />//print out the title of each item<br />writeOutput(item.title);<br />}<br />}</p><p>private function writeOutput(data:String):void<br />{<br />outputField.text += data + &#34;\n&#34;;<br />}</p><p>private function onIOError(e:IOErrorEvent):void<br />{<br />writeOutput(&#34;IOError : &#34; + e.text);<br />}</p><p>private function onSecurityError(e:SecurityErrorEvent):void<br />{<br />writeOutput(&#34;SecurityError : &#34; + e.text);<br />}</p><p>Step 10: Now run a test as show below:</p><div style="clear: right; float: left; width: 450px;" class="IMGClear"><a href="http://i-create.org/step5.png" target="_blank"><img src="http://i-create.org/step5.png" width="320" height="198" border="0"></a></div><p>Step 11: If successful should look like below:</p><div style="clear: right; float: left; width: 450px;" class="IMGClear"><a href="http://i-create.org/final.png" target="_blank"><img src="http://i-create.org/final.png" width="320" height="198" border="0"></a></div><p>Wow now that was cool. Now think about what you can do with that tool their lots of open source libraries to play with so get started. One thing I would like to do is play with the source and see if it could be ported to the <a href="http://www.mono-project.com/Main_Page" target="_blank">Mono platform</a> and make it run on Linux or Windows. Any way hope you had fun. </p>]]></description>
			<content:encoded><![CDATA[<p>What is Flashdevelop and why should I care? <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5mbGFzaGRldmVsb3Aub3JnL2NvbW11bml0eS92aWV3dG9waWMucGhwP3Q9MjM=" target=\"_blank\">FlashDevelop</a> is an <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3N2bjEuY3ZzZHVkZS5jb20vb3NmbGFzaC9mbGFzaGRldmVsb3AvVHJ1bmsvRkQzLw==" target=\"_blank\">opensource</a> integrated development environment (IDE). It was created using C# on the .net 2.0 so it runs on any windows box that has <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5taWNyb3NvZnQuY29tL2Rvd25sb2Fkcy9kZXRhaWxzLmFzcHg/RmFtaWx5SUQ9MDg1NkVBQ0ItNDM2Mi00QjBELThFREQtQUFCMTVDNUUwNEY1JmFtcDtkaXNwbGF5bGFuZz1lbg==" target=\"_blank\">.net 2.0</a> or higher and <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5qYXZhLmNvbQ==" target=\"_blank\">Java 1.6 runtime</a>. .Net 2.0 and Java 1.6 are already on most windows computers. The user also needs to have the <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL29wZW5zb3VyY2UuYWRvYmUuY29tL3dpa2kvZGlzcGxheS9mbGV4c2RrL0Rvd25sb2FkK0ZsZXgrMw==" target=\"_blank\">Flex SDK</a> to install FlashDevelop IDE properly. You can use this IDE to write action script 2/3, flex MXML, and <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2hheGUub3JnLw==" target=\"_blank\">HAXE</a>. You can actually pick from several compilers. It is a wonderful open source program and if in the right hands can be utilized to write ActionScript quickly.</p>
<p>The people of Adobe have all been working hard on improving the features of ActionScript and they have a lots of open source libraries that allow developers to rapidly create highly functioning and quick rich internet applications (RIA). This example is only a beginner example note this is just suposed to be informative and quick. In regards to  use the FlashDevelop IDE and it is based off of <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5taWtlY2hhbWJlcnMuY29tL2Jsb2cvMjAwOC8wMS8yMi9wYXJzaW5nLXJzcy0yMC1mZWVkcy1pbi1hY3Rpb25zY3JpcHQtMy8=" target=\"_blank\">Mike Chambers</a> example.</p>
<p>Step 1: Install the <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5mbGFzaGRldmVsb3Aub3JnL2NvbW11bml0eS92aWV3dG9waWMucGhwP3Q9Mjg5Mw==" target=\"_blank\">FlashDevelop IDE from their site here</a>. Also make sure you follow the <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5mbGFzaGRldmVsb3Aub3JnL2NvbW11bml0eS92aWV3dG9waWMucGhwP3Q9MjU0MCZhbXA7c2lkPWM3MzUxZjc1OGYyNjFlYTUzZWE2ZGE3YzhlZmIzMGUz" target=\"_blank\">requirements</a> found here.</p>
<p>Step 2: install the Flex SDK <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL29wZW5zb3VyY2UuYWRvYmUuY29tL3dpa2kvZGlzcGxheS9mbGV4c2RrL0Rvd25sb2FkK0ZsZXgrMw==" target=\"_blank\">here</a>.</p>
<p>Step 3: Insert the Flex SDK location here by selecting Tools from the drop down then go to Program Settings navigate to the AS3 Context panel and insert your Flex SDK location as shown below (click to enlarge):</p>
<div class="IMGClear" style="clear: right; float: left; width: 100%; width:500px!ie;"><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9zdGFydC5wbmc=" target=\"_blank\"><img src="http://i-create.org/start.png" border="0" alt="" width="320" height="198" /></a></div>
<p>Step 4: Create a new ActionScript 3 Flex 3 project name it and then hit OK as shown below:</p>
<div class="IMGClear" style="clear: right; float: left; width: 100%; width:500px!ie;"><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9yc3MucG5n" target=\"_blank\"><img src="http://i-create.org/rss.png" border="0" alt="" width="320" height="198" /></a></div>
<p>Step 5: Minimize your FlashDevelop IDE. For this you will also have to download and install 2 ActionScript libraries written by the Adobe Developers and located on Google Code here: <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL2FzM2NvcmVsaWIv" target=\"_blank\">CoreLib</a> , <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL2FzM3N5bmRpY2F0aW9ubGliLw==" target=\"_blank\">XMLsyndication</a> Lib. Download the code extract and place the code on your computer. You will need the path so do not place it in a temporary location place it ether in its actual program directory or a place of your own choice. Once you have done that open FlashDevelop again. To your new Flex 3 project. Navigate to tools and drop down to Global Class paths. Place the paths to the code you just download and installed in the dialog window as shown below:</p>
<div class="IMGClear" style="clear: right; float: left; width: 100%; width:500px!ie;"><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9zdGVwMi5wbmc=" target=\"_blank\"><img src="http://i-create.org/step2.png" border="0" alt="" width="320" height="198" /></a></div>
<p>Step 6: Navigate to the SWC files right click on them and select add to library as shown below:</p>
<div class="IMGClear" style="clear: right; float: left; width: 100%; width:500px!ie;"><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9zdGVwMy5wbmc=" target=\"_blank\"><img src="http://i-create.org/step3.png" border="0" alt="" width="320" height="198" /></a></div>
<p>Step 7: Once you have done that you need to create your RSSExample.mxml document. To do this right click on your project drop down to add, select the new .MXML file name it RSSExample.mxml. Then right click on the project again add new ActionScript class name it RSSExampleClass.as.</p>
<div class="IMGClear" style="clear: right; float: left; width: 100%; width:500px!ie;"><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9zdGVwNC5wbmc=" target=\"_blank\"><img src="http://i-create.org/step4.png" border="0" alt="" width="320" height="198" /></a></div>
<p>Step 8: Now Place this code into the RSSExample.mxml file:</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221;&gt;</p>
<p>&lt;mx:Script source=&#8221;RSSExampleClass.as&#8221; /&gt;</p>
<p>&lt;mx:TextArea left=&#8221;20&#8243; top=&#8221;10&#8243; bottom=&#8221;40&#8243; right=&#8221;10&#8243; id=&#8221;outputField&#8221;/&gt;<br />
&lt;mx:Button label=&#8221;Load RSS&#8221; right=&#8221;10&#8243; bottom=&#8221;10&#8243; click=&#8221;onLoadPress()&#8221;/&gt;</p>
<p>&lt;/mx:Application&gt;</p>
<p>Step 9: Now Place this code into the RSSExampleClass.as file:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #006600;">utils</span>.<span style="color: #006600;">XMLUtil</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #0066CC;">xml</span>.<span style="color: #006600;">syndication</span>.<span style="color: #006600;">rss</span>.<span style="color: #006600;">Item20</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #0066CC;">xml</span>.<span style="color: #006600;">syndication</span>.<span style="color: #006600;">rss</span>.<span style="color: #006600;">RSS20</span>;
&nbsp;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">IOErrorEvent</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">SecurityErrorEvent</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLLoader</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLRequest</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLRequestMethod</span>;
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> loader:URLLoader;
&nbsp;
<span style="color: #808080; font-style: italic;">//url of rss 2.0 feed</span>
<span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> const RSS_URL:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;http://i-create.org/node/feed&quot;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//called when user presses the button to load feed</span>
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onLoadPress<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
loader = <span style="color: #000000; font-weight: bold;">new</span> URLLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//request pointing to feed</span>
<span style="color: #000000; font-weight: bold;">var</span> request:URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span>RSS_URL<span style="color: #66cc66;">&#41;</span>;
request.<span style="color: #006600;">method</span> = URLRequestMethod.<span style="color: #0066CC;">GET</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//listen for when the data loads</span>
loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, onDataLoad<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//listen for error events</span>
loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>IOErrorEvent.<span style="color: #006600;">IO_ERROR</span>, onIOError<span style="color: #66cc66;">&#41;</span>;
loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>SecurityErrorEvent.<span style="color: #006600;">SECURITY_ERROR</span>, onSecurityError<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//load the feed data</span>
loader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>request<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">//called once the data has loaded from the feed</span>
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onDataLoad<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
<span style="color: #808080; font-style: italic;">//get the raw string data from the feed</span>
<span style="color: #000000; font-weight: bold;">var</span> rawRSS:<span style="color: #0066CC;">String</span> = URLLoader<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">data</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//parse it as RSS</span>
parseRSS<span style="color: #66cc66;">&#40;</span>rawRSS<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">//parses RSS 2.0 feed and prints out the feed titles into</span>
<span style="color: #808080; font-style: italic;">//the text area</span>
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> parseRSS<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">data</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">//XMLSyndicationLibrary does not validate that the data contains valid</span>
<span style="color: #808080; font-style: italic;">//XML, so you need to validate that the data is valid XML.</span>
<span style="color: #808080; font-style: italic;">//We use the XMLUtil.isValidXML API from the corelib library.</span>
<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>XMLUtil.<span style="color: #006600;">isValidXML</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">data</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
writeOutput<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Feed does not contain valid XML.&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">return</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">//create RSS20 instance</span>
<span style="color: #000000; font-weight: bold;">var</span> rss:RSS20 = <span style="color: #000000; font-weight: bold;">new</span> RSS20<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//parse the raw rss data</span>
rss.<span style="color: #006600;">parse</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">data</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//get all of the items within the feed</span>
<span style="color: #000000; font-weight: bold;">var</span> items:<span style="color: #0066CC;">Array</span> = rss.<span style="color: #006600;">items</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//loop through each item in the feed</span>
<span style="color: #b1b100;">for</span> each<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> item:Item20 <span style="color: #b1b100;">in</span> items<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
<span style="color: #808080; font-style: italic;">//print out the title of each item</span>
writeOutput<span style="color: #66cc66;">&#40;</span>item.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> writeOutput<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">data</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
outputField.<span style="color: #0066CC;">text</span> += <span style="color: #0066CC;">data</span> + <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onIOError<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:IOErrorEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
writeOutput<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;IOError : &quot;</span> + <span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onSecurityError<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:SecurityErrorEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
writeOutput<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;SecurityError : &quot;</span> + <span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Step 10: Now run a test as show below:</p>
<div class="IMGClear" style="clear: right; float: left; width: 100%; width:500px!ie;"><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9zdGVwNS5wbmc=" target=\"_blank\"><img src="http://i-create.org/step5.png" border="0" alt="" width="320" height="198" /></a></div>
<p>Step 11: If successful should look like below:</p>
<div class="IMGClear" style="clear: right; float: left; width: 100%; width:500px!ie;"><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ktY3JlYXRlLm9yZy9maW5hbC5wbmc=" target=\"_blank\"><img src="http://i-create.org/final.png" border="0" alt="" width="320" height="198" /></a></div>
<p>Wow now that was cool. Now think about what you can do with that tool their lots of open source libraries to play with so get started. One thing I would like to do is play with the source and see if it could be ported to the <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5tb25vLXByb2plY3QuY29tL01haW5fUGFnZQ==" target=\"_blank\">Mono platform</a> and make it run on Linux or Windows. Any way hope you had fun.</p>
 <img src="http://i-create.org/wp-content/plugins/feed-statistics.php?view=1&post_id=455" width="1" height="1" style="display: none;" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi-create.org%2F2008%2F04%2F22%2Fflashdevelop_quick_start%2F&amp;linkname=FlashDevelop%20Quick%20Start"><img src="http://i-create.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://i-create.org/2008/04/22/flashdevelop_quick_start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Open Sources Flex!</title>
		<link>http://i-create.org/2007/04/26/adobe_open_sources_flex/</link>
		<comments>http://i-create.org/2007/04/26/adobe_open_sources_flex/#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Brendon Smith</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>Adobe announced today it has plans to make Flex open source.  This will of course help ensure Adobe wins the RIA platform race.  M$ might make silverlight an open source project but I strongly doubt it (they will probably announce how Zunes can now play pac-man).  They have an announcement coming out at MIX.  Adobe already has all the developer tools that integrate well together.  Flex since its release has seen slow adoption.  Now that it is open source it will be sure to be popping up all over the web.   This is great because anyone who has studied or used flex knows it is capable of making extremely intuitive applications that is simply unmatched in any other platform on the web! </p><p><a href="http://labs.adobe.com/wiki/index.php/Flex:Open_Source" target="_blank">Adobe Announces Flex Going Open Source</a><br /><a href="http://ifbin.com/" target="_blank">Open Flex Source Files</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Adobe announced today it has plans to make Flex open source.  This will of course help ensure Adobe wins the RIA platform race.  M$ might make silverlight an open source project but I strongly doubt it (they will probably announce how Zunes can now play pac-man).  They have an announcement coming out at MIX.  Adobe already has all the developer tools that integrate well together.  Flex since its release has seen slow adoption.  Now that it is open source it will be sure to be popping up all over the web.   This is great because anyone who has studied or used flex knows it is capable of making extremely intuitive applications that is simply unmatched in any other platform on the web!</p>
<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2xhYnMuYWRvYmUuY29tL3dpa2kvaW5kZXgucGhwL0ZsZXg6T3Blbl9Tb3VyY2U=" target=\"_blank\">Adobe Announces Flex Going Open Source</a><br />
<a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2lmYmluLmNvbS8=" target=\"_blank\">Open Flex Source Files</a></p>
 <img src="http://i-create.org/wp-content/plugins/feed-statistics.php?view=1&post_id=435" width="1" height="1" style="display: none;" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi-create.org%2F2007%2F04%2F26%2Fadobe_open_sources_flex%2F&amp;linkname=Adobe%20Open%20Sources%20Flex%21"><img src="http://i-create.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://i-create.org/2007/04/26/adobe_open_sources_flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FC64</title>
		<link>http://i-create.org/2006/09/05/fc64/</link>
		<comments>http://i-create.org/2006/09/05/fc64/#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Brendon Smith</dc:creator>
				<category><![CDATA[--Site-of-the-Week--]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p><a href="http://codeazur.com.br/stuff/fc64_final/" target="_blank"><img src="/fc64.jpg" border="0" alt="" width="300" height="185" /></a></p> <p>Why because an <a href="http://osflash.org/fc64" target="_blank">open source commodore 64</a> emulator is way cool (after all it was a <a href="http://www.flashforwardconference.com/finalists" target="_blank">flashforward</a> finalist this year). <a href="http://www.darronschall.com/weblog/" target="_blank">Darron Schall</a> and <a href="http://wahlers.com.br/claus/blog/" target="_blank">Claus Wahlers</a>.out did themselves with this creation that utilizes the flash 9 player and flex 2! I highly recommend <a href="http://codeazur.com.br/stuff/fc64_final/" target="_blank">checking it out</a> after all it is open source so at least you can see what makes it tick! Flex 2 has a great deal to offer developers. The over all strategy for Adobe right now is to enable developers to create highly dynamic applications that are for the most part operating system free. </p> ]]></description>
			<content:encoded><![CDATA[<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2NvZGVhenVyLmNvbS5ici9zdHVmZi9mYzY0X2ZpbmFsLw==" target=\"_blank\"><img src="/fc64.jpg" border="0" alt="" width="300" height="185" /></a></p>
<p>Why because an <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL29zZmxhc2gub3JnL2ZjNjQ=" target=\"_blank\">open source commodore 64</a> emulator is way cool (after all it was a <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5mbGFzaGZvcndhcmRjb25mZXJlbmNlLmNvbS9maW5hbGlzdHM=" target=\"_blank\">flashforward</a> finalist this year). <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5kYXJyb25zY2hhbGwuY29tL3dlYmxvZy8=" target=\"_blank\">Darron Schall</a> and <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3dhaGxlcnMuY29tLmJyL2NsYXVzL2Jsb2cv" target=\"_blank\">Claus Wahlers</a>.out did themselves with this creation that utilizes the flash 9 player and flex 2! I highly recommend <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2NvZGVhenVyLmNvbS5ici9zdHVmZi9mYzY0X2ZpbmFsLw==" target=\"_blank\">checking it out</a> after all it is open source so at least you can see what makes it tick! Flex 2 has a great deal to offer developers. The over all strategy for Adobe right now is to enable developers to create highly dynamic applications that are for the most part operating system free.</p>
<p><!--break--></p>
 <img src="http://i-create.org/wp-content/plugins/feed-statistics.php?view=1&post_id=327" width="1" height="1" style="display: none;" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi-create.org%2F2006%2F09%2F05%2Ffc64%2F&amp;linkname=FC64"><img src="http://i-create.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://i-create.org/2006/09/05/fc64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash &amp; Flex Source Files</title>
		<link>http://i-create.org/2006/08/04/flash__flex_source_files/</link>
		<comments>http://i-create.org/2006/08/04/flash__flex_source_files/#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Brendon Smith</dc:creator>
				<category><![CDATA[--Site-of-the-Week--]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Apollo]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p><a href="http://www.ifbin.com/" target="_blank"><img src="/ifbin.jpg" border="0" alt="" width="350" height="111" /></a></p>  <p>This week site of the week is a tie between <a href="http://www.ifbin.com/" target="_blank">IFBIN</a> and <a href="http://www.mtasc.org/" target="_blank">MTASC</a> (Motion Twin). The <a href="http://www.ifbin.com/" target="_blank">ifBin</a> is an excellent resource for flash developers there is a considerable amount of code to learn from, it also happens to be one of the only areas on the web where you can <a href="http://www.ifbin.com/" target="_blank">download source files for Flex projects</a>. If you are a developer I strongly encourage anyone learning Flex or Flash to dig through the <a href="http://www.ifbin.com/" target="_blank">ifBin</a> and see what you can find. The <a href="http://www.ifbin.com/" target="_blank">ifBin</a> has some pretty neat projects like a FLEX news aggregator that is cool. This site also used to charge a $250 membership fee; now you can receive all the projects for free!! <a href="http://www.mtasc.org/" target="_blank">Motion Twin is an action script library open source compiler</a>. This means you can create .swf by simply writing the code and compiling it. This is great if you know exactly what you want to do and can code it. I am also interested to see if anyone tries to create a gui for it and then it would be great but one thing at a time is fine with me! The bottom line is both of these sites are worth your time so check them out. <a href="/ifbin.html" target="_blank">Click Here for ifbin in aciton? </a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5pZmJpbi5jb20v" target=\"_blank\"><img src="/ifbin.jpg" border="0" alt="" width="350" height="111" /></a></p>
<p>This week site of the week is a tie between <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5pZmJpbi5jb20v" target=\"_blank\">IFBIN</a> and <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5tdGFzYy5vcmcv" target=\"_blank\">MTASC</a> (Motion Twin). The <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5pZmJpbi5jb20v" target=\"_blank\">ifBin</a> is an excellent resource for flash developers there is a considerable amount of code to learn from, it also happens to be one of the only areas on the web where you can <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5pZmJpbi5jb20v" target=\"_blank\">download source files for Flex projects</a>. If you are a developer I strongly encourage anyone learning Flex or Flash to dig through the <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5pZmJpbi5jb20v" target=\"_blank\">ifBin</a> and see what you can find. The <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5pZmJpbi5jb20v" target=\"_blank\">ifBin</a> has some pretty neat projects like a FLEX news aggregator that is cool. This site also used to charge a $250 membership fee; now you can receive all the projects for free!! <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5tdGFzYy5vcmcv" target=\"_blank\">Motion Twin is an action script library open source compiler</a>. This means you can create .swf by simply writing the code and compiling it. This is great if you know exactly what you want to do and can code it. I am also interested to see if anyone tries to create a gui for it and then it would be great but one thing at a time is fine with me! The bottom line is both of these sites are worth your time so check them out. <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=L2lmYmluLmh0bWw=" target=\"_blank\">Click Here for ifbin in aciton? </a></p>
 <img src="http://i-create.org/wp-content/plugins/feed-statistics.php?view=1&post_id=321" width="1" height="1" style="display: none;" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi-create.org%2F2006%2F08%2F04%2Fflash__flex_source_files%2F&amp;linkname=Flash%20%26%23038%3B%20Flex%20Source%20Files"><img src="http://i-create.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://i-create.org/2006/08/04/flash__flex_source_files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developers Workbench</title>
		<link>http://i-create.org/2006/02/21/developers_workbench/</link>
		<comments>http://i-create.org/2006/02/21/developers_workbench/#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p><a href="http://www.eclipse.org" target="_blank"><img src="eclipse.gif" width="163" height="68" border="0"></a></p><p>There are a barrage of tools out there to use for programming one of the most notable being Visual Studio. If you are a developer for web or desktop applications you might want to try some open source tools for a chance. <a href="http://www.eclipse.org" target="_blank">Eclipse</a> has a strong user base with numerous examples and tutorials. One of the great things about Eclipse is its ability to use plugin to expand its framework Eclipse also has a large and ever expanding user base. There has been discussion for some time about the death of Java and Java being so eighties. The fact of the matter is though Java is everywhere. I personally do not believe Java will be disappearing soon. You should also check out <a href="http://developers.sun.com/prodtech/javatools/jscreator/index.jsp" target="_blank">Java Studio Creator</a> and join the Sun Developers Network! Sun also has a plethora of tools for developers out there just waiting to be utilized. So visual studio is not your only option!</p><p>Links <br /><a href="http://www.eclipse.org/org/" target="_blank">Eclipse</a> <br /><a href="https://eclipse-tutorial.dev.java.net/" target="_blank">Eclipse Tutorials</a><br /><a href="http://developers.sun.com/prodtech/javatools/jscreator/index.jsp" target="_blank">Java Studio Creator</a> <br /><a href="http://www.sun.com/software/looking_glass/">Looking Glass Desktop </a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5lY2xpcHNlLm9yZw==" target=\"_blank\"><img src="eclipse.gif" width="163" height="68" border="0"></a></p>
<p>There are a barrage of tools out there to use for programming one of the most notable being Visual Studio. If you are a developer for web or desktop applications you might want to try some open source tools for a chance. <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5lY2xpcHNlLm9yZw==" target=\"_blank\">Eclipse</a> has a strong user base with numerous examples and tutorials. One of the great things about Eclipse is its ability to use plugin to expand its framework Eclipse also has a large and ever expanding user base. There has been discussion for some time about the death of Java and Java being so eighties. The fact of the matter is though Java is everywhere. I personally do not believe Java will be disappearing soon. You should also check out <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2RldmVsb3BlcnMuc3VuLmNvbS9wcm9kdGVjaC9qYXZhdG9vbHMvanNjcmVhdG9yL2luZGV4LmpzcA==" target=\"_blank\">Java Studio Creator</a> and join the Sun Developers Network! Sun also has a plethora of tools for developers out there just waiting to be utilized. So visual studio is not your only option!</p>
<p>Links <br /><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5lY2xpcHNlLm9yZy9vcmcv" target=\"_blank\">Eclipse</a> <br /><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cHM6Ly9lY2xpcHNlLXR1dG9yaWFsLmRldi5qYXZhLm5ldC8=" target=\"_blank\">Eclipse Tutorials</a><br /><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2RldmVsb3BlcnMuc3VuLmNvbS9wcm9kdGVjaC9qYXZhdG9vbHMvanNjcmVhdG9yL2luZGV4LmpzcA==" target=\"_blank\">Java Studio Creator</a> <br /><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5zdW4uY29tL3NvZnR3YXJlL2xvb2tpbmdfZ2xhc3Mv">Looking Glass Desktop </a></p>
<p><!--break--></p>
 <img src="http://i-create.org/wp-content/plugins/feed-statistics.php?view=1&post_id=234" width="1" height="1" style="display: none;" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi-create.org%2F2006%2F02%2F21%2Fdevelopers_workbench%2F&amp;linkname=Developers%20Workbench"><img src="http://i-create.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://i-create.org/2006/02/21/developers_workbench/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
