Flash ByteArray



Hi have an oscilloscope type of thing for my mp3player.. and it all works good apart from when the first cycle of the readFloat always originates from 0,0 and in the first piece of data it draws a little vertical line from 0,0 to first piece of data of 256.
How would I solve this ?
Code:
var spectrum:ByteArray = new ByteArray();
SoundMixer.computeSpectrum(spectrum);
sp.graphics.clear();
sp.graphics.moveTo(spX,spY+20);
for (var i:int = 0; i < 256; i++)
{
 spc = -20 + spectrum.readFloat() * 40;
 sp.graphics.lineStyle(1, 0x0
Tags : Flash ByteArray

Related to : Flash ByteArray
Flash CS3 - problem with audio waveform using ByteArray and graphics (flash 5.5)
Development Tools & Services

Hi everybody!
I'm really stuck in this issue... And I'd like to find out your help!
I found on Adobe site this code to create the waveform in realtime of what is captured by the microphone. And it works really great.
---WORKING CODE----
import flash.media.Microphone;
import flash.events.SampleDataEvent;
import flash.utils.ByteArray;
import flash.display.Graphics;
var nWidth:Number = stage.stageWidth;
var nCenter:Number = stage.stageHeight / 2;
var nScale:Number = 100;
var myGraphics:Graphics = graphics;
var my_mic:Microphone = Microphone.getMicrophone();
my_mic.rate = 10;
my_mic.g
What is C# .Net analog for Flash/Flex flash.utils.ByteArray?
Development Tools & Services

What is the C# .Net analog for Flash/Flex flash.utils.ByteArray?


Convert string representation of ByteArray back to ByteArray :-
Development Tools & Services

Convert string representation of ByteArray back to ByteArray
 
My program saves text files, which contain various text, some of which is a string representation of a ByteArray.
It does this by using the toString() method of the flash.utils.ByteArray class, which I assume converts a ByteArray (for example, 13x$) into its string representation "13x$".
So how do you reverse the process, and turn the string ("13x$") into a ByteArray (13x$)?
Even if it's not that simple, I just need to have the ByteArray, put something in a text file, and extract from it the same ByteArray.

Convert string representation of ByteArray back to ByteArray
Development Tools & Services

In Actionscript 3, my program saves text files, which contain various text, some of which is a string representation of a ByteArray.
It does this by using the toString() method of the flash.utils.ByteArray class, which I assume converts a ByteArray (for example, 13x$) into its string representation "13x$".
So how do you reverse the process, and turn the string ("13x$") into a ByteArray (13x$)?
Even if its not that simple, I just need to have the ByteArray, put something in a text file, and extract from it the same ByteArray.


HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .