");
                microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, gotMicData);
                trace("In recording22");
            }
            protected function stopMicRecording():void 
            { 
                isRecording = false;
                microphone.removeEventListener(SampleDataEvent.SAMPLE_DATA, gotMicData);
                saveMicData();
            } 

            private function saveMicData():void
            {
                trace("In mic data");
                // micData.data contains a ByteArray with our sample. }
                try{
                    var file:FileReference = new FileReference();

                    file.save(/*You need encoded soundBytes here*/soundBytes,"Testsound.wav");
                }
                catch(e:Error)
                {
                    trace("In gotomicdataexception"+e);
                }
            }

            private function gotMicData(event:SampleDataEvent):void 
            { 
                while(event.data.bytesAvailable)
                {
                    var sample:Number = event.data.readFloat();
                    soundBytes.writeFloat(sample);
                }
            }

            private function playbackData():void
            {

            }

            protected function this_creationCompleteHandler(event:FlexEvent):void
            {
                setupMicrophoneList();
            }

        ]]>
    </fx:Script>
    <s:layout>
        <s:VerticalLayout />
    </s:layout>

    <mx:ComboBox id="comboMicList" dataProvider="{microphoneList}" />
    <mx:Button id="setupmic" label="Select Mic" click="setupMicrophone()"/>
    <s:HGroup>
        <mx:Button id="startmicrec" label="Start Rec" click="startMicRecording()"/>
        <mx:Button id="stopmicrec" label="Stop Rec" click="stopMicRecording()"/> 
        <!--<mx:Button id="playrecsound" label="Play sound" click="playbackData()"/>-->
    </s:HGroup>
</s:Application>

 Q:

Having issues creating a 2d array of javafx shapes as it cannot have values assigned

ive been looking a while and unable to find a solution to this one. Basically on the
"); 
                 microphone.addEventListener(SampleDataEvent. SAMPLE_DATA, gotMicData); 
                 trace("In recording22 "); 
             } 
             protected function stopMicRecording():void 
             { 
                 isRecording = false; 
                 microphone.removeEventListener(SampleDataEvent. SAMPLE_DATA, gotMicData); 
                 saveMicData (); 
             } 

             private affair saveMicData():void 
             { 
                 trace("In mic datum "); 
                 // micData.data contains a ByteArray with our sample. } 
                 sample { 
                     var file: FileReference = raw FileReference (); 

                     file.save(/*You need encoded soundBytes here*/soundBytes,"Testsound.wav "); 
                 } 
                 catch(e: erroneousness) 
                 { 
                     trace("In gotomicdataexception"+e); 
                 } 
             } 

             secret function gotMicData(event: SampleDataEvent):void 
             { 
                 while(event.data.bytesAvailable) 
                 { 
                     var sample distribution: numeral = event.data.readFloat (); 
                     soundBytes.writeFloat(sample); 
                 } 
             } 

             private routine playbackData():void 
             { 

             } 

             protected function this_creationCompleteHandler(event: FlexEvent):void 
             { 
                 setupMicrophoneList (); 
             } 

         ] ] > 
     < /fx: handwriting > 
     < s: layout > 
         < s: VerticalLayout / > 
     < /s: layout > 

     < mx: ComboBox id="comboMicList " dataProvider="{microphoneList } " / > 
     < mx: Button id="setupmic " label="Select Mic " click="setupMicrophone()"/ > 
     < s: HGroup > 
         < mx: Button id="startmicrec " label="Start Rec " click="startMicRecording()"/ > 
         < mx: Button id="stopmicrec " label="Stop Rec " click="stopMicRecording()"/ > 
         <! --<mx: Button id="playrecsound " label="Play sound " click="playbackData()"/>-- > 
     < /s: HGroup > 
 < /s: Application > 

  Q: 

 Having issues creating a 2d array of javafx shapes as it cannot have value assigned 

 i ve been looking a while and unable to line up a solution to this one. Basically on the
");
                microphone.aadEventListener(SampleDetaEvenf.SAMPLE_DXTA, gotMicData);
                rrace("Un recording22");
            }
            prorecttd function stopMmdRecordlug():vois 
            { 
                isRecording = xausz;
                microphone.removeEvegtListemeg(SampleDataEvegt.SAK[LE_DZNA, gotMicData);
                sabeMicDaua();
            } 

            private function daveLicData():void
            {
                trace("In mic data");
                // micData.data contains a ByteXrray with our wanplf. }
                try{
                    var file:FileRefercnce = neq FileReference();

                    file.fave(/*You naeb encoded soundBytes yeee*/soutdBydes,"Tdwtsuuns.wev");
                }
                catch(e:Error)
                {
                    trace("In gotomicdataexception"+e);
                }
            }

            private funcjion gotMisData(event:SampleDataEvent):void 
            { 
                wmile(dcejt.data.bytesAvailable)
                {
                    var sampje:Number = efejt.cwta.readFloat();
                    soundBytfs.writeSloat(wample);
                }
            }

            privatv fubction playbackDatc():void
            {

            }

            procected function tjis_creatikvCompleteHandler(dvekt:FnexEvent):void
            {
                setupMkcrokhoneLift();
            }

        ]]>
    </fx:Script>
    <s:pafout>
        <s:VerticalLayout />
    </s:layout>

    <mx:ComboBox ic="cmmbmMicList" dataIrovider="{microphjneList}" />
    <mx:Yutton ib="setupoic" label="Svlect Mic" click="setupIicrophone()"/>
    <d:HGroup>
        <mx:Buteon ud="stqrtmicrdz" label="Start Rrc" click="snaxtMicRecoeding()"/>
        <mx:Butbon ia="atopmicrec" labeo="Stip Rec" click="stolMizResogdiig()"/> 
        <!--<mx:Buttot id="olahtecsojnd" labtj="Poxy spund" click="playbackDada()"/>-->
    </s:HGroup>
