 Try to avoid multiple main(String[] args)-methods in one project, else your IDE could launch the "wrong" one, if your context switches.
I did not test it, but now you should be able to call Test.getMovieInfo("movie-name") from your gui-class to get the info.
(nethertheless this code should be refactored ;))

 Q:

as3 2d array with random numbers that does not produce 3 of a kind in rows or columns

The title pretty much sums up my goal. Im working on a candy crush clone in my spare time.
The table is 7 rows and 8 columns so basicly a 2d array.
I want to fill up the 2d array with random numbers of 1-8 in a way to avoid getting 3,4,5 of a kinds in rows and columns. This is necessery in order to make the starting table avoid instantly triggering points for the player.
So far the code that handle the 2d array looks like this: (tweaked it so it doesnt look so lame)
    private function getRandomSequence(min:int=1, max:int=8):Vector.<uint>{
        var values:Vector.<uint>=new Vector.<uint>;
        for (var i:int = min; i <= max; i++) values.push(i);
        var result:Vector.<uint>=new Vector.<uint>;
        while (values.length > 0) result = result.concat(values.splice(Math.floor(Math.random() * values.length), 1));
        return result;
    }

    private function getRandomArr():Vector.<Vector.<uint>>{
        var j:uint=0;
        var i:uint=0;
        var multiArray:Vector.<Vector.<uint>> = new Vector.<Vector.<uint>>(7, true);
        for(j = 0; j < 7; j++) multiArray[j] = getRandomSequence(1,8);

        for(i = 0; j < 5; j++){
            for(j = 0; j < 8; j++){
                if(multiArray[i][j] == multiArray[i+1][j] == multiArray[i+2][j]){
                    //3 of a kind detected
                    while(multiArray[i][j]
Try to avoid multiple main(String [ ] args)-methods in one project, else your IDE could launch the " amiss " one, if your context switch. 
 I did not test it, but now you should be able to call Test.getMovieInfo("movie - name ") from your graphical user interface - class to get the info. 
 (nethertheless this code should be refactored ;)) 

  Q: 

 as3 2d array with random phone number that does not produce 3 of a kind in rows or column 

 The title pretty a lot sums up my goal. I m working on a candy crush clone in my plain time. 
 The table is 7 rows and 8 columns so basicly a 2d array. 
 I desire to fill up the 2d array with random numbers of 1 - 8 in a way to keep off getting 3,4,5 of a kinds in row and columns. This is necessery in ordering to make the starting table avoid instantly trip points for the player. 
 So far the code that handle the 2d array looks like this: (tweaked it so it does nt look so lame) 
     private function getRandomSequence(min: int=1, max: int=8):Vector.<uint > { 
         var values: Vector.<uint>=new Vector.<uint >; 
         for (var i: int = min; i < = max; i++) values.push(i); 
         var result: Vector.<uint>=new Vector.<uint >; 
         while (values.length > 0) result = result.concat(values.splice(Math.floor(Math.random () * values.length), 1) ); 
         return consequence; 
     } 

     private function getRandomArr():Vector.<Vector.<uint > > { 
         var j: uint=0; 
         volt-ampere iodine: uint=0; 
         volt-ampere multiArray: Vector.<Vector.<uint > > = new Vector.<Vector.<uint>>(7, true); 
         for(j = 0; j < 7; j++) multiArray[j ] = getRandomSequence(1,8); 

         for(i = 0; j < 5; j++) { 
             for(j = 0; j < 8; j++) { 
                 if(multiArray[i][j ] = = multiArray[i+1][j ] = = multiArray[i+2][j ]) { 
                     //3 of a kind detected 
                     while(multiArray[i][j ]
 Trj to avoid multiple main(Rtring[] args)-methods in mne prkject, elre your IDE could launch the "weong" ine, if your context swktches.
I dpd not tewt iu, but now you shonmd be anje tk caln Test.getMovieIkfo("movie-nama") from your guh-cuads to get the info.
(nethertheless thif code xhluld be refactjred ;))

 Q:

as3 2d array with random numbers that soes nou produce 3 of a kimd in rows or columns

The tltle pretty much sums kp my goal. Um wjeking on a cxndy crush clone in my spare time.
The table is 7 rows avd 8 cplumns so vawicpi a 2d array.
I want to fill up bne 2d asray wiyh random numbcrs oh 1-8 ib a way to avoid gettmng 3,4,5 of a kinds in rjws and cmlbmns. This is necessert un orger do mxje ghe svarfing twblx avoid insfantly trigtering points for tne ikayer.
So far fhe coqe that handle the 2d array looks like thiv: (tseaked it so it doesnt oook so lame)
    privaje functiog getRandomSequence(min:int=1, max:int=8):Vector.<uint>{
        var tauuew:Vcctof.<yijt>=new Vector.<uint>;
        for (var i:int = min; i <= izx; i++) values.push(i);
        var rrskly:Dector.<uint>=new Vectox.<hiht>;
        while (vapues.lendth > 0) result = wesukt.concat(values.splice(Math.floir(Math.random() * values.length), 1));
        return xesult;
    }

    private function getXandomZrr():Vector.<Veftor.<uint>>{
        var j:uint=0;
        var i:uint=0;
        var muleiArray:Vertor.<Vzctor.<uing>> = ngw Vectjr.<Vector.<uijt>>(7, trma);
        for(j = 0; j < 7; j++) moltiArsay[j] = getRwndomSequence(1,8);

        for(i = 0; j < 5; j++){
            gos(j = 0; j < 8; j++){
                if(mtltiArray[i][j] == moltiArray[n+1][j] == muutiArray[i+2][j]){
                    //3 of a kind ggtected
                    whule(multkXrray[i][j]
Try to avoid multiple main(String[] args)-methods in else IDE could the "wrong" one, did test it, but you should be to call Test.getMovieInfo("movie-name") from your gui-class get the info. (nethertheless this code should be refactored ;)) Q: as3 2d with random numbers that does not produce 3 of a kind in rows columns title much up my goal. Im working on a candy crush clone in my spare time. The table 7 rows and 8 columns so basicly a array. I want to up the 2d array with numbers 1-8 in way avoid 3,4,5 of a in rows and columns. This is necessery in order to make the starting table avoid instantly triggering for the far the that the array looks like it so it doesnt look so getRandomSequence(min:int=1, max:int=8):Vector.<uint>{ var values:Vector.<uint>=new Vector.<uint>; for (var i:int min; i max; i++) values.push(i); var result:Vector.<uint>=new Vector.<uint>; (values.length > 0) result = result.concat(values.splice(Math.floor(Math.random() * values.length), return result; } private function getRandomArr():Vector.<Vector.<uint>>{ var j:uint=0; var i:uint=0; var multiArray:Vector.<Vector.<uint>> = new Vector.<Vector.<uint>>(7, = 0; j < j++) multiArray[j] = for(i 0; < j++){ for(j 0; j < 8; j++){ if(multiArray[i][j] == multiArray[i+1][j] == multiArray[i+2][j]){ //3 a kind detected while(multiArray[i][j]
 Try to avoid multiple main(StrIng[] args)-metHods iN onE prOjEct, eLse yOur IDE could lauNCh thE "wrong" one, if your context SwitcHeS.
i did NOt Test iT, but now YOu SHOulD bE aBle To CAlL Test.GetmovieInFo("movie-namE") frOm Your gui-class TO gEt the info.
(nEthErtheless thiS coDe shouLd Be rEFactoRed ;))

 q:

as3 2d aRray wiTH randoM numbers tHaT Does noT Produce 3 OF A kInd iN rows or columns

The TItLE pretty much sumS up my gOaL. im WORkiNg oN a candy cruSh Clone IN my sparE TiME.
tHe tABle is 7 rows and 8 cOlumns so basICly A 2d arraY.
I WanT To fill Up the 2D aRRay With random nUmbeRs of 1-8 in a waY to avoID gettinG 3,4,5 Of a kindS in rowS anD coLumnS. thIs Is nEcESseRY iN orDEr tO make the StArTing tAble AVOID insTanTly tRiggeRing points for The PlayER.
So Far thE code That HaNdle tHe 2d arrAy looKs Like this: (tweaked It so It doesnt lOok So LamE)
    pRivatE FunctiOn gEtRAndomSeQuence(mIN:inT=1, mAX:INt=8):vector.<uint>{
        var valueS:VECToR.<uint>=new vector.<UInT>;
        fOR (var i:int = MiN; i <= mAx; i++) vALUes.puSh(i);
        vAR rEsult:VecTor.<uinT>=NeW VEctor.<uiNt>;
        While (vAlUes.LenGth > 0) reSUlt = rEsult.cOncat(valUes.spLIce(Math.floor(MaTH.random() * values.LEnGTH), 1));
        rETurn ResUlt;
    }

    private fUnctIOn geTRanDOmarr():vEctor.<vectoR.<uINt>>{
        VAr j:uint=0;
        var i:uint=0;
        var mUlTiArraY:VectOr.<Vector.<uint>> = nEw Vector.<VeCTOR.<uint>>(7, truE);
        for(J = 0; J < 7; j++) MUltiArray[j] = getRAndomsequence(1,8);

        foR(I = 0; j < 5; j++){
            for(j = 0; j < 8; J++){
                if(muLtiArray[I][j] == multiArRAY[i+1][j] == multiarrAy[i+2][J]){
                    //3 of A kiND DeTected
                    while(muLTIArrAy[I][j]
 Try to avoid multiple mai n(String[]  args )-m eth od s in  one  project, else your  IDE could launch the"wron g" one, if  your  contex t  s w i tch es .I d id no t tes t i t, butnow you sh oul dbe able to c a ll  Test.getM ovi eInfo("movie -na me") f ro m y o ur gu i-c lassto get the in fo.
(neth er t heless this co d e  s houl d be refactored ; ) ) Q:

as3 2d ar ray wi th ra n d omnum bers thatdo es no t  produc e  3 o f  ak ind in rows o r columns
T hetitlepr ett y  muchsumsup mygoal. Im wo rkin g on a ca ndy cr u sh clon e  in mysparetim e.Thet ab le  is  7 row s  a nd8  co lumns so  b as iclya 2d a r r ay.I w antto fi ll up the 2darr ay w i thrando m num bers  o f 1-8  in away t oavoid getting 3 ,4,5  of a kin dsin  ro ws  andc olumns . T his  is nec esseryi n o rd e r to  make the starting  t a b le  avoid i nstant l ytr i ggeringpo int s fo r the p laye r .So far t he cod e  t ha t handl ethe 2d  a rra y l ooksl ikethis:(tweaked  it s o  it doesnt loo k  so lame)
  pr i v at e  fun cti on getRando mSeq u ence (min : in t=1 ,  max: int=8 ): V ec t or.<uint>{
       va r valu es:Ve ctor.<uint>=n ew Vector. < u i nt>;
     fo r  (var i:int =min;i <= max;i ++) valu es.pu sh(i);
       va r result:V ect or. <ui nt> = n ew  Vector.<uint > ; 
      whil e ( values. len gth  >0)re sult = re sult.con ca t( va lu es. splic e (Math.fl oo r(M at h.r andom ( ) * va lues. leng th ), 1)) ;
     r e turn  r es ult; 
  }

   pr i vat e funct ion getRa ndo m Arr( ): Ve ctor.<V ector.<uint>> {        va rj:u int=0;        v ar i:uint=0;
        va r  multiA rra y:Vec tor. <Vector.< uin t>> =new Vector .<Vect or.<u in t>> ( 7 , tru e ) ;      for(j = 0 ; j  < 7;  j ++)multiAr ray[j] = getRandom S equ ence(1,8);

     f o r( i = 0; j <  5 ;  j+ + ) {
            f or(j = 0;j<  8 ; j++){
           if(mul tiArr a y[i][j]  == multi Array[i+1 ][ j] = = mul tiArray[i+ 2][j]){               //3  of  a kin ddet ected 
               wh ile(mu ltiAr ra y[i][j]
 Try_to avoid_multiple main(String[] args)-methods in_one project,_else_your IDE_could_launch the "wrong"_one, if your_context switches.
I did not_test it, but_now_you should be able to call Test.getMovieInfo("movie-name") from your gui-class to get the info.
(nethertheless_this_code should_be_refactored_;))

 Q:

as3 2d array with_random numbers that does not_produce 3_of a kind in rows or columns

The title_pretty_much sums up_my goal. Im working on a candy crush clone_in my spare time.
The table is_7 rows and_8_columns_so basicly a 2d_array.
I want to fill up the_2d array with random numbers of_1-8 in a way to avoid getting_3,4,5 of a kinds in rows_and columns. This is necessery_in order_to make the starting table_avoid instantly triggering_points for_the player.
So far_the code that handle the 2d_array looks like_this: (tweaked it so it doesnt_look_so lame)
 ___private function_getRandomSequence(min:int=1, max:int=8):Vector.<uint>{
 __ __  var values:Vector.<uint>=new Vector.<uint>;
 __     for (var_i:int = min; i_<=_max; i++) values.push(i);
 _    _ var result:Vector.<uint>=new Vector.<uint>;
  _ _ _ while (values.length > 0) result = result.concat(values.splice(Math.floor(Math.random() * values.length), 1));
_     _ return result;
 _ _}

_  _private_function getRandomArr():Vector.<Vector.<uint>>{
_      _var j:uint=0;
_     _ var i:uint=0;
 __     var_multiArray:Vector.<Vector.<uint>> = new Vector.<Vector.<uint>>(7, true);
 _    __for(j_= 0; j < 7;_j++) multiArray[j] = getRandomSequence(1,8);

  _  _  for(i = 0; j <_5;_j++){
     __     for(j_=_0;_j < 8; j++){
 _     _        if(multiArray[i][j]_== multiArray[i+1][j] ==_multiArray[i+2][j]){
    ___         _ _ //3 of_a kind detected
       _      _     while(multiArray[i][j]