this is where the entity list creating
public static function settings():void
{
clearways.push(new int(0));
availableways.push(new int(1));
availableways.push(new int(3));
availableways.push(new int(7));
var xoff:Number = 24;
var yoff:Number = 35;
leftuilist.push(Typing(FP.world.create(Typing)).init(1 + xoff, 25 + yoff, "LEVEL:", 0xFFFFFF, -1, 0, 1, false, true));
leveltext = new DynamicTyping(53 + xoff, 25 + yoff, level.toString(), 0xFFFF00, 1, true);
leftuilist.push(leveltext);
leftuilist.push(Typing(FP.world.create(Typing)).init(100 + xoff, 25 + yoff, "XP:", 0xFFFFFF, -1, 0, 1, false, true));
xptext = new DynamicTyping(130 + xoff, 25 + yoff, xp.toString() + "/" + xpnext.toString(), 0xFFFF00, 1, true);
leftuilist.push(xptext);
xoff = 25;
yoff = 67;
var col1:Number = 0 + xoff;
var col2:Number = 178 + xoff;
var col3:Number = 240 + xoff;
var col4:Number = 300 + xoff;
var col5:Number = 360 + xoff;
var col6:Number = 420 + xoff;
uilist.length = 0;
customizeui = new CustomizeUI();
uilist.push(customizeui);
uilist.push(Typing(FP.world.create(Typing)).init(col3, 58 + yoff, "ADD", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col4, 58 + yoff, "REMOVE", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col5, 42 + yoff, "ADD", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col5, 58 + yoff, "ALL", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col6, 42 + yoff, "REMOVE", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col6, 58 + yoff, "ALL", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col1, 42 + yoff, "CUSTOMIZE", 0xFFFF00, -1, 0, 1, false, true));
uilist.push(Typing(FP.world.create(Typing)).init(col1, 58 + yoff, "Points Left:", 0xFFFFFF, -1, 0, 1, false, true));
leftstatstext = new DynamicTyping(103 + xoff, 58 + yoff, leftstats.toString(), 0xFFFF00, 1, true) as DynamicTyping
uilist.push(leftstatstext);
uilist.push(Typing(FP.world.create(Typing)).init(col1, 90 + yoff, "AMMO CAPACITY", 0xFFFFFF, -1, 0, 1, false, true));
maxammotext = new DynamicTyping(col2, 90 + yoff, maxammo.toString(), 0xFFFF00) as DynamicTyping;
uilist.push(maxammotext);
uilist.push(Typing(FP.world.create(Typing)).init(col3, 90 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col4, 90 + yoff, "(-)", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col5, 90 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col6, 90 + yoff, "(-)", 0xFF0000));
uilist.push(new Marker("maxammo", col3, 90 + yoff, "button", "add"));
uilist.push(new Marker("maxammo", col4, 90 + yoff, "button", "remove"));
uilist.push(new Marker("maxammo", col5, 90 + yoff, "button", "addall"));
uilist.push(new Marker("maxammo", col6, 90 + yoff, "button", "removeall"));
uilist.push(Typing(FP.world.create(Typing)).init(col1, 106 + yoff, "MAX ARMOR", 0xFFFFFF, -1, 0, 1, false, true));
maxarmortext = new DynamicTyping(col2, 106 + yoff, maxarmor.toString(), 0xFFFF00) as DynamicTyping;
uilist.push(maxarmortext);
uilist.push(Typing(FP.world.create(Typing)).init(col3, 106 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col4, 106 + yoff, "(-)", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col5, 106 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col6, 106 + yoff, "(-)", 0xFF0000));
uilist.push(new Marker("maxarmor", col3, 106 + yoff, "button", "add"));
uilist.push(new Marker("maxarmor", col4, 106 + yoff, "button", "remove"));
uilist.push(new Marker("maxarmor", col5, 106 + yoff, "button", "addall"));
uilist.push(new Marker("maxarmor", col6, 106 + yoff, "button", "removeall"));
uilist.push(Typing(FP.world.create(Typing)).init(col1, 122 + yoff, "DAMAGE", 0xFFFFFF, -1, 0, 1, false, true));
damagetext = new DynamicTyping(col2, 122 + yoff, bulletdamage.toString(), 0xFFFF00) as DynamicTyping;
uilist.push(damagetext);
uilist.push(Typing(FP.world.create(Typing)).init(col3, 122 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col4, 122 + yoff, "(-)", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col5, 122 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col6, 122 + yoff, "(-)", 0xFF0000));
uilist.push(new Marker("bulletdamage", col3, 122 + yoff, "button", "add"));
uilist.push(new Marker("bulletdamage", col4, 122 + yoff, "button", "remove"));
uilist.push(new Marker("bulletdamage", col5, 122 + yoff, "button", "addall"));
uilist.push(new Marker("bulletdamage", col6, 122 + yoff, "button", "removeall"));
uilist.push(Typing(FP.world.create(Typing)).init(col1, 138 + yoff, "ATTACK SPEED", 0xFFFFFF, -1, 0, 1, false, true));
attackstattext = new DynamicTyping(col2, 138 + yoff, "+" + attackstat.toString() + "%", 0xFFFF00) as DynamicTyping;
uilist.push(attackstattext);
uilist.push(Typing(FP.world.create(Typing)).init(col3, 138 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col4, 138 + yoff, "(-)", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col5, 138 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col6, 138 + yoff, "(-)", 0xFF0000));
uilist.push(new Marker("attackstat", col3, 138 + yoff, "button", "add"));
uilist.push(new Marker("attackstat", col4, 138 + yoff, "button", "remove"));
uilist.push(new Marker("attackstat", col5, 138 + yoff, "button", "addall"));
uilist.push(new Marker("attackstat", col6, 138 + yoff, "button", "removeall"));
uilist.push(Typing(FP.world.create(Typing)).init(col1, 154 + yoff, "ATTACK RANGE", 0xFFFFFF, -1, 0, 1, false, true));
attackrangetext = new DynamicTyping(col2, 154 + yoff, "+" + attackrange.toString() + "%", 0xFFFF00) as DynamicTyping;
uilist.push(attackrangetext);
uilist.push(Typing(FP.world.create(Typing)).init(col3, 154 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col4, 154 + yoff, "(-)", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col5, 154 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col6, 154 + yoff, "(-)", 0xFF0000));
uilist.push(new Marker("attackrange", col3, 154 + yoff, "button", "add"));
uilist.push(new Marker("attackrange", col4, 154 + yoff, "button", "remove"));
uilist.push(new Marker("attackrange", col5, 154 + yoff, "button", "addall"));
uilist.push(new Marker("attackrange", col6, 154 + yoff, "button", "removeall"));
uilist.push(Typing(FP.world.create(Typing)).init(col1, 170 + yoff, "SPEED", 0xFFFFFF, -1, 0, 1, false, true));
motorpowertext = new DynamicTyping(col2, 170 + yoff, "+" + motorpower.toString() + "%", 0xFFFF00) as DynamicTyping;
uilist.push(motorpowertext);
uilist.push(Typing(FP.world.create(Typing)).init(col3, 170 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col4, 170 + yoff, "(-)", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col5, 170 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col6, 170 + yoff, "(-)", 0xFF0000));
uilist.push(new Marker("motorpower", col3, 170 + yoff, "button", "add"));
uilist.push(new Marker("motorpower", col4, 170 + yoff, "button", "remove"));
uilist.push(new Marker("motorpower", col5, 170 + yoff, "button", "addall"));
uilist.push(new Marker("motorpower", col6, 170 + yoff, "button", "removeall"));
uilist.push(Typing(FP.world.create(Typing)).init(col1, 186 + yoff, "TARGETLOCK", 0xFFFFFF, -1, 0, 1, false, true));
magnetpowertext = new DynamicTyping(col2, 186 + yoff, magnetpower.toString() + "%", 0xFFFF00) as DynamicTyping;
uilist.push(magnetpowertext);
uilist.push(Typing(FP.world.create(Typing)).init(col3, 186 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col4, 186 + yoff, "(-)", 0xFF0000));
uilist.push(Typing(FP.world.create(Typing)).init(col5, 186 + yoff, "(+)", 0x00FF00));
uilist.push(Typing(FP.world.create(Typing)).init(col6, 186 + yoff, "(-)", 0xFF0000));
uilist.push(new Marker("magnetpower", col3, 186 + yoff, "button", "add"));
uilist.push(new Marker("magnetpower", col4, 186 + yoff, "button", "remove"));
uilist.push(new Marker("magnetpower", col5, 186 + yoff, "button", "addall"));
uilist.push(new Marker("magnetpower", col6, 186 + yoff, "button", "removeall"));
settingsloaded = true;
}
And this one to adding entities to world inside same class;
public static function customizePanel():void
{
if (!uiopen)
{
FP.world.addList(uilist);
FP.world.addList(leftuilist);
uiopen = true;
leftuiopen = true;
newmessage = false;
ingame = false;
STORE.menu.play();
cursor.text = leftstats.toString();
STORE.music.volume = 0.25;
}
else
{
FP.world.removeList(uilist);
FP.world.removeList(leftuilist);
uiopen = false;
leftuiopen = false;
ingame = true;
STORE.menu.play();
cursor.text = null;
STORE.music.volume = 1;
}
}
when i use all this code, all other entities adding to world but not any of “Typing”: