# Frames vs. External file

**URL:** <https://forum.kirupa.com/t/frames-vs-external-file/281743>\
**Category:** flash\
**Created:** [February 12, 2009, 8:50pm UTC](https://forum.kirupa.com/t/frames-vs-external-file/281743 "2009-02-12T20:50:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michdd](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@michdd](https://forum.kirupa.com/u/michdd)\
**Post date:** [February 12, 2009, 8:50pm UTC](https://forum.kirupa.com/t/frames-vs-external-file/281743/1 "2009-02-12T20:50:27Z")

</div>

IS the code used for AS3 in the frames so much different from the code used in the external .as files? Because when I try something simple in an external file, it doesn’t work. For example, if I try to dynamically make textfield box, and set it to input :

```auto

var textInput:TextField = new TextField();
textInput.type = TextFieldType.INPUT;

```

I just get errors. Why is this? And is there some place I can find a guide for like… how to write in the external as files (even though that’s a very broad area…)
