Thank you Astro !

Adobe released on the lab an early beta from Astro (Flash Player 10). This new player comes with some crazy new features like dynamic sound generation, new text engine, 3D, etc.

As you can imagine, there is ONE feature I love :

File Reference runtime access — Bring users into the experience by letting them load files into your RIA. 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. You no longer have to know a server language or have access to a server to load or save files at runtime.

This means no server side trick to save files you have generated within the player. Same for loaded files, you will be able to select a file from you disk and inject it into the player and access it's binary stream.

This results in less bandwidth usage and makes easier a lot of things, especially with AlivePDF.

I am very happy to see that Adobe is listening to the community, just like dynamic sound generation which was requested by Andre and Joa.

I will post in a few days some demos :)

Comments (21)

  1. William from Lagos wrote:

    They sure do listen to the community

    Thursday, May 15, 2008 at 8:17 pm #
  2. ojes wrote:

    how do i can programing to astro?

    Thursday, May 15, 2008 at 8:34 pm #
  3. Hi, I’ve seen a number of comments pop up about new features in flash player 10, but how are you guys compiling to it? Was there some kind of update to the flex SDK that I missed, or did you guys get an advance copy of the new compiler?

    Thursday, May 15, 2008 at 8:34 pm #
  4. Tek wrote:

    I’m pretty impatient to see it works in AlivePDF.

    Even if I’m sure it will be quite simple, do you will provide the sample code needed to save a file form a ByteArray here in the few days ?

    Thursday, May 15, 2008 at 11:03 pm #
  5. Thibault Imbert wrote:

    Hi Gilles,

    Yes, I have a pre-release version of the compiler. We are allowed to talk about the player features, but as the player API is not finished we cannot share the documentation for the moment :(

    Hi Tek,

    The API may change, but I’m gonna try to :)

    Thursday, May 15, 2008 at 11:28 pm #
  6. Tek wrote:

    Gilles it seems you can compile for Flash Player 10 with Flex 3: http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta+with+Flex+SDK+3.0.x

    Friday, May 16, 2008 at 3:15 pm #
  7. tigrounet wrote:

    Et sinon ces vacances ?
    drogué, va !!

    Friday, May 16, 2008 at 4:10 pm #
  8. Bjorn Schultheiss wrote:

    Wow! This is massive…

    Does anyone now how to reference the byteArray from the FileReference object yet?

    Any updated info on the API?

    perhaps Senocular knows…

    Friday, May 16, 2008 at 5:54 pm #
  9. jeanphilippe wrote:

    Bonjour,
    Après avoir testé FP10, j’ai vite réinstallé FP9.
    C’est une catastrophe sur mes sites de visioconférence.
    La video se fige au bout de quelques minutes, le son lague… je suis déçu.
    Mais ce n’est qu’une version beta hein ?

    Saturday, May 17, 2008 at 12:10 pm #
  10. Pleh wrote:

    Finaly, this will make a huge impact on the amount of RIAs that will be created using flash instead of silverlight.

    Saturday, May 17, 2008 at 3:08 pm #
  11. Pleh wrote:

    /*
    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("All Formats (*.jpg,*.gif,*.png,*.swf)", "*.jpg;*.gif;*.png;*.swf", "JPEG;jp2_;GIFF;SWFL")]);
    }

    }
    }

    Saturday, May 17, 2008 at 9:04 pm #
  12. Pleh wrote:

    Here is a quick sample to get you started, just click the stage and select an image, it will be loaded to the stage directly from your hard disk :D

    Saturday, May 17, 2008 at 9:05 pm #
  13. ryan wrote:

    Oh my… I missed this feature in the news and this is just great. Mashups and online games with community could really benefit from this. Also, using flash as an application for wordprocessing, image manipulation, even uploading custom 3d assets. The possibilities are endless…

    Saturday, May 17, 2008 at 9:19 pm #
  14. Thibault Imbert wrote:

    Hi Pleh,

    hehe, nice one ;)
    Easy as 1,2,3. I like this player :)

    Hi ryan,

    Yes, this feature is going to change a lot of things. As you say it, possibilities are endless.

    I was dreaming of this feature for stuff like AlivePDF where I need to access font files, high quality images to embed them in the PDF :)

    From image manipulation (Photoshop express), parsers, etc. It’s going to be great :)

    Sunday, May 18, 2008 at 12:46 am #
  15. Tek wrote:

    Many thanks Pleh for this example.

    Sunday, May 18, 2008 at 12:54 am #
  16. Philippe wrote:

    OMG this works great! I’ve been waiting for that for a long time.

    PS: FlashDevelop is FP10 ready, no hack needed :)
    http://www.flashdevelop.org/community/viewtopic.php?t=3039

    Sunday, May 18, 2008 at 11:27 am #
  17. Savage wrote:

    Hi,

    look at here, iteratif speaks API 3D in ASTRO with the examples, here :
    http://www.iteratif.fr/blog/index.php?post/2008/05/17/Faire-de-la-3D-avec-la-classe-Graphics-dASTRO&pub=1
    fun
    ++

    Sunday, May 18, 2008 at 12:03 pm #
  18. Flo wrote:

    Hi,
    you can find my example for loading and saving a local picture here:
    http://www.video-flash.de/index/flash-player-10-demo-dateien-lokal-laden-und-abspeichern/

    best regards,
    florian

    Sunday, May 18, 2008 at 1:52 pm #
  19. ricko wrote:

    hey Thibault,
    is that a way to pass your hollidays ? You just have to sleep all days on the beach with the sun making your body more attractive and I find you speaking about Flash 10. Just a word to clarify one point : Silverlight 2 by MS do the same thing (capability to save on hard drive without downloading). So is there a chance to have AlivePDF for both solutions ?
    please do not answer me during your hollidays ;)

    sea, sex and surf
    @++

    Monday, May 19, 2008 at 2:50 pm #
  20. Thibault Imbert wrote:

    haha ricko,

    Yes that’s true, but my body is attractive now, aha. So I can talk about Astro :)

    AlivePDF for Silverlight would run perfectly. But raster bitmap drawing support is still missing in SL2, and this could be a problem especially for the addImage method which rasterizes any DisplayObject in JPG or PNG or GIF and embeds the image in the PDF.

    But AlivePDF for Silverlight is definitely possible, only one feature would be missing.

    Maybe you could talk to MS and tell them to add raster bitmap support to SL2 :)

    More infos here :

    http://silverlight.net/forums/t/11236.aspx

    Monday, May 19, 2008 at 8:16 pm #
  21. japdeaway wrote:

    Greetings

    I just wanted to say hi :)

    Monday, April 26, 2010 at 7:10 am #

Trackbacks/Pingbacks (5)

  1. Amazing New Feature for Flash 10 « [ draw.logic ] on Saturday, May 17, 2008 at 9:30 pm

    [...] (which are both spectacular and most of what the community was asking for).  This is the one that ByteArray (Thibault Imbert) mentions/pointed out for managing files directly within Flash. File Reference runtime access — [...]

     
  2. www.video-flash.de on Sunday, May 18, 2008 at 1:51 pm

    Flash Player 10 Demo: Dateien lokal laden und abspeichern…

    Dieses Beispiel zeigt ein neues Feature des Flash Player 10, das unter dem Namen File Reference runtime access in den Release Notes aufgeführt ist. Damit kann ein Nutzer lokale Dateien direkt in eine Flashanwendung laden und auch Dateien lokal abspei…

     
  3. Pleh.co.uk on Monday, May 19, 2008 at 2:05 pm

    FileReference Load Example…

    Flash Player 10 has finaly opened the doors to useful Rich Internet Applications by allowing direct read and write access to the users hard disk, in the past developers have had to upload a file to the server, then download it again before they could a…

     
  4. AlivePDF - AlivePDF and Local File Access/Saving in Astro on Wednesday, May 28, 2008 at 7:09 pm

    [...] is a tiny demo of the new FileReference feature added in [...]

     
  5. [...] However, in the near future, some small tidbits – like being able to load files locally via the new FileReference – will make a hell of a difference in terms of project [...]