<?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>Wed, 01 Sep 2010 12:24:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<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>
	<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-241</link>
		<dc:creator>Chris Black</dc:creator>
		<pubDate>Tue, 01 Sep 2009 15:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-241</guid>
		<description>&lt;em&gt;Keep in mind that Adobe AIR generally does not require a crossdomain file since it uses localhost for all requests.&lt;/em&gt;

A crossdomain file should site at the root of the domain in which you are accessing. You can check out flickrs crossdomain file for an example (http://static.flickr.com/crossdomain.xml).  It is also possible to force Flash to use a specific policy file using      Security.loadPolicyFile(&quot;http://www.example.com/sub/dir/pf.xml&quot;).  More information can be found at: http://livedocs.adobe.com/flex/3/langref/flash/system/Security.html#loadPolicyFile%28%29</description>
		<content:encoded><![CDATA[<p><em>Keep in mind that Adobe AIR generally does not require a crossdomain file since it uses localhost for all requests.</em></p>
<p>A crossdomain file should site at the root of the domain in which you are accessing. You can check out flickrs crossdomain file for an example (<a href="http://static.flickr.com/crossdomain.xml" rel="nofollow">http://static.flickr.com/crossdomain.xml</a>).  It is also possible to force Flash to use a specific policy file using      Security.loadPolicyFile(&#8220;http://www.example.com/sub/dir/pf.xml&#8221;).  More information can be found at: <a href="http://livedocs.adobe.com/flex/3/langref/flash/system/Security.html#loadPolicyFile%28%29" rel="nofollow">http://livedocs.adobe.com/flex/3/langref/flash/system/Security.html#loadPolicyFile%28%29</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: isantos</title>
		<link>http://www.blackcj.com/blog/2008/11/20/post-to-twitpic-from-adobe-air/comment-page-1/#comment-236</link>
		<dc:creator>isantos</dc:creator>
		<pubDate>Thu, 27 Aug 2009 21:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-236</guid>
		<description>hey Chris....
please help me...
i have a crossdomain.xml on my server but isn&#039;t working...
the content of mi xml file is the follow lines:
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;cross-domain-policy&gt;
&lt;site-control permitted-cross-domain-policies=&quot;all&quot;/&gt;
&lt;allow-access-from domain=&quot;*&quot;/&gt;
&lt;allow-access-from domain=&quot;*&quot; secure=&quot;false&quot;/&gt;
&lt;allow-access-from domain=&quot;*&quot; to-ports=&quot;*&quot;/&gt;
&lt;allow-http-request-headers-from domain=&quot;*&quot; headers=&quot;*&quot; secure=&quot;false&quot;/&gt;
&lt;/cross-domain-policy&gt;

where is the error???
please help me..</description>
		<content:encoded><![CDATA[<p>hey Chris&#8230;.<br />
please help me&#8230;<br />
i have a crossdomain.xml on my server but isn&#8217;t working&#8230;<br />
the content of mi xml file is the follow lines:<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />
&lt;cross-domain-policy&gt;<br />
&lt;site-control permitted-cross-domain-policies=&quot;all&quot;/&gt;<br />
&lt;allow-access-from domain=&quot;*&quot;/&gt;<br />
&lt;allow-access-from domain=&quot;*&quot; secure=&quot;false&quot;/&gt;<br />
&lt;allow-access-from domain=&quot;*&quot; to-ports=&quot;*&quot;/&gt;<br />
&lt;allow-http-request-headers-from domain=&quot;*&quot; headers=&quot;*&quot; secure=&quot;false&quot;/&gt;<br />
&lt;/cross-domain-policy&gt;</p>
<p>where is the error???<br />
please help me..</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-210</link>
		<dc:creator>Chris Black</dc:creator>
		<pubDate>Tue, 11 Aug 2009 15:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackcj.com/blog/?p=103#comment-210</guid>
		<description>It doesn&#039;t look like Twitpic has a crossdomain.xml file. You may have to route the call through a PHP script located on your server. By passing the file through PHP you can avoid the cross domain issue. If I have some extra time this week I may be able to throw together a sample PHP file that would do this.</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t look like Twitpic has a crossdomain.xml file. You may have to route the call through a PHP script located on your server. By passing the file through PHP you can avoid the cross domain issue. If I have some extra time this week I may be able to throw together a sample PHP file that would do this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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