Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

What is the most efficient way to write multi-dimensional arrays AS3?

Hey I'm new to Action Script 3 and I was wondering if anyone could way in on what the best method of creating a multi-dimension array was. I've seen different ways of doing it and don't know which one'...
JakeMaccaz's user avatar
0 votes
0 answers
31 views

AS3 Multidimensional array maximum 8 error

Can anyone please help me figure out why I am getting an error when I add a 9th line to this multidimensional array? Thanks! var ColourArray:Array = new Array(); ColourArray[0] = ["0xdc1d28",...
user1549184's user avatar
1 vote
1 answer
79 views

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 ...
Mathias's user avatar
  • 13
1 vote
1 answer
84 views

How to get an array all permutation in Actionscript 3.0?

Suppose I have an array A = [0,1,2]. How do I get the 2 dimensional array perm_A = [[0,1,2],[0,2,1][1,0,2][1,2,0][2,1,0],[2,0,1]? The order of which the permutation appper in perm_A does not matter. ...
aaaaaa's user avatar
  • 95
0 votes
0 answers
35 views

Efficiently navigating arrays and selected strings

I am a noob playing around with actionscript but i feel this question is a basic coding questionMy project is similar to this picture. I have four quadrant areas (Red, blue, yellow, and green) that ...
user2957919's user avatar
1 vote
2 answers
41 views

Can't find my bidimensional array on a movie clip AS3

I'm new on AS3 and I'm having troubles to read a bidimensional array created after reading a xml. Here is the code: var countdowns:Array = new Array; var xmlLoader:URLLoader = new URLLoader(); var ...
BSiri's user avatar
  • 13
0 votes
1 answer
60 views

Inserting Data Into a 2D Array Actionscript 3

Basically I'm trying to insert a number into a 2D array like this: arrayName[X][Y] = 4; but I get an error that says: TypeError: Error #1010: A term is undefined and has no properties. so how do ...
user avatar
0 votes
1 answer
224 views

Doing math with elements of a 2d-array?

So I am making a 2d-array like this: var kcalVerdier:Array = new Array(92,80,103,36,53); var alleNumSteppers:Array = new Array(alleNumSteps.numStepMelk.value,alleNumSteps.numStepEgg.value,...
elektroluse's user avatar
-2 votes
1 answer
550 views

AS3: Get the average out of an array [duplicate]

I'm making an application that will calculate the average grades for students. They have input textfields for each of the subjects they take, where they can insert the grades (going from 1 to 6, where ...
ripsraps's user avatar
0 votes
0 answers
73 views

AS3 Can't access child of multidimensional array

Below is code sample of creating multidimensional tableCardsOfPlayers array with keys of seat names like ("firstSeat", "secondSeat", etc.). And those keys should hold an array of "card1" => Card() ...
kido25's user avatar
  • 29
0 votes
1 answer
160 views

Actionscript, hasOwnProperty() of multidimensional arrays

I'm trying to check wether a key exists in a multidimensional array. The following code is my example: var tiles:Array = new Array( new Array(4), new Array(4), ...
tombayo's user avatar
0 votes
2 answers
198 views

Multidimensional Arrays and one of the fields

There is a multi-d array and I want to reach specific field in it. I have look around it but I was unable to find proper answer to my question. My array is like that; array-md columns-- 0 | 1 | 2 ...
coner's user avatar
  • 270
0 votes
1 answer
33 views

Flash getter method is not able to return a 2D Array

As the title says. I tried it with a String or a normal Array and it works. But when I try to pass on my 2D Array my class won't get anything. We're talking about an Array 16 width and about 50 in ...
Jens M's user avatar
  • 56
0 votes
2 answers
59 views

How can I set/assign an Array in a two dimensional Array

I´d like to describe my probblem in the code: //Master-Array var dependenceArray:Array = new Array(); //Array for IDs var idArray:Array = new Array(1,3,5,6,7); //Array with IDs and dependeces var ...
RefMa77's user avatar
  • 293
0 votes
0 answers
62 views

Moving things inside a two-dimensional array in as3?

I'm trying to create a clone of 2048 for a cs class in as3, and I'm having trouble with moving blocks around. I basically declare a 4x4 array: var tiles:Array = new Array(new Array(4), new Array(4), ...
polarbits's user avatar
  • 307

15 30 50 per page
1
2 3 4 5