skip to main |
skip to sidebar
ActionScript 3 adds to the Flash player support for working with binary data through use of the ByteArray class (flash.utils.ByteArray). The ByteArray class is a special kind of an array (though is not a subclass of Array (Top level Array)) which holds data (bytes) that relates to data as found in computer memory.
1评论:
import flash.utils.ByteArray;
import flash.sound.SoundMixer;
private var ba:ByteArray = new ByteArray();
SoundMixer.computeSpectrum(ba,false,0);
這是一個簡單的ByteArray類的應用,在SoundMixer輸出數據流時為什麼要用ByteArray,想不明白。
发表评论