# AS3.0 Loading SWF buttons

**URL:** <https://forum.kirupa.com/t/as3-0-loading-swf-buttons/262149>\
**Category:** flash\
**Created:** [June 3, 2008, 6:56pm UTC](https://forum.kirupa.com/t/as3-0-loading-swf-buttons/262149 "2008-06-03T18:56:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![delfeld](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@delfeld](https://forum.kirupa.com/u/delfeld)\
**Post date:** [June 3, 2008, 6:56pm UTC](https://forum.kirupa.com/t/as3-0-loading-swf-buttons/262149/1 "2008-06-03T18:56:08Z")

</div>

Hello,

I have a Flash 9 SWF library with a button in it. I had to convert it to a MovieClip to “Embed” it into a Flex application. It works fine, but plays as a MC, so I have to re-create the button’s behaivior using AddEventListener’s. Did I need to convert it? Is it possible to bring in buttons as Button, not MovieClip?

There is a TextField in each frame. I want to change the text in the TF. When on the first frame, I can get to it via:

TextField(button1.getChildByName(“TF name”)).text = “test”;

However, when I loop through the frames (via gotoAndStop()), I get an “null object” error when trying to access the TF.

Any thoughts?