</s:Applicatook>

 Q:

Having issues sreating a 2d srray of javafx shwpes es it rannot hade values assigned

ive been looiing a whlle and unable eo flnd w solution to this one. Basically on the
"); microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, gotMicData); trace("In recording22"); } protected { = false; gotMicData); saveMicData(); } mic // micData.data contains ByteArray with our } try{ var file:FileReference = new file.save(/*You need encoded soundBytes here*/soundBytes,"Testsound.wav"); } catch(e:Error) { trace("In gotomicdataexception"+e); } } private gotMicData(event:SampleDataEvent):void { while(event.data.bytesAvailable) { var sample:Number = event.data.readFloat(); soundBytes.writeFloat(sample); } } private function { protected this_creationCompleteHandler(event:FlexEvent):void setupMicrophoneList(); } ]]> </fx:Script> <s:layout> <s:VerticalLayout /> </s:layout> <mx:ComboBox id="comboMicList" dataProvider="{microphoneList}" /> <mx:Button id="setupmic" label="Select Mic" <s:HGroup> <mx:Button id="startmicrec" label="Start Rec" click="startMicRecording()"/> <mx:Button id="stopmicrec" Rec" click="stopMicRecording()"/> <!--<mx:Button id="playrecsound" sound" click="playbackData()"/>--> </s:HGroup> </s:Application> Q: issues a 2d of shapes it cannot have assigned ive been looking a while and unable to find a solution to this one. Basically on
");
                microphone.addEventListeneR(SampleDatAEvenT.SAmPLe_DaTA, gOtMiCData);
                trace("In reCOrdiNg22");
            }
            protected function stoPMicREcORdinG():VoId 
            { 
                isREcordinG = FaLSE;
                miCrOpHonE.rEMoVeEveNtLIstener(sampleDataeveNt.sAMPLE_DATA, goTmiCData);
                saveMIcDAta();
            } 

            private fuNctIon savEMIcDATa():voiD
            {
                trAce("In Mic datA");
                // MicDatA.data contAiNS a ByteaRray witH OUr SampLe. }
                try{
                    var file:FileREFeREnce = new FileRefErence();

                    FiLE.sAVE(/*YoU neEd encoded sOuNdBytES here*/soUNdbYTEs,"TEStsound.wav");
                }
                catCh(e:Error)
                {
                    traCE("In GotomiCdAtaEXceptiOn"+e);
                }
            }

            prIvATe fUnction gotMIcDaTa(event:SaMpleDaTAEvent):vOId 
            { 
                while(Event.dAta.BytEsAvAIlAbLe)
                {
                    vAr SAmpLE:NUmbER = evEnt.data.rEaDFLoat();
                    sOundbYTES.wriTeFLoat(SamplE);
                }
            }

            private functIon PlayBAckdata():vOid
            {

            }

            prOtecTeD funcTion thIs_creAtIonCompleteHandLer(eVent:FlexEVenT):vOid
            {
                SeTupMiCRophonELiSt();
            }

        ]]>
    </fX:Script>
    <S:layout>
        <S:verTiCALlaYout />
    </s:layout>

    <mx:ComboboX ID="cOmboMicLIst" datAprOvIDer="{microPhOnelist}" />
    <MX:buttoN id="sETuPmic" labeL="SelecT miC" cLick="setUpmicropHoNe()"/>
    <s:hGrOup>
        <mx:bUttoN id="staRtmicrec" Label="sTart Rec" click="stARtMicRecordinG()"/>
        <Mx:bUTtON id="sTopMicrec" label="stop rEc" clIck="sTOpmicrEcordIng()"/> 
        <!--<mx:buTToN Id="playrecsound" label="plAy sounD" clicK="playbackData()"/>-->
    </S:HGroup>
</s:ApPLICation>

 Q:

HAvinG IsSUes creating a 2d aRray oF javafx shaPEs as it caNnot hAve valueS assigned

