# Restricting username & password

**URL:** <https://forum.kirupa.com/t/restricting-username-password/294373>\
**Category:** Uncategorized\
**Created:** [August 13, 2009, 6:59am UTC](https://forum.kirupa.com/t/restricting-username-password/294373 "2009-08-13T06:59:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayuresh](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mayuresh](https://forum.kirupa.com/u/mayuresh)\
**Post date:** [August 13, 2009, 6:59am UTC](https://forum.kirupa.com/t/restricting-username-password/294373/1 "2009-08-13T06:59:12Z")

</div>

hi  
iam tryin to create a login system  
i want the username to b only “mayuresh”  
& password to b “mayuresh”  
blow is my code  
anyhelp wuld b appreciated

stop();

go\_btn.addEventListener(MouseEvent.CLICK,perform)  
function perform (event:MouseEvent):void  
{  
if(username == “mayuresh”||passwords == “nagpure”)  
{  
gotoAndstop(2);  
}  
else  
{  
trace(“Incorrect UserName”);  
}  
}
