# Script inside a text box

**URL:** https://forum.kirupa.com/t/script-inside-a-text-box/247493
**Category:** flash
**Created:** [December 24, 2007, 4:53pm UTC](https://forum.kirupa.com/t/script-inside-a-text-box/247493 "2007-12-24T16:53:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Valerij](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@Valerij](https://forum.kirupa.com/u/Valerij)
#### Post date: [December 24, 2007, 4:53pm UTC](https://forum.kirupa.com/t/script-inside-a-text-box/247493/1 "2007-12-24T16:53:15Z")

</div>

Hi, to make a long story short dont start asking why and etc.

Is there a code to use a script thats inside a text box?  
Lets say I have a text box in the same frame as my player is. And I want flash to send the text to the script.

Heres an example: I have an dynamic text field with a code, for example like this one;

on(rollOver){  
gotoAndPlay(2)  
}

But this script wont work until I click on my player then F9 and paste it inside, so what I want is: to make Flash to copy text from text field and paste it inside script of the player. Is it possible? If so, how?