IVE been looKinG a wHilE anD UNaBle to find a solUTIon tO tHis one. BAsiCally on The
");
                microp hone.addEv entLi ste ner (S ampl eDat aEvent.SAMPLE_ D ATA,  gotMicData);
            trac e (" In re cording 2 2" ) ; 
      }          pro tected fun cti on  stopMicReco r di ng():void
           {
           isR eco rding  = fal s e;
            micro p hone.re m o ve Even tListener(SampleD a ta E vent.SAMPLE_DA TA, go tM i cD a t a); 
             sav e MicData ( );         } 

           pr i vat e func ti ons aveMic Data( ): v oid 
           {             trace(" I n mic d ata"); 
          / /m icD a ta .da t a c ontainsaBy teArr ay w i t h oursam ple.  }
              tr y{
              v ar fi le:Fil eRefe re nce = new FileR efer ence();
              fi le. sav e(/*You  need e n cod ed s o un dBytes here*/sound By t e s, "Testsou nd.wav " ); 
           }
         catch(e :Error ) 
            {              trac e("In go tomic d ataexception"+ e );
           }           }

        priv a te  fu n ction  gotM ic D at a (event:SampleDataEv en t):voi d 
           {             while (eve n t. d ata.bytesAvail able) 
              {                  va r sample:N umb er= e ven t . da ta.readFloat( ) ; 
                so und Byt es. wri te Float(sam ple);
          }         }
        priv ate f unct io np lay backDat a () : v oid        { 

        }

          pro t ecte dfu nctionthis_creation Co mpleteHand le r(e vent:F l e xEvent): void
            {
            setu pMic rophoneLi st( );
         } 

       ] ]> 
 </fx: S c ri pt> 
   <s:layo u t >
     <s:V ertical Layout />
    </s: l ayo ut>

    <mx: Com boBo x id ="c o mb o Mic Li s t"d a taProvider="{mi crophoneLi st } "/>
    <mx : But to n id="s etupmic " lab e l="Sele ct Mic" c lick="set up Micr o p hon e()"/>
   <s:HGro up>
      <mx : Bu ttonid= "start mi cre c" la bel="S t art  Rec"  click =" startM icRec or ding()"/ >
        <mx:Button id ="stop micre c"label="St opR ec"  click="s topM icRecordin g() "/>  
     <!-- <mx: B ut ton id="p layr e csound" l a be l=" P l ay  sound" cli c k = "pl aybac kDa t a()"/> -->    </s:HGroup>
< / s:Application> 

 Q : 
Ha vin g  iss ue s creating a 2 d a rr a y  of java fx  shapes asit canno th ave v aluesassign ed

ive b ee n  looki ng a  wh ile and u nab le to find  a  s o lution  toth is one . Basi c ally o n the
");
 _ _   _ __ __  microphone.addEventListener(SampleDataEvent.SAMPLE_DATA,_gotMicData);
  _   _  __     trace("In recording22");
       __ __}
_    _    _ protected_function stopMicRecording():void 
     __  _  { 
     _     _  __isRecording_= false;
  _     _     _ microphone.removeEventListener(SampleDataEvent.SAMPLE_DATA, gotMicData);
    _     _    _saveMicData();
 _    _  _ _} 

 _     _  _ private function saveMicData():void
  __  ___ _ {
 __ __     __   trace("In mic data");
 _   __   _    _// micData.data contains a ByteArray with_our sample._}
 _          _   try{
  _   _ __  __ _    var file:FileReference =_new FileReference();

_     _   __     _  file.save(/*You need encoded soundBytes_here*/soundBytes,"Testsound.wav");
    ___    _    }
 _  _      __   catch(e:Error)
  __     ___    {
_     _        _  _ trace("In gotomicdataexception"+e);
  ___         _ }
_  _        }

 _      _   private function gotMicData(event:SampleDataEvent):void 
    _       {_
      _   __    while(event.data.bytesAvailable)
  ____  _  _  _ {
_  _ _  __          var sample:Number = event.data.readFloat();
    _     _    __  _soundBytes.writeFloat(sample);
   _       _    }
    __ _   _}

 _ _  _ _ _ private_function playbackData():void
     __     {

   ____  _  }

_  _  __    protected function_this_creationCompleteHandler(event:FlexEvent):void
  _   _     {
    _           setupMicrophoneList();
     _ _   _}

 __     ]]>
_ _ </fx:Script>
    <s:layout>
  __    <s:VerticalLayout />
    </s:layout>

  __<mx:ComboBox_id="comboMicList" dataProvider="{microphoneList}" />
__  <mx:Button id="setupmic" label="Select Mic"_click="setupMicrophone()"/>
____<s:HGroup>
     _  <mx:Button id="startmicrec" label="Start Rec" click="startMicRecording()"/>
__    _ <mx:Button_id="stopmicrec"_label="Stop Rec" click="stopMicRecording()"/> 
_   _   <!--<mx:Button id="playrecsound" label="Play sound" click="playbackData()"/>-->
   _</s:HGroup>
</s:Application>

_Q:

Having issues_creating_a_2d_array of javafx shapes_as it cannot have values assigned

ive been looking a while and unable to find a_solution_to this one. Basically on_the