Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding skin header to accordion component

Status
Not open for further replies.

cpigg

Programmer
May 4, 2005
19
US
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??????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top