Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-12-2006, 10:58 PM   #1
bombsledder
Registered User
 
Join Date: Feb 2004
Posts: 183
Default the new ByteArray class?

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
bombsledder is offline   Reply With Quote
Old 01-13-2006, 06:09 AM   #2
haridsv
Registered User
 
Join Date: Jan 2006
Posts: 2
Default

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.
haridsv is offline   Reply With Quote
Old 01-13-2006, 08:33 PM   #3
bombsledder
Registered User
 
Join Date: Feb 2004
Posts: 183
Default

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
bombsledder is offline   Reply With Quote
Old 01-13-2006, 09:03 PM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

Quote:
Originally Posted by bombsledder
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
yes. look at this for an example:
http://www.darronschall.com/weblog/archives/000192.cfm
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 01-13-2006, 10:41 PM   #5
bombsledder
Registered User
 
Join Date: Feb 2004
Posts: 183
Default

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..
bombsledder is offline   Reply With Quote
Old 01-15-2006, 01:23 PM   #6
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

as3 kicks serious @ss
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 03-01-2006, 07:14 AM   #7
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

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
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 10:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.