I'm trying to add different header icons for an accordion component. I have multiple movie clips with different skins in each one and I can't apply multiple skins to each child of the accordion. This is the code that I'm using but I need it applyied to different headers of the children
onClipEvent(initialize)
{
trueUpSkin = "LeftPanel0";
trueDownSkin = "LeftPanel0";
trueOverSkin = "LeftPanel0";
trueDisabledSkin = "LeftPanel0";
}
I used this code but it wouldn't work.
onClipEvent(initialize)
{
_parent.myAccord.getChildAt(0).trueUpSkin = "LeftPanel0";
_parent.myAccord.getChildAt(0).trueDownSkin = "LeftPanel0";
_parent.myAccord.getChildAt(0).trueOverSkin = "LeftPanel0";
_parent.myAccord.getChildAt(0).trueDisabledSkin = "LeftPanel0";
_parent.myAccord.getChildAt(1).trueUpSkin = "LeftPanel3";
_parent.myAccord.getChildAt(1).trueDownSkin = "LeftPanel2";
_parent.myAccord.getChildAt(1).trueOverSkin = "LeftPanel2";
_parent.myAccord.getChildAt(1).trueDisabledSkin = "LeftPanel2";
}
Any ideas??????
onClipEvent(initialize)
{
trueUpSkin = "LeftPanel0";
trueDownSkin = "LeftPanel0";
trueOverSkin = "LeftPanel0";
trueDisabledSkin = "LeftPanel0";
}
I used this code but it wouldn't work.
onClipEvent(initialize)
{
_parent.myAccord.getChildAt(0).trueUpSkin = "LeftPanel0";
_parent.myAccord.getChildAt(0).trueDownSkin = "LeftPanel0";
_parent.myAccord.getChildAt(0).trueOverSkin = "LeftPanel0";
_parent.myAccord.getChildAt(0).trueDisabledSkin = "LeftPanel0";
_parent.myAccord.getChildAt(1).trueUpSkin = "LeftPanel3";
_parent.myAccord.getChildAt(1).trueDownSkin = "LeftPanel2";
_parent.myAccord.getChildAt(1).trueOverSkin = "LeftPanel2";
_parent.myAccord.getChildAt(1).trueDisabledSkin = "LeftPanel2";
}
Any ideas??????