<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>filereference &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/filereference/</link>
	<description>Feed of posts on WordPress.com tagged "filereference"</description>
	<pubDate>Fri, 04 Dec 2009 10:24:56 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[FileReference.download() falla, no descarga el archivo, no hace nada]]></title>
<link>http://codigosdejavo.wordpress.com/2009/09/28/filereference-download-falla-no-descarga-el-archivo-no-hace-nada/</link>
<pubDate>Mon, 28 Sep 2009 21:36:36 +0000</pubDate>
<dc:creator>codigosdejavo</dc:creator>
<guid>http://codigosdejavo.wordpress.com/2009/09/28/filereference-download-falla-no-descarga-el-archivo-no-hace-nada/</guid>
<description><![CDATA[A diferencia de una aplicación Adobe Air, cuando esta se compila en un archivo Flash (SWF), el métod]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>A diferencia de una aplicación Adobe Air, cuando esta se compila en un archivo Flash (SWF), el método Download() de la clase FileReference despliega la ventana para almacenar el archivo pero este no es descargado, simplemente no ocurre nada.</p>
<p>Adobe sabe de este problema y lo postea acá: http://kb2.adobe.com/cps/363/3637d5c3.html</p>
<p><strong>La solución es sencilla:</strong></p>
<p>El método Download falla sólo cuando la clase FileReference es instanciada dentro de una función local. Para solucionar el problema basta con declararla de manera global. Ejemplos:</p>
<p>De esta forma el método Download no hará nada:</p>
<p class="code">
    function downloadFile():void {<br />
        var fileRef:FileReference = new FileReference();                    //FileReference com ámbito local<br />
        fileRef.download(new URLRequest(&#8220;myFile.txt&#8221;), &#8220;myFile.txt&#8221;);<br />
    }
</p>
<p>De esta manera el método Download descargará el archivo y lo almacenará en el directorio elegido por el usuario:</p>
<p class="code">
    private var fileRef:FileReference = new FileReference();                    //FileReference com ámbito global<br />
    function downloadFile():void {<br />
        fileRef.download(new URLRequest(&#8220;myFile.txt&#8221;), &#8220;myFile.txt&#8221;);<br />
    }</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Forçando o download de arquivos no Flash]]></title>
<link>http://fladev.wordpress.com/2009/03/28/forcando-o-download-de-arquivos-no-flash/</link>
<pubDate>Sat, 28 Mar 2009 19:38:53 +0000</pubDate>
<dc:creator>Daniela</dc:creator>
<guid>http://fladev.wordpress.com/2009/03/28/forcando-o-download-de-arquivos-no-flash/</guid>
<description><![CDATA[Quantas vezes já não passamos pela situação onde nosso arquivo era uma imagem, um mp3, um pdf, etc e]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Quantas vezes já não passamos pela situação onde nosso arquivo era uma imagem, um mp3, um pdf, etc e não queríamos que ele abrisse no navegador, mas ao invés disso desejavamos forçar o download?</p>
<p>Não é necessário comprimir o arquivo (gerar um zip, um rar ou qualquer outra coisa) ou forçar pelo php, .net, etc. Você pode usar a  classe <code>FileReference</code>. Todo mundo lembra dessa classe na hora de fazer upload, mas a maioria esquece o método <code>download</code> que abre a caixa de diálogo no navegador para salvar o arquivo. </p>
<p>O código é muito simples:</p>
<pre class="brush: jscript;">// definindo url do arquivo
var fileURL:URLRequest = new URLRequest(
		&quot;http://www.nyan.com.br/ico/feed.png&quot;);

// instancionado objeto file reference
var fileReference:FileReference = new FileReference();

fileReference.download(fileURL);</pre>
<p>Só não esqueça de uma coisa: O Flash Player 10 sofreu várias atualizações de segurança e uma delas está diretamente relacionada à classe <code>FileReference</code>. Não é possivel chamar os métodos <code>download</code> ou <code>browser</code> se não for através de uma interação do usuário (pressionando uma tecla ou clicando com o mouse, por exemplo).</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[fileReference.load()]]></title>
<link>http://nsdevaraj.wordpress.com/2009/03/28/filereferenceload/</link>
<pubDate>Sat, 28 Mar 2009 01:02:35 +0000</pubDate>
<dc:creator>nsdevaraj</dc:creator>
<guid>http://nsdevaraj.wordpress.com/2009/03/28/filereferenceload/</guid>
<description><![CDATA[Today, i faced a weird problem of fileReference.load() not working in AIR. Even, in the latest 3.3 S]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Today, i faced a weird problem of fileReference.load() not working in AIR. Even, in the latest 3.3 SDK. To resolve that, you have to install <a href="http://download.macromedia.com/pub/flex/updaters/3_0_2/win/FB3_Updater.exe">Flex Builder Update</a>. Then, modify your App.xml into air version 1.5. As, to get the benefits of latest AIR Version.</p>
<p>Otherwise, in AIR: Code gets compiled but when we select a file from system, it throws a error.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[12/03/2009]]></title>
<link>http://robertopriz.wordpress.com/2009/03/12/12032009/</link>
<pubDate>Thu, 12 Mar 2009 13:35:31 +0000</pubDate>
<dc:creator>robertopriz</dc:creator>
<guid>http://robertopriz.wordpress.com/2009/03/12/12032009/</guid>
<description><![CDATA[InsideRia -  &#8211; http://www.insideria.com/2009/03/java-collections-for-flex.html InsideRia ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>InsideRia -  &#8211; <a href="http://www.insideria.com/2009/03/java-collections-for-flex.html" target="_blank">http://www.insideria.com/2009/03/java-collections-for-flex.html</a></p>
<p>InsideRia &#8211; animation &#8211; <a href="http://www.insideria.com/2009/03/using-tweener-for-scripted-ani.html" target="_blank">http://www.insideria.com/2009/03/using-tweener-for-scripted-ani.html</a></p>
<p>Mike Chambers &#8211; AIR &#8211; <a href="http://www.mikechambers.com/blog/2009/03/11/monitoring-file-changes-in-adobe-air/" target="_blank">http://www.mikechambers.com/blog/2009/03/11/monitoring-file-changes-in-adobe-air/</a></p>
<p>Ryan Stewart &#8211; Catalyst &#8211; <a href="http://tv.adobe.com/#vi+f1472v1059" target="_self">http://tv.adobe.com/#vi+f1472v105</a>9</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Flex Tutorials and samples]]></title>
<link>http://newflexworld.wordpress.com/2009/02/01/flex-tutorials-and-samples/</link>
<pubDate>Sun, 01 Feb 2009 10:18:06 +0000</pubDate>
<dc:creator>ursprakash</dc:creator>
<guid>http://newflexworld.wordpress.com/2009/02/01/flex-tutorials-and-samples/</guid>
<description><![CDATA[Flex is a highly productive, free open source framework for building and maintaining expressive web ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Flex is a highly productive, free open source framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops, and operating systems -Adobe</p>
<p> </p>
<p><strong><a href="http://gnanz-flexworld.blogspot.com">Adobe Flex</a></strong> is a collection of technologies released by Adobe Systems for the development and deployment of cross platform rich Internet applications based on the proprietary Adobe Flashplatform. The initial release in March 2004 by Macromedia included a software development kit, anIDE, and a J2EE integration application known as Flex Data Services. Since Adobe acquired Macromedia in 2005, subsequent releases of Flex no longer require a license for Flex Data Services, which has become a separate product rebranded as LiveCycle Data Services. -Wikipedia</p>
<p> </p>
<p> </p>
<p>There are many sites providing the tutorials and samples in net.Here is my <a title="Flex Sanples blog" href="http://gnanz-flexworld.blogspot.com" target="_blank">Flex samples blog </a>,</p>
<p> </p>
<p><a title="http://gnanz-flexworld.blogspot.com" href="http://gnanz-flexworld.blogspot.com" target="_blank">http://gnanz-flexworld.blogspot.com</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Upload Multiple Files in Flash CS3]]></title>
<link>http://designz.wordpress.com/2009/01/27/upload-multiple-files-in-flash-cs3/</link>
<pubDate>Tue, 27 Jan 2009 22:36:26 +0000</pubDate>
<dc:creator>desingz</dc:creator>
<guid>http://designz.wordpress.com/2009/01/27/upload-multiple-files-in-flash-cs3/</guid>
<description><![CDATA[In this little tutorial i will show you how we can upload one or more file(s) using the FileReferenc]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In this little tutorial i will show you how we can upload one or more file(s) using the FileReferenceList in Flash CS3.</p>
<p>We will use amfphp to upload the image to a location on our server &#8230; if you do not have amfphp installed, check out my prevouis post &#8230;</p>
<p>We will begin by declaring a new FileReferenceList object &#8230; after that we will set the object to show the browse window to select the files that need to be uploaded.</p>
<p>We also need to listen for the select event , this event is triggerd whenever enter is pressed, or the select button is clicked from the upload component.</p>
<div id="attachment_183" class="wp-caption aligncenter" style="width: 400px"><img class="size-full wp-image-183" title="afbeelding-12" src="http://designz.wordpress.com/files/2009/01/afbeelding-12.png" alt="Creating a new FileReferenceList" width="390" height="56" /><p class="wp-caption-text">Creating a new FileReferenceList</p></div>
<p>Now we specify the upload destination location, hereby i use a php file that uploads the file from the uploadReferenceList to the location specified in the php file (a directory on our amfphp server).</p>
<div id="attachment_184" class="wp-caption aligncenter" style="width: 484px"><img class="size-full wp-image-184" title="afbeelding-5" src="http://designz.wordpress.com/files/2009/01/afbeelding-5.png" alt="Upload Script PHP" width="474" height="105" /><p class="wp-caption-text">Upload Script PHP</p></div>
<p>Now having than that, we now specify the location of this file in Flash.</p>
<div id="attachment_185" class="wp-caption aligncenter" style="width: 473px"><img class="size-full wp-image-185" title="afbeelding-21" src="http://designz.wordpress.com/files/2009/01/afbeelding-21.png" alt="Upload Script Location" width="463" height="71" /><p class="wp-caption-text">Upload Script Location</p></div>
<p>Now , this is what the fileSelectHandler looks like, we will loop through the fileList of the FileReference (so all the files we selected for upload), and push them into a custom function uploadSingleFile&#8230;.</p>
<div id="attachment_186" class="wp-caption aligncenter" style="width: 461px"><img class="size-full wp-image-186" title="afbeelding-3" src="http://designz.wordpress.com/files/2009/01/afbeelding-3.png" alt="Select Handler" width="451" height="71" /><p class="wp-caption-text">Select Handler</p></div>
<p>Here we just upload the file that was passed into the function to the php file on our amfphp server &#8230;</p>
<p>We also add a complete handler , so can trigger an action for the upload complete event.</p>
<div id="attachment_187" class="wp-caption aligncenter" style="width: 406px"><img class="size-full wp-image-187" title="afbeelding-4" src="http://designz.wordpress.com/files/2009/01/afbeelding-4.png" alt="Upload Single File" width="396" height="57" /><p class="wp-caption-text">Upload Single File</p></div>
<div id="attachment_188" class="wp-caption aligncenter" style="width: 324px"><img class="size-full wp-image-188" title="afbeelding-6" src="http://designz.wordpress.com/files/2009/01/afbeelding-6.png" alt="Upload Complete Handler" width="314" height="59" /><p class="wp-caption-text">Upload Complete Handler</p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Preview Image Loader]]></title>
<link>http://nsdevaraj.wordpress.com/2008/11/11/preview-image-loader/</link>
<pubDate>Tue, 11 Nov 2008 13:02:43 +0000</pubDate>
<dc:creator>nsdevaraj</dc:creator>
<guid>http://nsdevaraj.wordpress.com/2008/11/11/preview-image-loader/</guid>
<description><![CDATA[Loading Image from local file system using the power of  Flash Player 10, Filereference.load() Check]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Loading Image from local file system using the power of  Flash Player 10, Filereference.load()<br />
Check the <a href="http://www.geocities.com/maruthi2000/image.html" target="_blank">Demo</a> the link contains the <a href="http://www.geocities.com/maruthi2000/main.mxml.txt" target="_blank">source file</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[FileReference in Flash Player 10]]></title>
<link>http://sujitreddyg.wordpress.com/2008/11/04/filereference-in-flash-player-10/</link>
<pubDate>Tue, 04 Nov 2008 09:27:50 +0000</pubDate>
<dc:creator>Sujit Reddy G</dc:creator>
<guid>http://sujitreddyg.wordpress.com/2008/11/04/filereference-in-flash-player-10/</guid>
<description><![CDATA[In previous versions of Flash Player, when a user selects a file from his machine for uploading, dev]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In previous versions of Flash Player, when a user selects a file from his machine for uploading, developers had to send the file to the server and get it back to access the data in the file selected. In Flash Player 10, developers can access the File data selected by the user without a round trip to the server. This is an amazing enhancement. Adobe Rocks !!!</p>
<p>You can allow users to select a file and do all manipulations on the client (Flash Player) and let your user save it back to his system instead of sending the file to the server and processing it on the server. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>One more change to the FileReference class in Flash Player 10. The FileReference object methods browse, download, and save and the FileReferenceList.browse method will succeed only when called from within an ActionScript function that is the result of a user-initiated action. Find more details at this URL <a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_uia_requirements.html?devcon=f2" target="_blank">http://www.adobe.com/devnet/flashplayer/articles/fplayer10_uia_requirements.html?devcon=f2</a></p>
<p>I created a very simple sample which shows the changes mentioned above.</p>
<p>First you will have to configure your Flex Builder to target to Flash Player 10 and also use the new player APIs. This is very simple. Please follow the steps in this URL <a href="http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta" target="_blank">http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta</a></p>
<p>First lets see how we can load and modify the file on the client.</p>
<p><strong>Loading and saving file</strong></p>
<p>First invoke the FileReference.browse() function and let the user select the file. Once the file selected event is invoked you should invoke FileReference.load() function to load the file into memory. Once loaded, it&#8217;s all yours <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  in the sample I am allowing user to select a file and then loading the same and displaying it in a TextArea.</p>
<p>Download the source code from here <a href="http://sujitreddy.g.googlepages.com/FileRefSample.mxml" target="_blank">http://sujitreddy.g.googlepages.com/FileRefSample.mxml</a></p>
<p>Try sample at this URL <a href="http://www.sujitreddyg.com/samples/filereferencesample/FileRefSample.html" target="_blank">http://www.sujitreddyg.com/samples/filereferencesample/FileRefSample.html</a></p>
<p>Few functions in the source file are explained below.</p>
<p><strong><em>Loading the file</em></strong></p>
<p>In the function below, calling FileReference.browse() will pop up a window for user to select a file.</p>
<p style="padding-left:30px;">private function browseFile():void{</p>
<p style="padding-left:30px;">fileRef = new FileReference();</p>
<p style="padding-left:30px;">fileRef.addEventListener(Event.SELECT, onFileSelected);</p>
<p style="padding-left:30px;">&#8230;&#8230;(more)</p>
<p style="padding-left:30px;">var textTypeFilter:FileFilter = new FileFilter(&#8220;Text Files (*.txt)&#8221;,&#8221;*.txt&#8221;);</p>
<p style="padding-left:30px;">try{</p>
<p style="padding-left:30px;">fileRef.browse([textTypeFilter]);</p>
<p style="padding-left:30px;">}catch(err:Error){logData(err.message);}</p>
<p style="padding-left:30px;">}</p>
<p>Function below will be invoked when the user selects the file. You can see that we are invoking the load() function and are waiting for the load to complete.</p>
<p style="padding-left:30px;">private function onFileSelected(event:Event):void{</p>
<p style="padding-left:30px;">fileRef.addEventListener(ProgressEvent.PROGRESS, onProgress);</p>
<p style="padding-left:30px;">fileRef.addEventListener(Event.COMPLETE, onComplete);</p>
<p style="padding-left:30px;">//this is where we load the file into memory</p>
<p style="padding-left:30px;">fileRef.load();</p>
<p style="padding-left:30px;">}</p>
<p>In the onComplete handler function, you can access the data using the FileReference object&#8217;s data property as shown in the source file attached.</p>
<p><strong><em>Saving the file </em></strong></p>
<p>In the sample we are displaying the data in the file in a TextArea. You can modify the data and then click on the save button. The save button will invoke the function below.</p>
<p style="padding-left:30px;">public function saveFile():void{</p>
<p style="padding-left:30px;">saveFileRef = new FileReference();</p>
<p style="padding-left:30px;">saveFileRef.addEventListener(Event.SELECT, onSaveFileSelected);</p>
<p style="padding-left:30px;">//this will throw a window for user to select the location</p>
<p style="padding-left:30px;">//and file name to save. Second argument is the default name</p>
<p style="padding-left:30px;">saveFileRef.save(fileDataBox.text,fileRef.name);</p>
<p style="padding-left:30px;">}</p>
<p>That&#8217;s all you need to do <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Other change as mentioned above is that you can invoke the browse/upload and other methods as described in the URL above only on user generated events like button click. In the sample I tried invoking a function on creationComplete event to popup a file selection popup using the browse() function. You can see that the call fails as creationComplete is not a user invoked event.</p>
<p>The same function is invoked on click of a button and it works perfectly. Please check attached code.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Flash Player 10 Officially Released]]></title>
<link>http://drawlogic.com/2008/10/15/flash-10-officially-released/</link>
<pubDate>Wed, 15 Oct 2008 14:05:10 +0000</pubDate>
<dc:creator>drawk</dc:creator>
<guid>http://drawlogic.com/2008/10/15/flash-10-officially-released/</guid>
<description><![CDATA[Mike Chambers posted that Flash Player 10 is officially live. This completes your 1-2 punch of RIA/g]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignright" title="Flash X" src="http://i81.photobucket.com/albums/j223/drawkbox/AdobeFlash9.png" alt="" width="128" height="128" /><strong>Mike Chambers posted that <a href="http://www.mikechambers.com/blog/2008/10/14/flash-player-10-release-is-out/" target="_blank">Flash Player 10 is officially live</a>. </strong> This completes your 1-2 punch of RIA/game platform releases of Silverlight and Flash this week.</p>
<div class="main">
<blockquote><p>We have just released the <a href="http://www.adobe.com/go/getflash">shipping version of Flash Player 10</a> (Mac, Windows and Linux). You can find more information on <a href="http://www.adobe.com/products/flashplayer/">all of the new features on the Flash Player product page</a>.</p>
<p>You can download the player for Mac, Windows and Linux players from <a href="http://www.adobe.com/go/getflash">here</a>.</p>
<p>You can grab debug and standalone players from <a href="http://www.adobe.com/support/flashplayer/downloads.html#fp10">here</a>.</p>
<p>You can grab the release notes from <a href="http://www.adobe.com/support/documentation/en/flashplayer/releasenotes.html#p10">here</a>.</p></blockquote>
</div>
<p><strong>Flash Player 10 is great news. </strong> There are so many things in it from a <a href="http://www.mikechambers.com/blog/2008/08/19/using-vectors-in-actionscript-3-and-flash-player-10/" target="_blank">new data structure (Vector)</a>, to <a href="http://drawlogic.com/2008/05/17/amazing-new-feature-for-flash-10/" target="_blank">local FileReference</a>, to <a href="http://aralbalkan.com/1048" target="_blank">Matrix and 3D helpers</a>, to speed improvements and <a href="http://www.kaourantin.net/2007/08/what-just-happened-to-video-on-web_20.html" target="_blank">video enhancements being able to play other video types and more</a> (this was actually in a late version of flash player 9 as well but will be used more here). It does take<a href="http://www.adobe.com/products/player_census/flashplayer/version_penetration.html" target="_blank"> time for flash versions to get out</a> in the wild, about 9 months to where they are in the 90%-95% range where you can convince people to use it in production, but getting those skills now is good.  The scripting platform is still Actionscript 3 so anyone still making Flash Player 8 and AS2 stuff is now two revolutions behind.</p>
<p>Another thing I am looking forward to soon (next week) that is missing from both Flash and Silverlight, is the ability to <a href="http://blogs.unity3d.com/2008/10/04/unity-iphone-publishing-announced/" target="_blank">develop for the iPhone, which Unity3D</a> is dropping the iPhone kit on Oct 22nd. Unity3D has effectively taken Director&#8217;s <a href="http://drawlogic.com/2008/09/12/hardware-of-the-casual-gamer-revisited-from-unity3d-creators/" target="_blank">3d game development</a> (hardware accelerated) market lead away this year and late last year and is a great platform. Director who?</p>
<p>Lots of great tools and platforms to create the innovative new applications, games and markets that are so needed right now. Go create!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Security is No Laughing Matter]]></title>
<link>http://summitprojectsflashblog.wordpress.com/2008/10/14/security-is-no-laughing-matter/</link>
<pubDate>Tue, 14 Oct 2008 22:39:22 +0000</pubDate>
<dc:creator>Dru Kepple</dc:creator>
<guid>http://summitprojectsflashblog.wordpress.com/2008/10/14/security-is-no-laughing-matter/</guid>
<description><![CDATA[First a little background info. Here at Summit, we have three servers for any given client: dev, sta]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>First a little background info.  Here at Summit, we have three servers for any given client: dev, stage, and live.  Dev is where we build and break things.  Stage is a mirror of the live servers in terms of software and setup, and is where we push things from dev when we&#8217;re ready to show the client.  Live is, obviously, the live site.</p>
<p>We have a certain client that is an all-Flash e-commerce site, so obviously it has an SSL certificate.  Up &#8217;til now, we&#8217;ve been fine with a proper cert for live, and self-signed certs for dev and stage.  This has caused some annoyances, like IE and Firefox being overly annoying about warning you when you visit dev to test things.  I mean, all in all I like it that browsers are getting more secure, but when I say it&#8217;s OK to visit a site, I mean it.  But really, it was just an annoyance and not a problem.</p>
<p>Until recently, when this same client had a project that involved file upload.  Now, we thought we were on top of things by opening access and disabling NT Authorization to the upload folder, but it turns out that having a self-signed cert will cause Firefox and Safari to have issues with FileReference.upload(), namely causing onIOErrors.</p>
<p>It was very tricky to track down, because Safari would always upload at least one file, sometimes several, before error-ing (erring?), Firefox would never upload any files, and IE would always upload files, unless we had a batch of files to upload, in which case it seemed to upload 3 files at once and no more (and by &#8220;at once&#8221; I mean one after the other, not all three concurrently, because FileReference don&#8217;t play that game).</p>
<p>Long story short, it took five people banging their heads off of at least five desks for well over 30 person hours before our ColdFusion programmer, Trevor, came up with the self-signed certificate theory.</p>
<p>To test it, we basically removed all vestiges of https from the experience.  This meant removing the redirect on the cfm page, setting upload URL to http, and removing the :443 port number from the URL.  We made sure we were fully on an non-signed site, and viola, it worked like a champ.</p>
<p>The long term solution is to obviously pony up for the actual signed certs, or even a wildcard cert, so that we have a more accurate environment on our dev and stage servers.</p>
<p>So, in short, FileReference + SSL = all sorts of headaches.  Try not to go down that road, but if you must, make sure you have valid certs on every server and that you&#8217;re on top of your authorization.  It definitely helped us to have Brian, our extremely smart IT guru, manage the servers in this process.</p>
<p>Whew.  Time for a margarita.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Manejo y presentación de datos con AS3 - Bases de Datos, XML, Server side scripts, URLLoader, URLVariables]]></title>
<link>http://shiftf12.net/2008/07/14/manejo-y-presentacion-de-datos-con-as3-bases-de-datos-xml-server-side-scripts-urlloader-urlvariables/</link>
<pubDate>Mon, 14 Jul 2008 16:32:26 +0000</pubDate>
<dc:creator>elhector</dc:creator>
<guid>http://shiftf12.net/2008/07/14/manejo-y-presentacion-de-datos-con-as3-bases-de-datos-xml-server-side-scripts-urlloader-urlvariables/</guid>
<description><![CDATA[Ya cuando estamos realizando proyectos en ActionScript de manera constante nos damos cuenta de unos ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ya cuando estamos realizando proyectos en ActionScript de manera constante nos damos cuenta de unos de los problemas más comunes: comunicación. ¿De dónde vamos a sacar los datos a mostrar?. Poner todos los datos DENTRO de Flash usualmente no es buena idea: no es fácil de mantener y sería un sitio demasiado estático. Por eso es necesario que sepamos leer e interpretar fuentes de datos para presentarlos con las bondades de Flash y ActionScript junto con la flexibilidad de XML o una base de datos.</p>
<p style="text-align:center;"><a href="http://interactivemultimedia.wordpress.com/2008/02/07/sample-flash-as3-code-to-help-designers-and-developers-handle-data-and-communication/"><img class="aligncenter" src="http://interactivemultimedia.files.wordpress.com/2008/02/comm_com.jpg?w=450&#038;h=279" alt="" width="450" height="279" /></a> (imagen tomada del <a href="http://interactivemultimedia.wordpress.com/2008/02/07/sample-flash-as3-code-to-help-designers-and-developers-handle-data-and-communication/">post original</a>)</p>
<p><strong><a href="http://interactivemultimedia.wordpress.com/2008/02/07/sample-flash-as3-code-to-help-designers-and-developers-handle-data-and-communication/">Este post</a></strong> de <a href="http://imm.sheridanc.on.ca/">Sheridan Interactive Multimedia</a> es un muy buen recurso para aprender lo básico por 3 razones: ejemplos con código fuente, enfoque a NO programadores, manejo de múltiples fuentes de datos y funciones: XML, navigateToURL, SharedObject, FlashVars, ExternalInterface (para javascript), URLRequest, FileReference, URLLoader, URLVariables, WebServices y serialización de datos. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Además, con la referencia de cómo unir todos estos datos y <a href="http://imm.sheridanc.on.ca/code/components.html"><strong>presentarlos en una interface adecuada.</strong></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Amazing New Feature for Flash 10 - FileReference Runtime Access]]></title>
<link>http://drawlogic.com/2008/05/17/amazing-new-feature-for-flash-10/</link>
<pubDate>Sat, 17 May 2008 19:22:47 +0000</pubDate>
<dc:creator>drawk</dc:creator>
<guid>http://drawlogic.com/2008/05/17/amazing-new-feature-for-flash-10/</guid>
<description><![CDATA[I have been consuming all the great additions to Flash 10 this weekend and one that really jumps out]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have been consuming all the great additions to Flash 10 this weekend and one that really jumps out after you get past the visual, text and sound features (which are spectacular btw and most of what the community was asking for).  But one feature snuck by, this is the one that <a href="http://www.bytearray.org/?p=133" target="_blank">ByteArray (Thibault Imbert) </a>mentions/pointed out for managing files directly within Flash.</p>
<blockquote><p><strong><span style="text-decoration:underline;">File Reference runtime access</span> </strong>— Bring users into the experience by letting them load files into your RIA. <strong>You can work with the content at runtime and even save it back when you are done through the browse dialog box. Files can be accessed as a byteArray or text using a convenient API in ActionScript without round-tripping to the server.</strong> You no longer have to know a server language or have access to a server to load or save files at runtime.</p></blockquote>
<p>This greatly lowers the bar to using Flash as a photo editor, document manager, customized application experiences, marking up content and saving locally, all without the need for server side script.  I am a big fan of server side technologies and develop with them but even for bettering performance this could be huge.</p>
<p>Scenarios where this might be useful is editing applications, note taking (download a book with your notes), editors for docs/games/3d/textures,,, the possibilities are endless really.</p>
<p><strong>Flash 9 just got mainstream and production ready (<a href="http://www.adobe.com/products/player_census/flashplayer/version_penetration.html" target="_blank">flash 9 penetration</a>) at the tail end of last year but there are so many great things in the new version that I hope it comes out very soon. </strong>Flash it turning into quite a platform.</p>
<p><a href="http://blog.alternativaplatform.com/en/2008/05/16/alternativa-3d-flash-player-10-astro/" target="_blank">Alternativa Platform also has updated their engine for Flash 10</a> already (they must have had some inside early accessibility to it) and there are great possibilities here.</p>
<p>It is only beta (Flash 10) but there are great market opportunities to prepare for when this launches.  Keep your eye on where the puck will be, not where it is currently at. I was concerned when Adobe bought Macromedia and the future of Flash but it appears they are taking this bull by the horns.</p>
<p><strong>If you are ready to play with Flash 10 here is <a href="http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta+with+Flex+SDK+3.0.x" target="_blank">Flex </a>and <a href="http://www.flashdevelop.org/community/viewtopic.php?t=3039" target="_blank">FlashDevelop</a> updates to help you get started.</strong></p>
<p>Also here is some code posted at ByteArray from Pleh for testing the new FileReference runtime access, usage is extremely simple and rests on this</p>
<pre>var data:ByteArray = fileRef['data'];
<pre class="brush: jscript;">

/*
  FileReference Load Example By Pleh 17/05/08
*/

package {
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.net.FileReference;
	import flash.net.FileFilter;
	import flash.utils.ByteArray;

	public class Flash10Test extends Sprite
	{
		private var fileRef:FileReference;

		public function Flash10Test()
		{
			fileRef = new FileReference();
			fileRef.addEventListener(Event.SELECT, selectFile);
			fileRef.addEventListener(Event.OPEN, openFile);
			stage.addEventListener(MouseEvent.CLICK,stageClick);
		}

		private function selectFile(e:Event):void {
			fileRef['load']();
		}

		private function openFile(e:Event):void {
			var data:ByteArray = fileRef['data'];
			var loader:Loader = new Loader();
			loader.loadBytes(data);
			addChild(loader);
		}

		private function stageClick(e:Event):void{
			fileRef.browse([new FileFilter(&quot;All Formats (*.jpg,*.gif,*.png,*.swf)&quot;, &quot;*.jpg;*.gif;*.png;*.swf&quot;, &quot;JPEG;jp2_;GIFF;SWFL&quot;)]);
		}

	}
}
</pre>
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Extracting full path while uploading a file to server in Flex]]></title>
<link>http://whatilearned2day.wordpress.com/2008/01/31/extracting-full-path-while-uploading-a-file-to-server-in-flex/</link>
<pubDate>Thu, 31 Jan 2008 12:03:57 +0000</pubDate>
<dc:creator>awmanoj</dc:creator>
<guid>http://whatilearned2day.wordpress.com/2008/01/31/extracting-full-path-while-uploading-a-file-to-server-in-flex/</guid>
<description><![CDATA[In my free prototyping time I decided writing a simple uploader in AIR (what else?). I could create ]]></description>
<content:encoded><![CDATA[In my free prototyping time I decided writing a simple uploader in AIR (what else?). I could create ]]></content:encoded>
</item>
<item>
<title><![CDATA[FileReference Download and Choosing a Good File Name]]></title>
<link>http://summitprojectsflashblog.wordpress.com/2007/12/14/filereference-download-and-choosing-a-good-file-name/</link>
<pubDate>Fri, 14 Dec 2007 22:15:18 +0000</pubDate>
<dc:creator>Dru Kepple</dc:creator>
<guid>http://summitprojectsflashblog.wordpress.com/2007/12/14/filereference-download-and-choosing-a-good-file-name/</guid>
<description><![CDATA[Here&#8217;s another interesting issue: I was implementing a FileReference-driven download feature, ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Here&#8217;s another interesting issue: I was implementing a <a href="http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#38;file=00002204.html" target="_blank">FileReference</a>-driven download feature, and had trouble getting it to work. I noted that the<em> download()</em> method returns false for any number of reasons, according to the documentation. One of them is if the parameters are invalid or of the incorrect type. I had double-checked against this by tracing out the values being sent in (the file URL and the default name to supply in the Save As&#8230; dialog box), and that they were both Strings.</p>
<p>Well, they were both defined and Strings, but it turns out that that an &#8220;incorrect format&#8221; includes otherwise valid Strings that have certain characters in them, in this case a colon. One split(&#8220;:&#8221;).join(&#8220;-&#8221;) later, and I&#8217;m in business.</p>
<p>What this brought up for me was the question as to whether or not it was suitable for the FileReference class to throw errors, preferably detailed errors, or even to just automatically strip out offending characters in that parameter. Errors seem like a no brainer&#8230;I would have saved 10 or 15 minutes if I had seen something like &#8220;The defaultFileName parameter cannot have any of the following characters in it: / \ : * ? &#8221; &#60; &#62; &#124; % Your supplied: [value of defaultFileName]&#8220;</p>
<p>Even better, why not have that sort of information encapsulated into that FileReference black box and just strip &#8216;em out? It would have worked instantly and I wouldn&#8217;t have cared about a missing colon. But I can see why you wouldn&#8217;t want that in all situations. So what&#8217;s the better Object-Oriented behavior?</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
