In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

The Realm of Mang

Senior Project
Get Adobe Flash player
by Tinmy 31 Oct 2013
    Embed
/**
 * Copyright Tinmy ( http://wonderfl.net/user/Tinmy )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/oKGf
 */

package 
{
    import flash.display.Sprite;
    public class FlashTest extends Sprite 
    {
        public function FlashTest() 
        {
            class EquipmentType
            {
                Armor;
                Weapon;
                Accessory;
            }
            class EquipSlot
            {
                Head;
                Torso;
                Gloves;
                Legs;
                Weapon1;
                Weapon2;
                Necklace;
                Ring1;
                Ring2;
            }

            class Equipment
            {
                var Name:String = new String("");
                var AttributeIncr:Array = new Array(0,0,0,0,0,0,0);
                var type:EquipmentType = new Type();
                var Slot:EquipSlot = new EquipSlot();
                //var SkillIncr:Array = new Array
                //(
                                        
                //);
            }
            var Head:Equipment = new Equipment("Leather Helm",AttributeIncr(0,0,0,0,0,0,0),Armor,Head);
            var Torso:Equipment = new Equipment("Leather Chestplate",AttributeIncr(0,0,0,0,0,0,0),Armor,Torso);
            var Gloves:Equipment = new Equipment("Leather Golves",AttributeIncr(0,0,0,0,0,0,0),Armor,Gloves);
            var Legs:Equipment = new Equipment("Leather Greaves",AttributeIncr(0,0,0,0,0,0,0),Armor,Legs);
            var Weapon1:Equipment = new Equipment("Iron Long Sword",AttributeIncr(0,0,0,0,0,0,0),Weapon,Weapon1 || Weapon2);
            var Weapon2:Equipment = new Equipment("Wooden Shield",AttributeIncr(0,0,0,0,0,0,0),Armor,Weapon2);
            var Necklace:Equipment = new Equipment("Silver Chain",AttributeIncr(0,0,0,0,0,0,0),Armor,Necklace);
            var Ring1:Equipment = new Equipment("Gold Ring",AttributeIncr(0,0,0,0,0,0,0),Armor,Ring1 || Ring2);
            var Ring2:Equipment = new Equipment("Silver Ring",AttributeIncr(0,0,0,0,0,0,0),Armor,Ring1,|| Ring2);
            
            class Character
            {
            var Name:String = new String("");
            var Dead:Boolean = new Boolean(false);
            var Attributes:Array = new Array
            (
            "Health","HP",0,
            "Mana","MP",0,
            "Stamina","SP",0,
            "Experience","EXP",0,
            "Attack","ATK",0,
            "Defense","DEF",0,
            "Magic","MAG",0,
            "Speed","SPD",0,
            )

            var Equipment:Array = new Array
            (
            "Head",Head:Name,"Head's Stats in string form",
            "Torso","Name of Torso","Torso's Stats in string form",
            "Gloves","Name of Gloves","Gloves's Stats in string form",
            "Legs","Name of Legs","Legs's Stats in string form",
            "Weapon 1","Name of Weapon 1","Weapon 1's Stats in string form",
            "Weapon 2","Name of Weapon 2","Weapon 2's Stats in string form",
            "Necklace","Name of Necklace","Necklace's Stats in string form",
            "Ring 1","Name of Ring 1","Ring 1's Stats in string form",
            "Ring 2","Name of Ring 2","Ring 2's Stats in string form"
            );
            trace(Head:Name);
            }
        }
    }
}