# Copy right code

**URL:** <https://forum.kirupa.com/t/copy-right-code/117097>\
**Category:** Uncategorized\
**Created:** [July 24, 2004, 6:58am UTC](https://forum.kirupa.com/t/copy-right-code/117097 "2004-07-24T06:58:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)\
**Post date:** [July 24, 2004, 6:58am UTC](https://forum.kirupa.com/t/copy-right-code/117097/1 "2004-07-24T06:58:07Z")

</div>

hi ,  
i am looking for a simple code.  
whenever i type a word it goes a specific frame.

example : when i log into my site, if i type Darkstyle withen 1 min it goes and plays a specific frame and play…

expecting a gud code from the expertise.  
thank you,

best regards…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 8:52am UTC](https://forum.kirupa.com/t/copy-right-code/117097/2 "2004-07-24T08:52:50Z")

</div>

I’m no expert…but i think u can have it something like this:  
Put this on a movieclip with an input text it in that has the var as inputText:

```php

onClipEvent (enterFrame) {
	 if (getTimer() == 60000) {
		 if (inputText == "Darkstyle") {
			 _root.gotoAndPlay ("spacificFrame")
		 }
	 }
} 

```

I’m not sure if that works, but u can try.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 9:17am UTC](https://forum.kirupa.com/t/copy-right-code/117097/3 "2004-07-24T09:17:00Z")

</div>

> [@ViNc3](#):
>
> I’m no expert…but i think u can have it something like this:
> 
> Put this on a movieclip with an input text it in that has the var as inputText:
> 
> ```php
> 
> onClipEvent (enterFrame) {
> if (getTimer() == 60000) {
> if (inputText == "Darkstyle") {
> _root.gotoAndPlay ("spacificFrame")
> }
> }
> } 
> 
> ```
> 
> I’m not sure if that works, but u can try.

this code seems to be not working ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 9:39am UTC](https://forum.kirupa.com/t/copy-right-code/117097/4 "2004-07-24T09:39:45Z")

</div>

This should work:

```php
onClipEvent (enterFrame) {
	 time = getTimer();
	 timer = time;
		 if (time>=60000) {
			 if (inputText == "Darkstyle") {
					_root.gotoAndPlay("spacificFrame");
		 } else {
			 _root.gotoAndPlay("notEntered");
		 }
	}
}

```

I’ve also added an attachment; you should look at the attachment to get what i mean.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 9:54am UTC](https://forum.kirupa.com/t/copy-right-code/117097/5 "2004-07-24T09:54:07Z")

</div>

wel sorry i forgot to mention i dont want any input filed also. its like i am using a cheat code with the help of key board. without anyone being aware of it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 9:58am UTC](https://forum.kirupa.com/t/copy-right-code/117097/6 "2004-07-24T09:58:13Z")

</div>

that could be possible…but i gotta work it out first 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 10:33am UTC](https://forum.kirupa.com/t/copy-right-code/117097/7 "2004-07-24T10:33:15Z")

</div>

yahoooo!!! i got it!!!..i think.

this must must must work!!! 😛

---

<div class="post-metadata">

**Author:** ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)\
**Post date:** [July 24, 2004, 7:14pm UTC](https://forum.kirupa.com/t/copy-right-code/117097/8 "2004-07-24T19:14:39Z")

</div>

great wrok dude… u proved that you are really an expert… but dont u think that code are too lengthy?? heheh… any way… i have to admit. nice logic and nice work,  
thank you very much…!🙂

---

<div class="post-metadata">

**Author:** ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)\
**Post date:** [July 24, 2004, 7:23pm UTC](https://forum.kirupa.com/t/copy-right-code/117097/9 "2004-07-24T19:23:18Z")

</div>

```php
onClipEvent (enterFrame) {
	timer = Math.round(getTimer()/1000);
	text = timeLimit-timer;
	if (Key.isDown(75)) {
		_root.nextFrame();
		trace("k has been typed");
	} else if (Key.isDown(68)) {
		_root.gotoAndStop(2);
	} else if (text<=0) {
		_root.gotoAndPlay("slow");
	}
}

```

hmmm one doubt… please could u explain this

```php
if (Key.isDown(75)

```

what does this (75) stands for ?? if it stand for the chracter or key, what numeric numbers will other key’s will have? 🙂

---

<div class="post-metadata">

**Author:** ![McGiver](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@McGiver](https://forum.kirupa.com/u/McGiver)\
**Post date:** [July 24, 2004, 7:42pm UTC](https://forum.kirupa.com/t/copy-right-code/117097/10 "2004-07-24T19:42:13Z")

</div>

75 stands for K

the number of the keys match the ASCII codes.

i.e.:  
trace(String.fromCharCode(75));  
will return K

to find out witch the keyvalues, use something like  
\_root.onEnterFrame=function(){  
trace(Key.getCode())  
}

Key.getCode() will return the value of the key you pressed last

---

<div class="post-metadata">

**Author:** ![ViNc3](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@ViNc3](https://forum.kirupa.com/u/ViNc3)\
**Post date:** [July 25, 2004, 12:35am UTC](https://forum.kirupa.com/t/copy-right-code/117097/11 "2004-07-25T00:35:43Z")

</div>

you could also go to “Flash Help”, click on “Using Flash” then on “[color=#0000ff][color=black]Keyboard Keys and Key Code Values”. There u can select what kind of keys you want and it’ll have the code in a table form.[/color][/color]

---

<div class="post-metadata">

**Author:** ![ViNc3](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@ViNc3](https://forum.kirupa.com/u/ViNc3)\
**Post date:** [July 25, 2004, 12:36am UTC](https://forum.kirupa.com/t/copy-right-code/117097/12 "2004-07-25T00:36:23Z")

</div>

> [@darkstyle](#):
>
> great wrok dude… u proved that you are really an expert… but dont u think that code are too lengthy?? heheh… any way… i have to admit. nice logic and nice work,  
> thank you very much…!🙂

THANK YOU!! I’m only 14 so this is a very big achievment for me:P
