WaveSoundBuffer.flags

機能/意味
flag
タイプ
WaveSoundBufferクラスのプロパティ (読み出し専用)
説明
 You can get the object that represents the flag.
 This object has 0 to 15 properties, each representing the value of each flag. Properties can be accessed using the indirect member selection operator (the '[]' operator). You can also set values for these properties. Values range from 0 to 9999 and cannot be less than or greater than this.
 The count property of this object always returns 16.
 This object has a reset method, which will reset all flags to 0.
 If you do not open the media, any values you set for the properties of this object are ignored.
 At first glance, this object looks like an array object, but it is not a so-called TJS array object (an object of the 'Array' class).
 The flags are all reset to 0 by the WaveSoundBuffer.open method.
例:
var buf = new WaveSoundBuffer(window);
(Omitted)
buf.flags.reset(); // Reset all flags to 0
var cnt = buf.flags.count; // cnt contains 16
buf.flags[4] = 34; // Assign 34 to flag 4