KillTroCity Worlds
Welcome to KillTroCity Worlds!
Log in

I forgot my password

November 2017
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
27282930   

Calendar Calendar

Latest topics
» Guys,do you want a Remake of this?
Sun May 14, 2017 7:56 am by kyle000™

» Eternal Worlds Are Now on ALPHA TEST!
Wed Oct 08, 2014 4:20 pm by jbl78

» KQW IS NON HAMACHI VERSION 1.0 AND 24/7
Mon Jun 16, 2014 11:49 pm by <AFK> V1Petik1

» KYLE QUEST WORLD IS NON HAMACHI 24/7
Mon Jun 16, 2014 11:42 pm by <AFK> V1Petik1

» Red Points
Mon Jun 16, 2014 11:34 pm by <AFK> V1Petik1

» Outboxx - Outboxx (2013)
Fri Feb 14, 2014 12:39 pm by charlforb

» need cheat
Fri Jan 18, 2013 5:01 am by doodz

» When does the server
Wed Jul 04, 2012 3:14 am by J6

» KQW Version 1.0
Tue Feb 07, 2012 7:14 pm by lawlsvillage


DarkNess Colour Name Code

View previous topic View next topic Go down

DarkNess Colour Name Code

Post  J6 on Sun Nov 07, 2010 9:27 pm

public function tryChangeColorNames(event:TimerEvent)
{
var event:* = event;
try
{
this.changeColorNamesInMap();
}
catch (err:Error)
{
}
return;
}// end function

public function changeColorNamesInMap()
{
var filterArray:Array;
var outline:GlowFilter;
var i:uint;
var ln:* = this.Game.world.areaUsers.length;
try
{
while (i < ln)
{

this.intAccess = this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).objData.intAccessLevel;
if (this.intAccess < 50 && this.intAccess > 5)
{
outline = new GlowFilter();
var _loc_2:Number = 1.5;
outline.blurY = 1.5;
outline.blurX = _loc_2;
outline.color = 0;
outline.quality = BitmapFilterQuality.LOW;
outline.strength = 100;
filterArray = new Array();
filterArray.push(outline);
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.filters = filterArray;
}
switch(this.intAccess)
{
case 10:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 16711935;
break;
}
case 15:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 16711680;
break;
}
case 20:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 139;
break;
}
case 25:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 16776960;
break;
}
case 30:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 65535;
break;
}
case 35:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 65280;
break;
}
case 40:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 16729344;
break;
}
case 45:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 15631086;
break;
}
case 60:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 16711680;
break;
}
case 65:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 13369497;
break;
}
case 70:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 13992190;
break;
}
case 75:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 52224;
break;
}
case 80:
{
this.Game.world.getAvatarByUserName(this.Game.world.areaUsers[i]).pMC.pname.ti.textColor = 0;
}
default:
{
break;
break;
}
}
i = (i + 1);
}
}
catch (err:Error)
{
}
return;
}// end function

and then


Also add this to the maintimeline class...

Code:
public var intAccess:int;

And replace all the imports to this...

Code:
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.utils.*;


Hope This Help
avatar
J6
Administrators
Administrators

Posts : 37
Join date : 2010-09-25

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum