MovieClip object not appearing on the stage after passing it to addChild()

Short explanation of my question:
addChild appears 1 time in the code i posted. I essentially pass something to addChild.
Yet i cannot pinpoint where in the code the cause arises of why nothing seems to be added to the stage.
Here’s a version of the code which is more comprehensively formatted than the code pasted below: http://flash.pastebin.com/m471d31c1

More detailed explanation:
Here’s basically what i’m trying to do. The following code which you’ll see are two AS3 classes in seperate flash .as files. Those classes are part of a game which i’m trying to create. The first class is called GameLogic and the second class is called Symbol. The class GameLogic is run as a script in a frame by creating a new object of that class in that framescript.

Ok so the code tries to generate random numbers from 0 to 8. Those random numbers represent types of symbols. When a random number is created and that number is not the same as a previously generated number, then it’s used as an argument to create a new instance of the class Symbol.
Every new instance of the class Symbol is stored in an array. That array is called chosenSymbol[].

The class Symbol also contains a method getSymbolType(), which returns a MovieClip. So when i want to get a MovieClip which is basically a graphic design of a symbol i do this: chosenSymbol[].getSymbolType()
The MovieClips are in the library of flash and i have named them appropriatly(i think) and have checked the checkbox “export for actionscript” in their properties.

So to draw a MovieClip from the library to the stage i do: addChild(chosenSymbol[limitedCounter].getSymbolType());

Then when i try to test the movie in Flash i get no errors in the output window. But no MovieClip on the stage!
So i’ve tried to trace the height and width and name of chosenSymbol[limitedCounter].getSymbolType(), afterall it returns a MovieClip, When i do that i get 0 & 0 for height and width and some name called instance50 as the name. So there’s definitly something wrong, but i can’t seem to figure out what it is. The MovieClips are 92 * 92 pixels and they have names like Square_MC and Ring_MC etc.
I’ve also tried to give the MovieClip’s X and Y values 200 and 200 to make sure they are positioned on the stage, but to no avail.

Can someone see what is wrong in this code? Why doesn’t a MovieClip get shown on the stage?

This is the first class called GameLogic:


package
[COLOR=#000000]{[/COLOR]        [COLOR=#993300]import[/COLOR] flash.[COLOR=#000000]display[/COLOR].[COLOR=#993300]MovieClip[/COLOR];        [COLOR=#993300]import[/COLOR] flash.[COLOR=#000000]events[/COLOR].[COLOR=#000000]MouseEvent[/COLOR];
        
        [COLOR=#993300]public[/COLOR] [COLOR=#993300]class[/COLOR] GameLogic [COLOR=#993300]extends[/COLOR] [COLOR=#993300]MovieClip[/COLOR]
        [COLOR=#000000]{[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] GameLogic[COLOR=#000000]([/COLOR]chooseLevel:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]                [COLOR=#000000]{[/COLOR]
                        [COLOR=#993300]var[/COLOR] [COLOR=#993300]level[/COLOR]:Level = [COLOR=#993300]new[/COLOR] [COLOR=#993300]Level[/COLOR][COLOR=#000000]([/COLOR]chooseLevel[COLOR=#000000])[/COLOR]; [COLOR=#f000f0]*//Create new level object with mandatory level number argument*[/COLOR]
 
                        [COLOR=#993300]var[/COLOR] chosenSymbolNumberArray:[COLOR=#993300]Array[/COLOR] = [COLOR=#993300]new[/COLOR] [COLOR=#993300]Array[/COLOR]; [COLOR=#f000f0]*//Create and array to store all the chosen symbol numbers in. *[/COLOR]
                                                                                           [COLOR=#f000f0]*//Symbol numbers match certain symbol types like a square, ring, leaf, etc. *[/COLOR]
                        [COLOR=#993300]var[/COLOR] chosenSlotNumberArray:[COLOR=#993300]Array[/COLOR] = [COLOR=#993300]new[/COLOR] [COLOR=#993300]Array[/COLOR]; [COLOR=#f000f0]*//Create an array to store the chosen slots in which are to be filled with the chosen symbols.*[/COLOR]
        
                        [COLOR=#993300]var[/COLOR] slotArray:[COLOR=#993300]Array[/COLOR] = [COLOR=#993300]new[/COLOR] [COLOR=#993300]Array[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];                      
                                slotArray[COLOR=#000000][[/COLOR][COLOR=#000000]0[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR][COLOR=#000000]0[/COLOR], [COLOR=#993300]false[/COLOR][COLOR=#000000])[/COLOR];
                                slotArray[COLOR=#000000][[/COLOR][COLOR=#000000]1[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR][COLOR=#000000]1[/COLOR], [COLOR=#993300]false[/COLOR][COLOR=#000000])[/COLOR];
                                slotArray[COLOR=#000000][[/COLOR][COLOR=#000000]2[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR][COLOR=#000000]2[/COLOR], [COLOR=#993300]false[/COLOR][COLOR=#000000])[/COLOR];
                                slotArray[COLOR=#000000][[/COLOR][COLOR=#000000]3[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR][COLOR=#000000]3[/COLOR], [COLOR=#993300]false[/COLOR][COLOR=#000000])[/COLOR];
                                slotArray[COLOR=#000000][[/COLOR][COLOR=#000000]4[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR][COLOR=#000000]4[/COLOR], [COLOR=#993300]false[/COLOR][COLOR=#000000])[/COLOR];
                                slotArray[COLOR=#000000][[/COLOR][COLOR=#000000]5[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR][COLOR=#000000]5[/COLOR], [COLOR=#993300]false[/COLOR][COLOR=#000000])[/COLOR];
                                slotArray[COLOR=#000000][[/COLOR][COLOR=#000000]6[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR][COLOR=#000000]6[/COLOR], [COLOR=#993300]false[/COLOR][COLOR=#000000])[/COLOR];
                                slotArray[COLOR=#000000][[/COLOR][COLOR=#000000]7[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR][COLOR=#000000]7[/COLOR], [COLOR=#993300]false[/COLOR][COLOR=#000000])[/COLOR];
                                slotArray[COLOR=#000000][[/COLOR][COLOR=#000000]8[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR][COLOR=#000000]8[/COLOR], [COLOR=#993300]false[/COLOR][COLOR=#000000])[/COLOR];
        
                        [COLOR=#993300]var[/COLOR] chosenSymbol:[COLOR=#993300]Array[/COLOR] = [COLOR=#993300]new[/COLOR] [COLOR=#993300]Array[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
 
                        [COLOR=#f000f0]*//Set random chosen slots to "true" so that they are receptive for chosen symbols*[/COLOR]
                        [COLOR=#993300]for[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]var[/COLOR] counter_[COLOR=#000000]0001[/COLOR]:[COLOR=#993300]Number[/COLOR]=[COLOR=#000000]0[/COLOR]; counter_[COLOR=#000000]0001[/COLOR] < [COLOR=#993300]level[/COLOR].[COLOR=#000000]getAmountOfSymbols[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]; counter_[COLOR=#000000]0001[/COLOR]++[COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]       
                                [COLOR=#f000f0]*//Choose symbol (randomly)*[/COLOR]
                                chosenSymbolNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]Math[/COLOR].[COLOR=#993300]floor[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]Math[/COLOR].[COLOR=#993300]random[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]*[COLOR=#000000]9[/COLOR][COLOR=#000000])[/COLOR];
                                
                                [COLOR=#f000f0]*//Check if symbol number already exists in chosenSymbolNumberArray*[/COLOR]
                                [COLOR=#993300]for[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]var[/COLOR] i_[COLOR=#000000]0001[/COLOR]:[COLOR=#993300]Number[/COLOR]=[COLOR=#000000]0[/COLOR]; i_[COLOR=#000000]0001[/COLOR]<counter_[COLOR=#000000]0001[/COLOR]; i_[COLOR=#000000]0001[/COLOR]++[COLOR=#000000])[/COLOR]
                                [COLOR=#000000]{[/COLOR]
                                        [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]([/COLOR]counter_[COLOR=#000000]0001[/COLOR] > [COLOR=#000000]0[/COLOR][COLOR=#000000])[/COLOR] && [COLOR=#000000]([/COLOR]chosenSymbolNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR] == chosenSymbolNumberArray[COLOR=#000000][[/COLOR]i_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR]
                                        [COLOR=#000000]{[/COLOR]
                                                chosenSymbolNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]Math[/COLOR].[COLOR=#993300]floor[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]Math[/COLOR].[COLOR=#993300]random[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]*[COLOR=#000000]9[/COLOR][COLOR=#000000])[/COLOR];
                                                i_[COLOR=#000000]0001[/COLOR] = -[COLOR=#000000]1[/COLOR];
                                        [COLOR=#000000]}[/COLOR]
                                [COLOR=#000000]}[/COLOR]
                        
                                [COLOR=#f000f0]*//Create a new symbol in an array using the chosenSymbolNumberArray for the symbolType argument and _symbolType property*[/COLOR]
                                chosenSymbol[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Symbol[COLOR=#000000]([/COLOR]chosenSymbolNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR], [COLOR=#000000]300[/COLOR], [COLOR=#000000]200[/COLOR][COLOR=#000000])[/COLOR];
                                [COLOR=#993300]var[/COLOR] currentChosenSymbol:[COLOR=#993300]Number[/COLOR] = chosenSymbol[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR];
                                [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"chosenSymbol[counter_0001].getSymbolType()"[/COLOR], chosenSymbol[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000000]getSymbolType[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR];
                                [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"height"[/COLOR], chosenSymbol[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]height[/COLOR], [COLOR=#0000ff]"width"[/COLOR], chosenSymbol[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]width[/COLOR], [COLOR=#0000ff]"name"[/COLOR], chosenSymbol[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]name[/COLOR][COLOR=#000000])[/COLOR];
                                
                                [COLOR=#f000f0]*//Choose slot (randomly)*[/COLOR]
                                chosenSlotNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]Math[/COLOR].[COLOR=#993300]floor[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]Math[/COLOR].[COLOR=#993300]random[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]*[COLOR=#000000]9[/COLOR][COLOR=#000000])[/COLOR];
                                
                                [COLOR=#f000f0]*//Check if slot number already exists in chosenSymbolNumberArray*[/COLOR]
                                [COLOR=#993300]for[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]var[/COLOR] i_[COLOR=#000000]0002[/COLOR]:[COLOR=#993300]Number[/COLOR]=[COLOR=#000000]0[/COLOR]; i_[COLOR=#000000]0002[/COLOR]<counter_[COLOR=#000000]0001[/COLOR]; i_[COLOR=#000000]0002[/COLOR]++[COLOR=#000000])[/COLOR]
                                [COLOR=#000000]{[/COLOR]
                                        [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"passed"[/COLOR], i_[COLOR=#000000]0002[/COLOR], chosenSlotNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR], chosenSlotNumberArray[COLOR=#000000][[/COLOR]i_[COLOR=#000000]0002[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR];
                                        [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]([/COLOR]chosenSlotNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR] == chosenSlotNumberArray[COLOR=#000000][[/COLOR]i_[COLOR=#000000]0002[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR]
                                        [COLOR=#000000]{[/COLOR]
                                                chosenSlotNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#993300]Math[/COLOR].[COLOR=#993300]floor[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]Math[/COLOR].[COLOR=#993300]random[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]*[COLOR=#000000]9[/COLOR][COLOR=#000000])[/COLOR];
                                                [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"regenerate"[/COLOR], chosenSlotNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR], chosenSlotNumberArray[COLOR=#000000][[/COLOR]i_[COLOR=#000000]0002[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR];
                                                i_[COLOR=#000000]0002[/COLOR] = -[COLOR=#000000]1[/COLOR]; [COLOR=#f000f0]*//reset counter to -1, so that at the next increment it starts from 0 again. *[/COLOR]
                                        [COLOR=#000000]}[/COLOR]
                                [COLOR=#000000]}[/COLOR]
                                
                                [COLOR=#f000f0]*//Put the current chosen slot number in a variable to be able to pass it lateron as an argument*[/COLOR]
                                [COLOR=#993300]var[/COLOR] newChosenSlot:[COLOR=#993300]Number[/COLOR] = chosenSlotNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR]; 
                                
                                [COLOR=#f000f0]*//There is an array of slots called slotArray which contains Slot objects which have their containsSymbol argument and property set to false.*[/COLOR]
                                [COLOR=#f000f0]*//This line of code overwrites the slotArrays of the chosen slots with a Slot object which has it's containsSymbol argument and property set to true.*[/COLOR]
                                [COLOR=#f000f0]*//These particular uniquely chosen slots will receive a uniquely chosen symbol*[/COLOR]
                                slotArray[COLOR=#000000][[/COLOR]newChosenSlot[COLOR=#000000]][/COLOR] = [COLOR=#993300]new[/COLOR] Slot[COLOR=#000000]([/COLOR]newChosenSlot, [COLOR=#993300]true[/COLOR], currentChosenSymbol[COLOR=#000000])[/COLOR];
                                
                                [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR]chosenSlotNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0001[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        
                        [COLOR=#993300]for[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]var[/COLOR] counter_[COLOR=#000000]0002[/COLOR]:[COLOR=#993300]Number[/COLOR]=[COLOR=#000000]0[/COLOR]; counter_[COLOR=#000000]0002[/COLOR] <= [COLOR=#000000]8[/COLOR]; counter_[COLOR=#000000]0002[/COLOR]++[COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]                                       
                                [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"chosenSymbolNumberArray"[/COLOR], chosenSymbolNumberArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0002[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR];                                
                        [COLOR=#000000]}[/COLOR]
                        
                        
                        
                        [COLOR=#993300]var[/COLOR] limitedCounter:[COLOR=#993300]Number[/COLOR] = [COLOR=#000000]0[/COLOR]; [COLOR=#f000f0]*//Use a different counter for the chosenSymbol[] array in the following loop, *[/COLOR]
                        [COLOR=#f000f0]*//otherwise when counter_0003 would have been used, *[/COLOR]
                        [COLOR=#f000f0]*//then it couldn't return properties or call methods for counter_0003 array indexes which were not defined beyond the chosenSymbol array index level.getAmountOfSymbols().                        *[/COLOR]
                        [COLOR=#993300]for[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]var[/COLOR] counter_[COLOR=#000000]0003[/COLOR]:[COLOR=#993300]Number[/COLOR]=[COLOR=#000000]0[/COLOR]; counter_[COLOR=#000000]0003[/COLOR] <= [COLOR=#000000]8[/COLOR]; counter_[COLOR=#000000]0003[/COLOR]++[COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]       
                                
                                [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR]slotArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0003[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000000]getContainsSymbol[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR];
                                [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]slotArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0003[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000000]getContainsSymbol[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] == [COLOR=#993300]true[/COLOR][COLOR=#000000])[/COLOR]
                                [COLOR=#000000]{[/COLOR]       
                                        [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"ping"[/COLOR][COLOR=#000000])[/COLOR];
                                        [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"slotArray:"[/COLOR], counter_[COLOR=#000000]0003[/COLOR], [COLOR=#0000ff]"_symbolType ="[/COLOR], chosenSymbol[COLOR=#000000][[/COLOR]limitedCounter[COLOR=#000000]][/COLOR].[COLOR=#000000]getSymbolType[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR]; 
                                        chosenSymbol[COLOR=#000000][[/COLOR]limitedCounter[COLOR=#000000]][/COLOR].[COLOR=#000000]x[/COLOR] = slotArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0003[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000000]getXPos[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                                        chosenSymbol[COLOR=#000000][[/COLOR]limitedCounter[COLOR=#000000]][/COLOR].[COLOR=#000000]y[/COLOR] = slotArray[COLOR=#000000][[/COLOR]counter_[COLOR=#000000]0003[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000000]getYPos[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                                        chosenSymbol[COLOR=#000000][[/COLOR]limitedCounter[COLOR=#000000]][/COLOR].[COLOR=#993300]height[/COLOR] = [COLOR=#000000]100[/COLOR];
                                        chosenSymbol[COLOR=#000000][[/COLOR]limitedCounter[COLOR=#000000]][/COLOR].[COLOR=#993300]width[/COLOR] = [COLOR=#000000]100[/COLOR];
                                        addChild[COLOR=#000000]([/COLOR]chosenSymbol[COLOR=#000000][[/COLOR]limitedCounter[COLOR=#000000]][/COLOR].[COLOR=#000000]getSymbolType[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR];
                                        
                                        [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"height"[/COLOR], chosenSymbol[COLOR=#000000][[/COLOR]limitedCounter[COLOR=#000000]][/COLOR].[COLOR=#993300]height[/COLOR], [COLOR=#0000ff]"width"[/COLOR], chosenSymbol[COLOR=#000000][[/COLOR]limitedCounter[COLOR=#000000]][/COLOR].[COLOR=#993300]width[/COLOR], [COLOR=#0000ff]"name"[/COLOR], chosenSymbol[COLOR=#000000][[/COLOR]limitedCounter[COLOR=#000000]][/COLOR].[COLOR=#993300]name[/COLOR][COLOR=#000000])[/COLOR];
                                        
                                        
                                        [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]limitedCounter < [COLOR=#993300]level[/COLOR].[COLOR=#000000]getAmountOfSymbols[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR]
                                        [COLOR=#000000]{[/COLOR]
                                                limitedCounter++;
                                        [COLOR=#000000]}[/COLOR]
                                [COLOR=#000000]}[/COLOR]
                                
                        [COLOR=#000000]}[/COLOR]
                        
                        
                [COLOR=#000000]}[/COLOR]
        [COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]

Here is the code for the Symbol class:


package
[COLOR=#000000]{[/COLOR]
        [COLOR=#993300]import[/COLOR] flash.[COLOR=#000000]display[/COLOR].[COLOR=#993300]MovieClip[/COLOR];        [COLOR=#993300]import[/COLOR] flash.[COLOR=#000000]events[/COLOR].[COLOR=#000000]MouseEvent[/COLOR];
        
        [COLOR=#993300]public[/COLOR] [COLOR=#993300]class[/COLOR] Symbol [COLOR=#993300]extends[/COLOR] [COLOR=#993300]MovieClip[/COLOR]
        [COLOR=#000000]{[/COLOR]       
                [COLOR=#f000f0]*//Properties *[/COLOR]
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]var[/COLOR] _symbolTypeNumber:[COLOR=#993300]Number[/COLOR]; [COLOR=#f000f0]*//Can be a number between 0 and 8, indicating whether the symbol is a square or circel or leaf etc.*[/COLOR]
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]var[/COLOR] _symbolType:[COLOR=#993300]MovieClip[/COLOR];
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]var[/COLOR] _startingSlot:[COLOR=#993300]Number[/COLOR];
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]var[/COLOR] _startingXPosition:[COLOR=#993300]Number[/COLOR];          
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]var[/COLOR] _startingYPosition:[COLOR=#993300]Number[/COLOR];
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]var[/COLOR] _currentXPosition:[COLOR=#993300]Number[/COLOR];           
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]var[/COLOR] _currentYPosition:[COLOR=#993300]Number[/COLOR];
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]var[/COLOR] _nextXPosition:[COLOR=#993300]Number[/COLOR];              
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]var[/COLOR] _nextYPosition:[COLOR=#993300]Number[/COLOR];
                
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] ring:[COLOR=#993300]MovieClip[/COLOR];
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] triangle:[COLOR=#993300]MovieClip[/COLOR];
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] square:[COLOR=#993300]MovieClip[/COLOR];
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] diamond:[COLOR=#993300]MovieClip[/COLOR];
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] cross:[COLOR=#993300]MovieClip[/COLOR];
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] hectagon:[COLOR=#993300]MovieClip[/COLOR];
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] star:[COLOR=#993300]MovieClip[/COLOR];
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] leaf:[COLOR=#993300]MovieClip[/COLOR];
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] puzzle:[COLOR=#993300]MovieClip[/COLOR];
                
                
                
                                
                [COLOR=#f000f0]*//Constructor method*[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] Symbol[COLOR=#000000]([/COLOR]symbolTypeNumber:[COLOR=#993300]Number[/COLOR], startingXPosition:[COLOR=#993300]Number[/COLOR], startingYPosition:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]     
         
                [COLOR=#f000f0]*//Create objects which can be passed as an argument/parameter to addChild()*[/COLOR]
                 [COLOR=#f000f0]*//new objects need to be defined in the constructor*[/COLOR]
                 ring = [COLOR=#993300]new[/COLOR] Ring_MC[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                 triangle = [COLOR=#993300]new[/COLOR] Triangle_MC[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                 square = [COLOR=#993300]new[/COLOR] Square_MC[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                 diamond = [COLOR=#993300]new[/COLOR] Diamond_MC[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                 cross = [COLOR=#993300]new[/COLOR] Cross_MC[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                 hectagon = [COLOR=#993300]new[/COLOR] Hectagon_MC[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                 star = [COLOR=#993300]new[/COLOR] Star_MC[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                 leaf= [COLOR=#993300]new[/COLOR] Leaf_MC[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                 puzzle = [COLOR=#993300]new[/COLOR] Puzzle_MC[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]; 
                
                        [COLOR=#f000f0]*//Symbol type definitions*[/COLOR]
                [COLOR=#993300]var[/COLOR] symbolLabel:[COLOR=#993300]Array[/COLOR] = [COLOR=#993300]new[/COLOR] [COLOR=#993300]Array[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                        symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]0[/COLOR][COLOR=#000000]][/COLOR] = ring;
                        symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]1[/COLOR][COLOR=#000000]][/COLOR] = triangle;
                        symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]2[/COLOR][COLOR=#000000]][/COLOR] = square;
                        symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]3[/COLOR][COLOR=#000000]][/COLOR] = diamond;
                        symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]4[/COLOR][COLOR=#000000]][/COLOR] = cross;
                        symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]5[/COLOR][COLOR=#000000]][/COLOR] = hectagon;
                        symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]6[/COLOR][COLOR=#000000]][/COLOR] = star;
                        symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]7[/COLOR][COLOR=#000000]][/COLOR] = leaf;
                        symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]8[/COLOR][COLOR=#000000]][/COLOR] = puzzle;
                        
                        [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]symbolTypeNumber == [COLOR=#000000]0[/COLOR][COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]0[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        [COLOR=#993300]else[/COLOR] [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]symbolTypeNumber == [COLOR=#000000]1[/COLOR][COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]1[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        [COLOR=#993300]else[/COLOR] [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]symbolTypeNumber == [COLOR=#000000]2[/COLOR][COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]2[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        [COLOR=#993300]else[/COLOR] [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]symbolTypeNumber == [COLOR=#000000]3[/COLOR][COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]3[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        [COLOR=#993300]else[/COLOR] [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]symbolTypeNumber == [COLOR=#000000]4[/COLOR][COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]4[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        [COLOR=#993300]else[/COLOR] [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]symbolTypeNumber == [COLOR=#000000]5[/COLOR][COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]5[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        [COLOR=#993300]else[/COLOR] [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]symbolTypeNumber == [COLOR=#000000]6[/COLOR][COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]6[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        [COLOR=#993300]else[/COLOR] [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]symbolTypeNumber == [COLOR=#000000]7[/COLOR][COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]7[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        [COLOR=#993300]else[/COLOR] [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]symbolTypeNumber == [COLOR=#000000]8[/COLOR][COLOR=#000000])[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]8[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]
                        [COLOR=#993300]else[/COLOR]
                        [COLOR=#000000]{[/COLOR]
                                _symbolType = symbolLabel[COLOR=#000000][[/COLOR][COLOR=#000000]7[/COLOR][COLOR=#000000]][/COLOR];
                        [COLOR=#000000]}[/COLOR]               
                        
                        [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"_symbolType:"[/COLOR], [COLOR=#993300]this[/COLOR].[COLOR=#000000]getSymbolType[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR];
                        [COLOR=#f000f0]*//setSymbolTypeNumber(symbolTypeNumber);*[/COLOR]
                        [COLOR=#f000f0]*//setStartingSlot(startingSlot);*[/COLOR]
                        [COLOR=#f000f0]*//setStartingXPosition(startingXPosition);*[/COLOR]
                        [COLOR=#f000f0]*//setStartingYPosition(startingYPosition);*[/COLOR]
                                                
                        [COLOR=#f000f0]*//trace("Symbol Type:", getSymbolType()," ","Starting slot:", getStartingSlot()," ","Start X-Pos:", getStartingXPosition(),"Start Y-Pos:", getStartingYPosition());*[/COLOR]
                [COLOR=#000000]}[/COLOR]
                
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]function[/COLOR] setSymbolTypeNumber[COLOR=#000000]([/COLOR]sst:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]void[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        _symbolTypeNumber = sst;
                        
                        
                [COLOR=#000000]}[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] getSymbolType[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]MovieClip[/COLOR] [COLOR=#f000f0]*//Can also be * if one doesn't know what the return type will be*[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        [COLOR=#993300]var[/COLOR] relevantValue:[COLOR=#993300]MovieClip[/COLOR] = _symbolType;
                        [COLOR=#993300]return[/COLOR] relevantValue;
                [COLOR=#000000]}[/COLOR]
                
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]function[/COLOR] setStartingSlot[COLOR=#000000]([/COLOR]sss:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]void[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        _startingSlot = sss;
                [COLOR=#000000]}[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] getStartingSlot[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]Number[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        [COLOR=#993300]var[/COLOR] relevantValue:[COLOR=#993300]Number[/COLOR] = _startingSlot;
                        [COLOR=#993300]return[/COLOR] relevantValue;
                [COLOR=#000000]}[/COLOR]       
                
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]function[/COLOR] setStartingXPosition[COLOR=#000000]([/COLOR]ssxp:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]void[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        _startingXPosition = ssxp;
                [COLOR=#000000]}[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] getStartingXPosition[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]Number[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        [COLOR=#993300]var[/COLOR] relevantValue:[COLOR=#993300]Number[/COLOR] = _startingXPosition;
                        [COLOR=#993300]return[/COLOR] relevantValue;
                [COLOR=#000000]}[/COLOR]
                
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]function[/COLOR] setStartingYPosition[COLOR=#000000]([/COLOR]ssyp:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]void[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        _startingYPosition = ssyp;
                [COLOR=#000000]}[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] getStartingYPosition[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]Number[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        [COLOR=#993300]var[/COLOR] relevantValue:[COLOR=#993300]Number[/COLOR] = _startingYPosition;
                        [COLOR=#993300]return[/COLOR] relevantValue;
                [COLOR=#000000]}[/COLOR]
                
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]function[/COLOR] setCurrentXPosition[COLOR=#000000]([/COLOR]scxp:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]void[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        _currentXPosition = scxp;
                [COLOR=#000000]}[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] getCurrentXPosition[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]Number[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        [COLOR=#993300]var[/COLOR] relevantValue:[COLOR=#993300]Number[/COLOR] = _currentXPosition;
                        [COLOR=#993300]return[/COLOR] relevantValue;
                [COLOR=#000000]}[/COLOR]
                
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]function[/COLOR] setCurrentYPosition[COLOR=#000000]([/COLOR]scyp:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]void[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        _currentYPosition = scyp;
                [COLOR=#000000]}[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] getCurrentYPosition[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]Number[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        [COLOR=#993300]var[/COLOR] relevantValue:[COLOR=#993300]Number[/COLOR] = _currentYPosition;
                        [COLOR=#993300]return[/COLOR] relevantValue;
                [COLOR=#000000]}[/COLOR]
                
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]function[/COLOR] setNextXPosition[COLOR=#000000]([/COLOR]snxp:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]void[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        _nextXPosition = snxp;
                [COLOR=#000000]}[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] getNextXPosition[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]Number[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        [COLOR=#993300]var[/COLOR] relevantValue:[COLOR=#993300]Number[/COLOR] = _nextXPosition;
                        [COLOR=#993300]return[/COLOR] relevantValue;
                [COLOR=#000000]}[/COLOR]
                
                [COLOR=#993300]private[/COLOR] [COLOR=#993300]function[/COLOR] setNextYPosition[COLOR=#000000]([/COLOR]snyp:[COLOR=#993300]Number[/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]void[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        _nextYPosition = snyp;
                [COLOR=#000000]}[/COLOR]
                [COLOR=#993300]public[/COLOR] [COLOR=#993300]function[/COLOR] getNextYPosition[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]:[COLOR=#993300]Number[/COLOR]
                [COLOR=#000000]{[/COLOR]
                        [COLOR=#993300]var[/COLOR] relevantValue:[COLOR=#993300]Number[/COLOR] = _nextYPosition;
                        [COLOR=#993300]return[/COLOR] relevantValue;
                [COLOR=#000000]}[/COLOR]
        [COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]

[/COLOR]