<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Post to TwitPic from Adobe AIR</title>
	<atom:link href="http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/</link>
	<description>Cutting edge development with Adobe Flex, ActionScript and AIR</description>
	<lastBuildDate>Thu, 15 Dec 2011 04:06:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Chris Black &#124; blackcj.com: Post to TwitPic from Flash / Flex</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-4856</link>
		<dc:creator>Chris Black &#124; blackcj.com: Post to TwitPic from Flash / Flex</dc:creator>
		<pubDate>Fri, 17 Sep 2010 15:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-4856</guid>
		<description>[...] create a PHP file with the contents above and replace the post URL from my previous example with the path to this [...]</description>
		<content:encoded><![CDATA[<p>[...] create a PHP file with the contents above and replace the post URL from my previous example with the path to this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Black</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-4805</link>
		<dc:creator>Chris Black</dc:creator>
		<pubDate>Thu, 16 Sep 2010 19:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-4805</guid>
		<description>This post is for Adobe AIR which uses localhost. On the web, Flash content requires a crossdomain.xml file for accessing files on another server. TwitPic only allows requests coming from their server. You will need a proxy on your local server in order to get around this. Please see my post on setting up a Twitter proxy:

http://www.blackcj.com/blog/2008/10/04/flexfeed-integrate-twitter-rss-feeds-into-flex/

Setting up a TwitPic proxy would be similar. For more information on policy files please read this article:

http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html</description>
		<content:encoded><![CDATA[<p>This post is for Adobe AIR which uses localhost. On the web, Flash content requires a crossdomain.xml file for accessing files on another server. TwitPic only allows requests coming from their server. You will need a proxy on your local server in order to get around this. Please see my post on setting up a Twitter proxy:</p>
<p><a href="http://www.blackcj.com/blog/2008/10/04/flexfeed-integrate-twitter-rss-feeds-into-flex/" rel="nofollow">http://www.blackcj.com/blog/2008/10/04/flexfeed-integrate-twitter-rss-feeds-into-flex/</a></p>
<p>Setting up a TwitPic proxy would be similar. For more information on policy files please read this article:</p>
<p><a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html" rel="nofollow">http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinicius Oliviera Santos</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-4803</link>
		<dc:creator>Vinicius Oliviera Santos</dc:creator>
		<pubDate>Thu, 16 Sep 2010 19:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-4803</guid>
		<description>My Aplication works in flash ide, but dont work in browser .
Why ?</description>
		<content:encoded><![CDATA[<p>My Aplication works in flash ide, but dont work in browser .<br />
Why ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filipe Cunha</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-3972</link>
		<dc:creator>Filipe Cunha</dc:creator>
		<pubDate>Wed, 01 Sep 2010 12:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-3972</guid>
		<description>It´s alive!!!!!

It´s exactly waht I´m looking for. Thanks so much for your help!</description>
		<content:encoded><![CDATA[<p>It´s alive!!!!!</p>
<p>It´s exactly waht I´m looking for. Thanks so much for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Black</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-3953</link>
		<dc:creator>Chris Black</dc:creator>
		<pubDate>Wed, 01 Sep 2010 04:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-3953</guid>
		<description>Filipe,

Check out my comment to Shammi above. I&#039;ve got another blog post that has source code that should be exactly what you&#039;re looking for. Please feel free to contact me if that post doesn&#039;t answer your question. 

Cheers,

Chris</description>
		<content:encoded><![CDATA[<p>Filipe,</p>
<p>Check out my comment to Shammi above. I&#8217;ve got another blog post that has source code that should be exactly what you&#8217;re looking for. Please feel free to contact me if that post doesn&#8217;t answer your question. </p>
<p>Cheers,</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filipe Cunha</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-3943</link>
		<dc:creator>Filipe Cunha</dc:creator>
		<pubDate>Tue, 31 Aug 2010 23:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-3943</guid>
		<description>Hi Chris,

I´m developing a FlashPlayer app that use TwitPic API, but I need pass MovieClip as&quot;media&quot;. I tried to turn this MovieClip into ByteArray (through BitmapData and JPGEncoder) and pass &quot;media&quot; in URLVariables, but a got this response:



    



Can you help me?

Nice work with this post!!</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>I´m developing a FlashPlayer app that use TwitPic API, but I need pass MovieClip as&#8221;media&#8221;. I tried to turn this MovieClip into ByteArray (through BitmapData and JPGEncoder) and pass &#8220;media&#8221; in URLVariables, but a got this response:</p>
<p>Can you help me?</p>
<p>Nice work with this post!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Black</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-2282</link>
		<dc:creator>Chris Black</dc:creator>
		<pubDate>Mon, 05 Jul 2010 18:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-2282</guid>
		<description>Shammi,

You&#039;ll need to take advantage of the UploadPostHelper class to upload display objects to TwitPic. Luckily I had a blog post already in the works on this topic that I finished up as a response to your question. Please see &lt;a href=&quot;http://www.blackcj.com/blog/2010/07/05/send-display-objects-to-php-as-images/&quot; rel=&quot;nofollow&quot;&gt;http://www.blackcj.com/blog/2010/07/05/send-display-objects-to-php-as-images/&lt;/a&gt; for more details and sample code.

-Chris</description>
		<content:encoded><![CDATA[<p>Shammi,</p>
<p>You&#8217;ll need to take advantage of the UploadPostHelper class to upload display objects to TwitPic. Luckily I had a blog post already in the works on this topic that I finished up as a response to your question. Please see <a href="http://www.blackcj.com/blog/2010/07/05/send-display-objects-to-php-as-images/" rel="nofollow">http://www.blackcj.com/blog/2010/07/05/send-display-objects-to-php-as-images/</a> for more details and sample code.</p>
<p>-Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shammi</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-2269</link>
		<dc:creator>shammi</dc:creator>
		<pubDate>Sun, 04 Jul 2010 19:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-2269</guid>
		<description>hi chris 

in a flash web application how do i make it work
urlVars.username = TWITTER_USERNAME;
urlVars.password = TWITTER_PASSWORD;

urlVars.media = byteArray; // this is a binnaty array of an movieClip
urlVars.message = &quot;New tweet&quot;;
var urlRequest:URLRequest = new URLRequest(&quot;http://twitpic.com/api/uploadAndPost&quot;);
urlRequest.data = urlVars;
urlRequest.method = URLRequestMethod.POST;

// create the image loader &amp; send the image to the server;
var urlLoader : URLLoader = new URLLoader();
//urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
urlLoader.load( urlRequest );

but this doesn&#039;t seem to do anything   i can use filereference for web applications but how to i convert bytearray to filereference.  

Please suggest.</description>
		<content:encoded><![CDATA[<p>hi chris </p>
<p>in a flash web application how do i make it work<br />
urlVars.username = TWITTER_USERNAME;<br />
urlVars.password = TWITTER_PASSWORD;</p>
<p>urlVars.media = byteArray; // this is a binnaty array of an movieClip<br />
urlVars.message = &#8220;New tweet&#8221;;<br />
var urlRequest:URLRequest = new URLRequest(&#8220;http://twitpic.com/api/uploadAndPost&#8221;);<br />
urlRequest.data = urlVars;<br />
urlRequest.method = URLRequestMethod.POST;</p>
<p>// create the image loader &amp; send the image to the server;<br />
var urlLoader : URLLoader = new URLLoader();<br />
//urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;<br />
urlLoader.load( urlRequest );</p>
<p>but this doesn&#8217;t seem to do anything   i can use filereference for web applications but how to i convert bytearray to filereference.  </p>
<p>Please suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Black</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-404</link>
		<dc:creator>Chris Black</dc:creator>
		<pubDate>Thu, 31 Dec 2009 18:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-404</guid>
		<description>If the Flex and PHP are on the same domain you shouldn&#039;t have any cross domain issues regardless of whether your path is relative or absolute. I personally prefer absolute URLs so the SWF can be moved around on the site without breaking the API calls. Relative URLs work for smaller sites that you are confident won&#039;t be changed around much. Just to clarify, if you would like to use this example in Flex on the web you will want to communicate like this: Flex web app - PHP on your server - TwitPic API. You can not currently connect directly to the TwitPic API from a Flex web app because they do not have a policy file. If your running this through Adobe AIR (like in the example above) you can ignore this comment. Cheers.</description>
		<content:encoded><![CDATA[<p>If the Flex and PHP are on the same domain you shouldn&#8217;t have any cross domain issues regardless of whether your path is relative or absolute. I personally prefer absolute URLs so the SWF can be moved around on the site without breaking the API calls. Relative URLs work for smaller sites that you are confident won&#8217;t be changed around much. Just to clarify, if you would like to use this example in Flex on the web you will want to communicate like this: Flex web app &#8211; PHP on your server &#8211; TwitPic API. You can not currently connect directly to the TwitPic API from a Flex web app because they do not have a policy file. If your running this through Adobe AIR (like in the example above) you can ignore this comment. Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: consevenup</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-400</link>
		<dc:creator>consevenup</dc:creator>
		<pubDate>Thu, 31 Dec 2009 12:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-400</guid>
		<description>hello.

you shoud use relative URLs. put your file.php in the root folder of your site (that&#039;s to say, in yourdomain/file.php) and use in flex this url: /file.php

it worked for me.

regards</description>
		<content:encoded><![CDATA[<p>hello.</p>
<p>you shoud use relative URLs. put your file.php in the root folder of your site (that&#8217;s to say, in yourdomain/file.php) and use in flex this url: /file.php</p>
<p>it worked for me.</p>
<p>regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.470 seconds -->

