# Actionscript help please

**URL:** <https://forum.kirupa.com/t/actionscript-help-please/241699>\
**Category:** Uncategorized\
**Created:** [October 17, 2007, 6:58am UTC](https://forum.kirupa.com/t/actionscript-help-please/241699 "2007-10-17T06:58:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bidgeeman](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@bidgeeman](https://forum.kirupa.com/u/bidgeeman)\
**Post date:** [October 17, 2007, 6:58am UTC](https://forum.kirupa.com/t/actionscript-help-please/241699/1 "2007-10-17T06:58:29Z")

</div>

Hi.  
I am making a screensaver and wondered if it is it possible to temporarily or dynamically password protect a Flash movie clip via a user input text field? For example, a user thinks up a password on the spot, types it in, hits a SET button and the mc cannot be disabled without re-entering the correct password. I am new to actionscript and from what I can find on Google it ooks as though the answer could lie in using veriables but i’m not sure how to implement this.

Currently I am using this code to hard wire passwords into my swf files before compiling them in SWF Studio:

on (keyPress “\<Enter\>”) {  
if (password.text == “password”) {

gotoAndPlay(“mc”);

} else {  
feedback.text = “INVALID”;  
}  
}

Thanks for any help ![](http://forum.kirupa.com/uploads/kirupa/1105/8ed432c9025fd9ca.gif)

Bidge (actionscript newbie)
