1 Reply Latest reply on Jun 23, 2007 9:39 AM by Hope1983

# Big Problem with Array. FLash 9 Problem?

Hello there
there must be a lag or ssomething here. i have this code:

// A new dimensional Array, the array is korrekt. The Length and when i ask only one Array ellement is everythin ok
var okeytaslari:Array=new Array();

var d:Number;
var e:Number;
var farbenarray:Array = ["000000","0099FF","FF00FF","FF0000"];
var farbenarray1:Array = ["s","b","g","r"];
var r:Number=0;
for (var farbenn=0;farbenn<4;farbenn++)
{
for(d=0;d<2;d++)
{
for(e=1;e<14;e++)
{
okeytaslari.push({klasse:farbenarray1[farbenn]+"_"+e,farbe:farbenarray[farbenn],zahl:e,in stanzname:"s"+r});
r++
}
}
}
okeytaslari.push({klasse:"j_j",farbe:"FF00FF",zahl:"j",instanzname:"s104"});
okeytaslari.push({klasse:"j_j",farbe:"FF00FF",zahl:"j",instanzname:"s105"});

// here in this array are maximum 15 Numbers in which the highest Number is 105 because of Array okeytaslari.length
var beispieltaslari:Array = [...]

for (q=0; q<beispieltaslari.length; q++)
{
trace(q +","+beispieltaslari
quote:

+","+okeytaslari[beispieltaslari
quote:

].instanzname);
}

//This is the Trace action first Line are the NUmbers in beispieltasri array
// then after 2nd line the outpu is q and beispieltaslari
quote:

and okeytaslari[beispieltaslari
quote:

].instanzname
// if you can see the numbers SHOULD be the same but it isnt all the time. After 60 or something the Number changes

14,7,90,63,68,102,44,91,25,42,89,53,92,52,99

0,14,s14
1,7,s7
2,90,s91
3,63,s63
4,68,s68
5,102,s103
6,44,s44
7,91,s92
8,25,s25
9,42,s42
10,89,s90
11,53,s53
12,92,s93

The numbers i get from my Server dynamikly. But you can see that they come correct and the first array is also correct :S