wow, at first I was just depressed thinking about having to learn a new language, but now I'm actually excited. I'm thinking being as young as I am if I can master AS 3.0 then I can easily learn C and Java. However I do have one question. What is Flex 2.0? And how does it work with Flash?
"If I have seen further it is by standing on the shoulders of giants." Isaac Newton
------------------------------------------------------------------------------
Built-in Base64 encoder: "public class Base64Encoder". No documentation on this one.
yeah, i am late, but:
Base64Encoder only takes a string as the required argument and encodes it to the B64 alphabet.
although there are already adaptions of the ostermiller implementation flying around, i created my own "simple base64" implementation suited for as3 using ByteArray, because i believe base64 is all about binary and the as-adaptions (by jason nussbaum for as2 and gepatto "emulating it" for as3) are string-only so far.
so i put up my own using ByteArray directly.
there are only 2 public static methods:
Base64.Encode(bytes:ByteArray [, linebreaks:Boolean]):String
Base64.Decode(encoded:String):ByteArray
this will enable one to exchange binary data with a server (like sending a PNG-encoded BitmapData-object), do http-authentication, etc.
wrong forum, i know, but what the heck: i googled and you asked for it
just check out the attachement...
cheers
-sh
Last edited by subHero; 01-02-2006 at 08:33 PM.
Reason: png-encode
there will be an alpha of the next flash released in spring. Owners of Flash8 will be able to try it and give feedback so it can be made an ideal release,just like its done with the flex alpha release now. (This was stated at a conference presentation,so i think its ok to post it here )
If I'm not mistaken, this statement has caused some confusion here:
Originally Posted by tonypa
_x property is now flash.display.DisplayObject.x
For example, hippofungus says:
Originally Posted by hippofungus
I don't think most of us want to type all that stuff just to get an _x or _y.
Yes, it's true that the MovieClip object no longer has an "_x" property. But you don't have to type "all that stuff." What this means is that MovieClip now inherits DisplayObject's "x" property. In other words, it gets all of the public properties (including x and y) that DisplayObject has. So to change a MovieClip's x property, you would type "my_mc.x = 5;", which is one character (the underscore) less than before!
yeah, i am late, but:
Base64Encoder only takes a string as the required argument and encodes it to the B64 alphabet...
I just updated that code to work in cs3 (NOT flex; it should work there too, but the point is it's for cs3). Just about I was done with it, I thought maybe cs3 has now "native" base64? Does anyone know?