# Help Accordion enabled problem

**URL:** <https://forum.kirupa.com/t/help-accordion-enabled-problem/228677>\
**Category:** flash\
**Created:** [June 10, 2007, 12:49pm UTC](https://forum.kirupa.com/t/help-accordion-enabled-problem/228677 "2007-06-10T12:49:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orgicus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/orgicus/32/3720_2.png) [@orgicus](https://forum.kirupa.com/u/orgicus)\
**Post date:** [June 10, 2007, 12:49pm UTC](https://forum.kirupa.com/t/help-accordion-enabled-problem/228677/1 "2007-06-10T12:49:55Z")

</div>

Greetings!

Have you ever used the Accordion component?  
I don’t get why the enabled property doesn’t seem to work. If it works, post a 2, 3 lines of code , cause I just don’t get it

I’ve use the example from Help-\>Components Language Reference-\>Accordion:

import mx.core.View;  
my\_acc.createChild(View, “shippingAddress”, {label: “Shipping Address”});  
my\_acc.createChild(View, “billingAddress”, {label: “Billing Address”});  
my\_acc.createChild(View, “payment”, {label: “Payment”});  
my\_acc.enabled = false;  
trace(my\_acc.enabled);//Output:false !!! ?!! !!

Of course I used an Accordion in the scene with the instance name of “my\_acc”.

I’ve tried the code only aproach( with the Accordion component in the library)…and still nothing:

import mx.core.View;  
import mx.containers.Accordion;

var my\_acc:Accordion = this.createClassObject(Accordion,“my\_acc”,0);  
my\_acc.createChild(View, “shippingAddress”, {label: “Shipping Address”});  
my\_acc.createChild(View, “billingAddress”, {label: “Billing Address”});  
my\_acc.createChild(View, “payment”, {label: “Payment”});  
my\_acc.enabled = false;  
trace(my\_acc.enabled);//Output:false !!! ?!! !!

I don’t get it! How can I disable it or stop it from getting user input  
I’ve tried:

my\_acc.getChildAt(0).enabled = false;

…and nothing !!!  
I’m freakin’ out! I just don’t get it!  
Need Help!
