| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Feb 2004
Posts: 183
|
can someone explain in more detail the advantages/disadvantages of the ByteArray class
http://livedocs.macromedia.com/labs/...ref/index.html if anybody knows thanks everybody |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Jan 2006
Posts: 2
|
As the documentation on flash.util.ByteArray explains, it is for code that deals especially with data in bytes (8 bit), for providing good performance. Regular Array can hold any object, and is designed to be very flexible with size, so it will have a lot of overhead which can be avoided with this. It also provides methods to deal with byte streams that are the result serialized data.
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Feb 2004
Posts: 183
|
hmm thanks for that
but will it be able to recieve bytes from other programs? e.g sending a byte from a c++ application to flash? because that would make be pretty cool |
|
|
|
|
|
#4 | |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
Quote:
http://www.darronschall.com/weblog/archives/000192.cfm |
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Feb 2004
Posts: 183
|
thanks for this im not at my main cpu right now but when i can im sure to download the swf.. sooo what exactly does the swf do? the picture shows notepad so havent really seen a pic but as3 is gonna be right cool
wate is it recieving the bytes from the computer and writing it on the net o.O wow thats pretty cool or is it just a static image of his desktop? AS3 is gonna be like the best just in its gonna be more functional* which i like, its becoming more and more like real* programming languages with its new functionality coming out... i wonder when the will release AS3 for flash? Last edited by bombsledder; 01-13-2006 at 10:46 PM.. |
|
|
|
|
|
#6 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
as3 kicks serious @ss
|
|
|
|
|
|
#7 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
here is a class i wrote to store uints in a bytearray
http://www.lennel.org/xperiments/typ...eArray.as.html it was quite fast. a normal array is still the best. then the bytearray format is also the amf3 format so that what gets sent over via remoting. each class also has its own serializer and deserializer to byte array built in. look at this example here http://www.peterjoel.com/blog/?&show...64012876401732 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using the mx.util.Delegate class within your classes! | madgett | ActionScript 2.0 | 3 | 09-03-2007 12:11 AM |
| Database simulated with arrays on a cd-rom | lecasn5 | Components | 61 | 09-07-2004 12:40 PM |
| Inherited Properties problem with class hierarchy | Johnathon_apple | ActionScript 1.0 (and below) | 5 | 09-17-2003 01:38 AM |
| card game: designing Deck class and good OOP? | pigpen | Gaming and Game Development | 1 | 11-26-2002 12:41 PM |