Is there a way to customize the align for the labels? I am wanting them to be aligned center.
import mx.transitions.easing.*;
import mx.containers.Accordion;
import mx.core.View;
import mx.controls.Label
//skinning accordion
var obj:Object = new Object();
obj.trueUpSkin = "ButtonUp";
obj.trueDownSkin = "ButtonDown";
obj.trueOverSkin = "ButtonOver";
obj.trueDisabledSkin = "ButtonDisable";
obj.falseUpSkin = "ButtonUp";
obj.falseDownSkin = "ButtonDown";
obj.falseOverSkin = "ButtonOver";
obj.falseDisabledSkin = "ButtonDisable";
createClassObject(mx.containers.Accordion,"myAccordion",2,obj)
myAccordion._y =0
myAccordion.setSize(150, 370);
myAccordion.setStyle("backgroundColor", "0x666666");
myAccordion.createChild("welcome_section", "cont0", {label: "Welcome"});
myAccordion.createChild("welcome_section", "cont1", {label: "Welcome"});
myAccordion.createChild("featuredHome_section", "cont_1", {label: "Featured Home"});
myAccordion.createChild("homeGallery_section", "cont_2", {label: "Home Gallery"});
myAccordion.createChild("homeGallery_section", "cont_3", {label: "Building Artistry"});
myAccordion.createChild("homeGallery_section", "cont_4", {label: "Exclusive Entrance"});
myAccordion.createChild("homeGallery_section", "cont_5", {label: "Media"});
myAccordion.createChild("homeGallery_section", "cont_6", {label: "Links"});
myAccordion.createChild("homeGallery_section", "cont_7", {label: "Contact Us"});
//-------------- Set Accordion Animation ----///
/////--- see [http://flash.media-box.net/index.php?showtopic=55260](http://flash.media-box.net/index.php?showtopic=55260)
//myAccordion.setStyle("openEasing", Bounce.easeOut);
//myAccordion.setStyle("openDuration", 3500);
I’ve tried a ton of different things but nothing I’ve done works. I’ve spent hours researching and I’m super tired. Help is much appreciated. I’m not asking for someone to write the code for me. In fact, I want to understand AS really well. I’m just asking for direction or an explanation.
Thanks everyone