I have searched everywhere and I can't find useful examples of how to use the 
ByteArray class and the Flex 3 documentation does not include much.

I want to read and FLV file with ByteArray, but I don't know how.

I tried:

private function init():void
    {
    var request:URLRequest = new URLRequest("assets/street.flv");
    var loader:URLLoader = new URLLoader();
   try {
        loader.load(request);
   } catch (error:ArgumentError) {
        trace("An ArgumentError has occurred.");
   } catch (error:SecurityError) {
        trace("A SecurityError has occurred.");
                                }
   loader.addEventListener(Event.COMPLETE, onComplete);
}

private function onComplete(e:Event):void
{
        var byteArr:ByteArray = new ByteArray ();
        byteArr.readByte(); //????
        trace("byteArr "+byteArr);
}

the ByteArray readByte method accept 0 parameters, so what should I do?

Reply via email to