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

Related to : Flash ByteArray
Flash Should I Use ByteArray or Something Else?
Development Tools & Services
hello everybody
at the current status of my project i must write an application (With AIR or ZINC) who its job is:
1st-getting some files from user
2nd-modify them with an algorithm (encryption or encoding or changing byteArray) to simply corrupt the file and make it impossible for other applications to read the corrupted file!!
3th-saving corrupted file on disk!!
then i must make another application to:
1st- open the corrupted file
2nd- fix it with the reversed algorithm of above "file corrupter application"
3th- read it in normal way
currently the files that needs to be corrupted with my "file corrupt
Flash Convert String to ByteArray
Development Tools & Services
hi, I'm working on a small web project Combines between flash AS3 and php ,the project Depends on three steps...
1- convert bitMapData to byteArray |with JPGEncoder |
2- convert byteArray to String and Send it to php and data Base.
3- receive again the string byteArray from php and convert it again to byteArray.
the problem is STEP3 >> How to convert String to byteArray??
Thank you to anyone who can help me!!!!

convert wav ByteArray to mp3 ByteArray
Development Tools & Services
hi, I know its a true Pain but does anyone know any way to convert wav ByteArray to mp3 ByteArray.Thank you to anyone who can help me!!!!
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
Flash Upload/Save ByteArray (Urgent Please)
Development Tools & Services
Hello all,
I'm tying to upload a file to my server, for a project due by EOP today 0_o... I'm stuck on the ServerSide code though..
I think it's the ASP code that I've got wrong... Has anyone got some examples? I'm sure I've seen some on the Net, but I can't seem to find anything at the moment...
Thanks
Here is my AS3 Code
Code:
var ba:ByteArray = e.currentTarget.data as ByteArray;
var baURLRequest:URLRequest = new URLRequest("http://www.severadd.com/toolkit/app/scripts/saveByteArray.asp");      &nbs
Flash ByteArray
Development Tools & Services
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

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .