# Creating button using createClassObject

**URL:** https://forum.kirupa.com/t/creating-button-using-createclassobject/192666
**Category:** flash
**Created:** [June 30, 2006, 4:15am UTC](https://forum.kirupa.com/t/creating-button-using-createclassobject/192666 "2006-06-30T04:15:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![santalea](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@santalea](https://forum.kirupa.com/u/santalea)
#### Post date: [June 30, 2006, 4:15am UTC](https://forum.kirupa.com/t/creating-button-using-createclassobject/192666/1 "2006-06-30T04:15:45Z")

</div>

:crying: ☹ i really need someones help. seriously… how do i create a button using  
createClassObject

> 

import mx.controls.Button;  
createClassObject(Button,“btnParam”, 99, {\_height:30, \_width:60, \_x:535, \_y:523});  
btnParam.\_visible = true;  
btnParam.enabled = true;  
btnParam.label = “Update Move”;  
btnParam.\_alpha = 100;

i have created this actionscript but the button doesnt seem to appear…  
i have other questions too. but for the moment i need help with this. please help me… im at a dead end. thank you so much.
