# simpleButton() using library resoucres

**URL:** <https://forum.kirupa.com/t/simplebutton-using-library-resoucres/281770>\
**Category:** Uncategorized\
**Created:** [February 13, 2009, 2:24am UTC](https://forum.kirupa.com/t/simplebutton-using-library-resoucres/281770 "2009-02-13T02:24:06Z")\
**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 13, 2009, 2:24am UTC](https://forum.kirupa.com/t/simplebutton-using-library-resoucres/281770/1 "2009-02-13T02:24:06Z")

</div>

I have the images that I want to use for the button in the library, using simpleButton(), how do I link the parameters of that function to the library resources?

I also have a button already made, would it be easier just to create an instance of that in the ActionScript? If so how would I do that?

Edit:

Even when I try this, I get errors:

```auto

var createNew:SimpleButton = new SimpleButton();

			  createNew.upState = newoff;
			  createNew.overState = newon;
			  createNew.downState = newon;
			  addChild(createNew);

```
