I've been able to load binary files in Flash 7 and 8 using a small trick...
I basically wrote a PHP script that reads a file and converts it to a string
in hexadecimal. Flash then loads the string and converts it back to binary
at runtime.

Of course, it only works because the files I'm using are all under 3 kb...
anything bigger would be overkill (since you're doubling the size of the
files you are using).

Anyway, it's still something that's available "now", without having to wait
for AS3 :-)




On 12/27/05, Robert A. Colvin <[EMAIL PROTECTED]> wrote:
>
> Flexbuilder get it at labs.macromedia.com
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Mark
> Ribau
> Sent: Tuesday, December 27, 2005 12:30 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Binary IO ?
>
> How do we use AS3 ?  I currently use Flash 8 Pro.
>
> Tyler Wright wrote:
>
> >Reading yes, in ActionScript 3.0 which is currently in public Alpha and
> >private Beta.  In fact, the new DOM for AS3 offers the same power of
> >streaming in files that the player uses for SWF's.  So you can ask for
> a
> >file, stream in a small portion (whatever you need) close the
> connection,
> >and start up again where you left off when you need more!  This is very
> >exciting for situations that require large amounts of data to be
> transfered,
> >the user doesn't have to wait for the whole thing to be able to benefit
> from
> >it.
> >
> >Writing, not without an additional script or application.  If you embed
> >Flash in a standalone application (exe) it can do the writing for you.
> >Server side all you need is a simple script that Flash sends the binary
> data
> >to that writes it to disk.  For writing Flash forces you to couple with
> >other technologies.
> >
> >Prior to AS3 binary handling has been hard to work with and slow.
> >Everything has to be read into a string and it can get messy with
> >null-terminating characters.  Hope this helps.
> >
> >Tyler
> >
> >
> >On 12/27/05, Mark Ribau <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Is it possible to do either local computer or local website binary
> file
> >>reading and writing in Flash?
> >>--
> >>Mark Ribau
> >>Lead Windows Developer | My Tech Blog
> >><http://www.redbugtech.com/blogs/mark.php>
> >>Redbug Technologies, Inc. <http://www.redbugtech.com> -
> www.redbugtech.com
> >>_______________________________________________
> >>Flashcoders mailing list
> >>[email protected]
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >>
> >>
> >_______________________________________________
> >Flashcoders mailing list
> >[email protected]
> >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
> >
> >
> >
> >
>
>
> --
> Mark Ribau
> Lead Windows Developer | My Tech Blog
> <http://www.redbugtech.com/blogs/mark.php>
> Redbug Technologies, Inc. <http://www.redbugtech.com> -
> www.redbugtech.com
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to