?
Solved

Byte Array Action script2 2.0

Posted on 2006-07-24
2
Medium Priority
?
223 Views
Last Modified: 2011-10-03
How can you declare a byte array with Action scripts version 2.0?

cheers

apb2
0
Comment
Question by:apb2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
muxxter earned 2000 total points
ID: 17171996
Hi apb2.

Actionscript doesn't actually have a byte class. It does, however, have a Number and String class. You can use a String object like a character array, almost (like in the various flavours of C). But it isn't as elegant:

my_str.charAt(<index>);

It all depends on what you want to store in each byte. If you're using it as a less memory intensive integer, you're only option is to make an array of Number objects. If you're storing characters, you can use the String class. Or, to stick with the array functionality, you'd have to make an array of Strings. Each one being only one character long. However, if you do it this way, when you try to print out the array, you get a "Object [Array]" statement, instead of the word that it represents.

I hope this helps. :-)
MuXx
0
 
LVL 6

Author Comment

by:apb2
ID: 17182527
Cheers mate
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question