# Input textfield within a mc

**URL:** <https://forum.kirupa.com/t/input-textfield-within-a-mc/322526>\
**Category:** flash\
**Created:** [May 24, 2011, 12:09pm UTC](https://forum.kirupa.com/t/input-textfield-within-a-mc/322526 "2011-05-24T12:09:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shirdesign](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shirdesign](https://forum.kirupa.com/u/shirdesign)\
**Post date:** [May 24, 2011, 12:09pm UTC](https://forum.kirupa.com/t/input-textfield-within-a-mc/322526/1 "2011-05-24T12:09:22Z")

</div>

Hi ,

I have form inside a mc inside a main movie.

I want the form with its mc to make the main movie stop from playing while peaple are filling up the form…

I tried using 2 methods both with no luck…

1st method : I’ve put the rollover action on the whole mc - but then I can’t select the textfiled to actully fill them up…

2nd method:

I’ve put the rollover action on every little bit of the mc ( input textfileds, send button, background) - but then when I move from one textfiled to another it sometimes plays the movie again - althogh I didn’t leave the mc area yet…

here is the code sample:

form2.back.onRollOver = function(){  
stop();  
}

form2.back.onRollOut = function(){  
play();  
}

form2.send\_btn.onRollOver = function() {  
stop();  
}

form2.send\_btn.onRollOut = function() {  
stop();  
}

form2.name\_txt.onSetFocus = function(){  
\_root.stop();  
}

form2.name\_txt.onKillFocus = function(){  
\_root.stop();  
}

form2.name\_txt.onChanged = function(){  
\_root.stop();  
}

form2.tel\_txt.onSetFocus = function(){  
\_root.stop();  
}

form2.tel\_txt.onKillFocus = function(){  
\_root.stop();  
}  
form2.tel\_txt.onChanged = function(){  
\_root.stop();  
}  
form2.email\_txt.onSetFocus = function(){  
\_root.stop();  
}  
form2.email\_txt.onKillFocus = function(){  
\_root.stop();  
}  
form2.email\_txt.onChanged = function(){  
\_root.stop();  
}

any suggestions?

Thanks ahead… :):proud:
